将火点消息通知用户

This commit is contained in:
liuchengqian 2023-04-26 09:35:54 +08:00
parent c74f9ee503
commit 3912ec2bd1
2 changed files with 11 additions and 13 deletions

View File

@ -66,13 +66,11 @@ public class DispatchFirePointController {
// sysUserDao.save(sysUserEntity); // sysUserDao.save(sysUserEntity);
// } // }
//310 0000 // for (int i = 0; i < 10000; i++) {
// firePointOrdinaryDao.updateProCityCode(i * 310L, (i + 1) * 310L);
for (int i = 0; i < 10000; i++) { // firePointOrdinaryDao.updateProCityName(i * 310L, (i + 1) * 310L);
firePointOrdinaryDao.updateProCityCode(i * 310L, (i + 1) * 310L); // System.out.println(i + "/" + 10000);
firePointOrdinaryDao.updateProCityName(i * 310L, (i + 1) * 310L); // }
System.out.println(i + "/" + 10000);
}
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "OKKKK", locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "OKKKK", locale);
} }

View File

@ -179,19 +179,19 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService {
}; };
//根据fireCode找到火点 //根据fireCode找到火点
List<FirePointOrdinaryEntity> firePointList = firePointOrdinaryDao.findAll(specification); List<FirePointOrdinaryEntity> firePointList = firePointOrdinaryDao.findAll(specification);
if (firePointList.size() == 1) { for (FirePointOrdinaryEntity firePoint : firePointList) {
FirePointOrdinaryEntity firePoint = firePointList.get(0);
firePoint.setFireStatus(status);//设置火点的研判标志属性 firePoint.setFireStatus(status);//设置火点的研判标志属性
firePointOrdinaryDao.save(firePoint);//数据库保存 firePointOrdinaryDao.save(firePoint);//数据库保存
} else { }
ErrorInfoLogUtils.log("操作异常审核系统发送的fireCode在秸秆系统中size() != 1fireCode = " + fireCode + "status = " + fireCode); if (firePointList.size() != 1) {
ErrorInfoLogUtils.log("item 更新成功。数据异常审核系统发送的fireCode在秸秆系统中size() != 1fireCode = " + fireCode + "status = " + fireCode);
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "更新失败", locale); return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "item 更新失败", locale);
} }
} }
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "更新成功", locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "for 更新成功", locale);
} }
} }