| | |
| | | import com.ruoyi.scheduling.domian.SchedulingParam; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.ruoyi.utils.tools.GisTool; |
| | | import com.ruoyi.utils.tools.Point; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | List<SysUser> filteredList = new ArrayList<>(); |
| | | try { |
| | | Long deptId = SecurityUtils.getLoginUser().getUser().getDeptId(); |
| | | List<Point2D> partitionLocation = param.getPartitionLocation(); |
| | | List<Point> partitionLocation = param.getPartitionLocation(); |
| | | |
| | | SysUser user = new SysUser(); |
| | | user.setDeptId(deptId); |
| | |
| | | if (lon == null || lat == null) { |
| | | continue; |
| | | } |
| | | Point2D point2D=new Point2D.Double(lon,lat); |
| | | Point point2D=new Point(); |
| | | point2D.setLongitude(lon); |
| | | point2D.setLatitude(lat); |
| | | boolean inPolygon = GisTool.isInPolygon(point2D, partitionLocation); |
| | | if (inPolygon) { |
| | | Map<String, Object> params = new HashMap<>(); |