| | |
| | | |
| | | /** |
| | | * 警务网格绑定 |
| | | * |
| | | * @param placeVO |
| | | */ |
| | | public void jwGridCodeBind(PlaceVO placeVO) { |
| | | if (!Strings.isBlank(placeVO.getLng())) { |
| | | String point = "'POINT(" + placeVO.getLng() + " " + placeVO.getLat() +")'"; |
| | | String point = "'POINT(" + placeVO.getLng() + " " + placeVO.getLat() + ")'"; |
| | | // 点落面警务网格 |
| | | List<PoliceAffairsGridEntity> policeAffairsGridEntities |
| | | = SpringUtil.getBean(IPoliceAffairsGridService.class).spatialAnalysis(point); |
| | | if (policeAffairsGridEntities.size()>0){ |
| | | if (policeAffairsGridEntities.size() > 0) { |
| | | // 设置警务网格并更新 |
| | | placeVO.setJwGridCode(policeAffairsGridEntities.get(0).getJwGridCode()); |
| | | // 更新 |
| | |
| | | |
| | | /** |
| | | * 设置是否现场采集(1km 范围内) |
| | | * |
| | | * @param placeVO |
| | | */ |
| | | public void setIsScene(PlaceVO placeVO) { |
| | | if (!Strings.isBlank(placeVO.getX()) && !Strings.isBlank(placeVO.getLng())){ |
| | | if (!Strings.isBlank(placeVO.getX()) && !Strings.isBlank(placeVO.getLng())) { |
| | | Integer placeEntity = baseMapper.comparisonPosition(placeVO); |
| | | if (placeEntity==1){ |
| | | if (placeEntity == 1) { |
| | | placeVO.setIsScene(1); |
| | | }else { |
| | | } else { |
| | | placeVO.setIsScene(2); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 设置是否现场采集(1km 范围内),非地址总表数据 |
| | | * |
| | | * @param placeVO |
| | | */ |
| | | public void setIsSceneNotHouseCode(PlaceVO placeVO) { |
| | | if (!Strings.isBlank(placeVO.getX()) && !Strings.isBlank(placeVO.getLng())){ |
| | | if (!Strings.isBlank(placeVO.getX()) && !Strings.isBlank(placeVO.getLng())) { |
| | | boolean flag = baseMapper.comparisonPositionNotHouseCode(placeVO); |
| | | if (flag){ |
| | | if (flag) { |
| | | placeVO.setIsScene(1); |
| | | }else { |
| | | } else { |
| | | placeVO.setIsScene(2); |
| | | } |
| | | } |
| | |
| | | for (NinePlaceExcel ninePlaceExcel : aa) { |
| | | for (DictBiz dictBiz : nineType) { |
| | | if (StringUtils.isNotBlank(ninePlaceExcel.getNineType()) && ninePlaceExcel.getNineType().equals(dictBiz.getDictKey())) { |
| | | ninePlaceExcel.setNineType(dictBiz.getDictValue()); |
| | | if (ninePlaceExcel.getNineType().contains("10,11,12")) { |
| | | ninePlaceExcel.setNineType("小学校(幼儿园、校外培训机构)- " + dictBiz.getDictValue()); |
| | | } else if (ninePlaceExcel.getNineType().contains("13,14,15")) { |
| | | ninePlaceExcel.setNineType("小医院(诊所、养老院)- " + dictBiz.getDictValue()); |
| | | } else { |
| | | ninePlaceExcel.setNineType(dictBiz.getDictValue()); |
| | | } |
| | | } |
| | | } |
| | | } |