| | |
| | | @Override |
| | | public List<User> getPoliceUser(String longitude, String latitude, String houseCode) { |
| | | List<User> policeUser = baseMapper.getPoliceUser(longitude, latitude); |
| | | // todo 自动生成警单 |
| | | if (StringUtils.isNotBlank(houseCode)) { |
| | | IPoliceAlarmRecordsService policeAlarmRecordsService = SpringUtil.getBean(IPoliceAlarmRecordsService.class); |
| | | PoliceAlarmRecordsEntity policeAlarmRecordsEntity = new PoliceAlarmRecordsEntity(); |
| | | policeAlarmRecordsEntity.setHouseCode(houseCode); |
| | | if (policeUser != null && policeUser.size() == 1) { |
| | | policeAlarmRecordsEntity.setPoliceId(policeUser.get(0).getId()); |
| | | } |
| | | policeAlarmRecordsService.save(policeAlarmRecordsEntity); |
| | | } |
| | | // 自动生成警单 |
| | | // if (StringUtils.isNotBlank(houseCode)) { |
| | | // IPoliceAlarmRecordsService policeAlarmRecordsService = SpringUtil.getBean(IPoliceAlarmRecordsService.class); |
| | | // PoliceAlarmRecordsEntity policeAlarmRecordsEntity = new PoliceAlarmRecordsEntity(); |
| | | // policeAlarmRecordsEntity.setHouseCode(houseCode); |
| | | // if (policeUser != null && policeUser.size() == 1) { |
| | | // policeAlarmRecordsEntity.setPoliceId(policeUser.get(0).getId()); |
| | | // } |
| | | // policeAlarmRecordsService.save(policeAlarmRecordsEntity); |
| | | // } |
| | | return policeUser; |
| | | } |
| | | } |