| | |
| | | <if test="gridPatrolRecord.createUser!=null"> |
| | | and jgpr.create_user = #{gridPatrolRecord.createUser} |
| | | </if> |
| | | order by jgpr.id desc |
| | | </select> |
| | | |
| | | |
| | |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | order by jgwl.id desc |
| | | </select> |
| | | |
| | | <!--走访日志数量统计--> |
| | |
| | | public R placeDoorBindHandle() { |
| | | return R.data(placeService.placeDoorBindHandle()); |
| | | } |
| | | |
| | | |
| | | // 查询附近1公里的场所列表 |
| | | @GetMapping("/getNearbyPlaceList") |
| | | public R getNearbyPlaceList(@RequestParam("lat") String lat, @RequestParam("lng") String lng) { |
| | | return R.data(placeService.getNearbyPlaceList(lat, lng)); |
| | | } |
| | | } |
| | |
| | | @Param("gridCodeList") List<String> gridCodeList, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 查询附近场所 |
| | | * @param lat |
| | | * @param lng |
| | | * @return |
| | | */ |
| | | List<PlaceVO> getNearbyPlaceList(String lat, String lng); |
| | | } |
| | |
| | | and jp.is_nine = #{place.isNine} |
| | | </if> |
| | | |
| | | <if test="place.noExplosionCategory!=null"> |
| | | and jp.no_explosion_category is not null |
| | | <if test="place.noExplosionCategory!=null and place.noExplosionCategory > 0 "> |
| | | and jp.no_explosion_category = #{place.noExplosionCategory} |
| | | </if> |
| | | </if> |
| | | |
| | | |
| | | <if test="place.source!=null"> |
| | | and jp.source = #{place.source} |
| | | </if> |
| | |
| | | order by jp.create_time desc,jp.id desc |
| | | </select> |
| | | |
| | | <select id="getNearbyPlaceList" resultType="org.springblade.modules.place.vo.PlaceVO"> |
| | | SELECT |
| | | jp.id, |
| | | jp.lat, |
| | | jp.lng, |
| | | jp.place_name, |
| | | ( 6371 * acos( cos( radians(#{param1}) ) * cos( radians( jp.lat ) ) |
| | | * cos( radians( jp.lng ) - radians(#{param2}) ) |
| | | + sin( radians(#{param1}) ) * sin( radians( jp.lat ) ) ) ) AS distance |
| | | FROM jczz_place jp |
| | | where jp.place_name is not null |
| | | and jp.lat is not null |
| | | and jp.lng is not null |
| | | and jp.is_deleted = 0 |
| | | HAVING distance <= 1 |
| | | ORDER BY distance limit 30 |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | * @return |
| | | */ |
| | | List<ExportPlaceExcel> exportPlaceList(PlaceVO place); |
| | | |
| | | /** |
| | | * // 查询附近场所 |
| | | * @param lat |
| | | * @param lng |
| | | * @return |
| | | */ |
| | | List<PlaceVO> getNearbyPlaceList(String lat, String lng); |
| | | } |
| | |
| | | commonParamSet.getIsAdministrator() |
| | | ); |
| | | } |
| | | |
| | | /** |
| | | * 查询附近场所 |
| | | * @param lat |
| | | * @param lng |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<PlaceVO> getNearbyPlaceList(String lat, String lng) { |
| | | return baseMapper.getNearbyPlaceList(lat, lng); |
| | | } |
| | | } |
| | |
| | | o -> o.eq(Menu::getName, menu.getName()) |
| | | .eq(Menu::getCategory, MENU_CATEGORY) |
| | | .eq(Menu::getMenuType, menu.getMenuType()) |
| | | .eq(Menu::getParentId, menu.getParentId()) |
| | | ) |
| | | ); |
| | | } |