12345678910111213141516171819 |
- package com.sysu.admin.controller.geo;
- import com.xiesx.fastboot.core.jpa.annotation.TargetDataSource;
- import com.xiesx.fastboot.core.jpa.cfg.DataSourceEnum;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- @Service
- public class CityLandService {
- @Autowired
- CityLandRepository cityLandRepository;
- public CityLand findByPoint(double x, double y){
- CityLand cityLand = cityLandRepository.findIdByPoint("Point("+x+" "+y+")");
- return cityLand;
- }
- }
|