| | |
| | | import org.springblade.modules.place.service.IPlacePractitionerService; |
| | | import org.springblade.modules.place.service.IPlaceService; |
| | | import org.springblade.modules.place.vo.PlaceExtVO; |
| | | import org.springblade.modules.place.vo.PlaceVO; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | updatePlaceInfo(placeExt); |
| | | // 查询对应已存在的从业人员 |
| | | QueryWrapper<PlacePractitionerEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("place_id", placeExt.getPlaceId()); |
| | | wrapper.eq("place_id", placeExt.getPlaceId()).eq("is_deleted",0); |
| | | List<PlacePractitionerEntity> oldList = placePractitionerService.list(wrapper); |
| | | List<PlacePractitionerEntity> list = placeExt.getPlacePractitioner(); |
| | | // 申明新增,修改,删除集合 |
| | |
| | | } |
| | | // 更新 |
| | | placeService.updateById(placeEntity); |
| | | // 警格网格绑定修改 |
| | | if (!Strings.isBlank(placeEntity.getHouseCode()) && !Strings.isBlank(placeEntity.getLng())){ |
| | | PlaceVO placeVO = new PlaceVO(); |
| | | placeVO.setHouseCode(placeEntity.getHouseCode()); |
| | | placeVO.setLng(placeEntity.getLng()); |
| | | placeVO.setLat(placeEntity.getLat()); |
| | | // 网格绑定 |
| | | placeService.policePositionHandle(placeVO); |
| | | // 警务网格绑定 |
| | | placeService.jwGridCodeBind(placeVO); |
| | | } |
| | | } |
| | | |
| | | /** |