b242b3bf 张雷

Merge remote-tracking branch 'origin/master' into master

2 个父辈 59fd755b 24b77381
...@@ -87,7 +87,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -87,7 +87,7 @@ public class SuddenDescentAlarmJob implements Job {
87 private ISysDepartService sysDepartService; 87 private ISysDepartService sysDepartService;
88 @Autowired 88 @Autowired
89 private IAlarmRuleConfigPublicTabService alarmRuleConfigPublicTabService; 89 private IAlarmRuleConfigPublicTabService alarmRuleConfigPublicTabService;
90 90
91 @Autowired 91 @Autowired
92 private IFlowService flowService; 92 private IFlowService flowService;
93 @Autowired 93 @Autowired
...@@ -118,7 +118,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -118,7 +118,7 @@ public class SuddenDescentAlarmJob implements Job {
118 alarmRuleConfigPublicTabList.forEach(v->{ 118 alarmRuleConfigPublicTabList.forEach(v->{
119 alarmTypeDictMap.put(v.getId(), v); 119 alarmTypeDictMap.put(v.getId(), v);
120 }); 120 });
121 121
122 //获取要报警指标 122 //获取要报警指标
123 QueryWrapper<AlarmCustomRuleConfig> alarmCustomRuleConfigQueryWrapper = new QueryWrapper<>(); 123 QueryWrapper<AlarmCustomRuleConfig> alarmCustomRuleConfigQueryWrapper = new QueryWrapper<>();
124 alarmCustomRuleConfigQueryWrapper.eq("alarm_rule_repository_id","1693925002376962050"); 124 alarmCustomRuleConfigQueryWrapper.eq("alarm_rule_repository_id","1693925002376962050");
...@@ -136,9 +136,9 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -136,9 +136,9 @@ public class SuddenDescentAlarmJob implements Job {
136 String alarmRuleId = alarmCustomRuleConfig.getId(); 136 String alarmRuleId = alarmCustomRuleConfig.getId();
137 String alarmRuleType = alarmCustomRuleConfig.getAlarmRuleType(); 137 String alarmRuleType = alarmCustomRuleConfig.getAlarmRuleType();
138 String alarmRecommend = alarmCustomRuleConfig.getAlarmRecommend(); 138 String alarmRecommend = alarmCustomRuleConfig.getAlarmRecommend();
139 139
140 String alarmRuleRepositoryTreepath = alarmCustomRuleConfig.getAlarmRuleRepositoryTreepath(); 140 String alarmRuleRepositoryTreepath = alarmCustomRuleConfig.getAlarmRuleRepositoryTreepath();
141 141
142 //获取报警规则id对应的报警级别 142 //获取报警规则id对应的报警级别
143 QueryWrapper<AlarmRuleLevelConfig> queryWrapper = new QueryWrapper<>(); 143 QueryWrapper<AlarmRuleLevelConfig> queryWrapper = new QueryWrapper<>();
144 queryWrapper.eq("alarm_rule_id", alarmRuleId); 144 queryWrapper.eq("alarm_rule_id", alarmRuleId);
...@@ -162,7 +162,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -162,7 +162,7 @@ public class SuddenDescentAlarmJob implements Job {
162 //String endTime = DateUtils.formatDate(endDate,"yyyy-MM-dd HH:mm:ss"); 162 //String endTime = DateUtils.formatDate(endDate,"yyyy-MM-dd HH:mm:ss");
163 String startTime = String.valueOf(startDate.getTime()/1000); 163 String startTime = String.valueOf(startDate.getTime()/1000);
164 String endTime = String.valueOf(endDate.getTime()/1000); 164 String endTime = String.valueOf(endDate.getTime()/1000);
165 165
166 for (String monitorDictCode : monitorDictCodeList) { 166 for (String monitorDictCode : monitorDictCodeList) {
167 String msg = ""; 167 String msg = "";
168 AlarmRuleConfigAndLevelVO alarmRuleConfigAndLevelVO = new AlarmRuleConfigAndLevelVO(); 168 AlarmRuleConfigAndLevelVO alarmRuleConfigAndLevelVO = new AlarmRuleConfigAndLevelVO();
...@@ -224,7 +224,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -224,7 +224,7 @@ public class SuddenDescentAlarmJob implements Job {
224 //alarmRuleConfigAndLevelVO.setAlarmCustomRuleSecondType(treeArray[1]); 224 //alarmRuleConfigAndLevelVO.setAlarmCustomRuleSecondType(treeArray[1]);
225 alarmRuleConfigAndLevelVO.setAlarmCustomRuleType(treeArray[treeArray.length-1]); 225 alarmRuleConfigAndLevelVO.setAlarmCustomRuleType(treeArray[treeArray.length-1]);
226 alarmRuleConfigAndLevelVO.setAlarmCustomRuleTypeTreepath(alarmRuleRepositoryTreepath); 226 alarmRuleConfigAndLevelVO.setAlarmCustomRuleTypeTreepath(alarmRuleRepositoryTreepath);
227 227
228 excessList.add(alarmRuleConfigAndLevelVO); 228 excessList.add(alarmRuleConfigAndLevelVO);
229 } 229 }
230 } 230 }
...@@ -245,7 +245,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -245,7 +245,7 @@ public class SuddenDescentAlarmJob implements Job {
245 /** 245 /**
246 * 判断是否需要发送短信和通知 246 * 判断是否需要发送短信和通知
247 * 247 *
248 * @param resultList 248 * @param
249 */ 249 */
250 public void sendMessage(List<AlarmRuleConfigAndLevelVO> excessList) { 250 public void sendMessage(List<AlarmRuleConfigAndLevelVO> excessList) {
251 //超标报警 251 //超标报警
...@@ -271,7 +271,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -271,7 +271,7 @@ public class SuddenDescentAlarmJob implements Job {
271 String alarmRuleLevelConfigId = alarmRuleLevelConfig.getId(); 271 String alarmRuleLevelConfigId = alarmRuleLevelConfig.getId();
272 String content = alarmRuleAndAlarmRuleLevelVO.getAlarmMsg(); 272 String content = alarmRuleAndAlarmRuleLevelVO.getAlarmMsg();
273 String departName = departNameTemplete.replace("${departName}", alarmRuleAndAlarmRuleLevelVO.getDepartName()); 273 String departName = departNameTemplete.replace("${departName}", alarmRuleAndAlarmRuleLevelVO.getDepartName());
274 274
275 //查询短信上一条报警是否处理,未处理就不新增报警记录 275 //查询短信上一条报警是否处理,未处理就不新增报警记录
276 //TODO 先从数据库中获取,后期优化放redis中 276 //TODO 先从数据库中获取,后期优化放redis中
277 QueryWrapper<AlarmRecordHistory> queryWrapper = new QueryWrapper<>(); 277 QueryWrapper<AlarmRecordHistory> queryWrapper = new QueryWrapper<>();
...@@ -326,7 +326,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -326,7 +326,7 @@ public class SuddenDescentAlarmJob implements Job {
326 //流程添加定义ID 326 //流程添加定义ID
327 String processDefinitionId = flowBusinessService.getProcessDefinitionLastVersionId("productAlarmProcess"); 327 String processDefinitionId = flowBusinessService.getProcessDefinitionLastVersionId("productAlarmProcess");
328 alarmRecordHistory.setProcessDefinitionId(processDefinitionId); 328 alarmRecordHistory.setProcessDefinitionId(processDefinitionId);
329 329
330 //添加报警类型相关数据 330 //添加报警类型相关数据
331 alarmRecordHistory.setAlarmRuleType(alarmRuleType); 331 alarmRecordHistory.setAlarmRuleType(alarmRuleType);
332 alarmRecordHistory.setAlarmRuleTopType(alarmRuleAndAlarmRuleLevelVO.getAlarmRuleTopType()); 332 alarmRecordHistory.setAlarmRuleTopType(alarmRuleAndAlarmRuleLevelVO.getAlarmRuleTopType());
...@@ -338,7 +338,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -338,7 +338,7 @@ public class SuddenDescentAlarmJob implements Job {
338 alarmRecordHistory.setAlarmCustomRuleSecondType(alarmRuleAndAlarmRuleLevelVO.getAlarmCustomRuleSecondType()); 338 alarmRecordHistory.setAlarmCustomRuleSecondType(alarmRuleAndAlarmRuleLevelVO.getAlarmCustomRuleSecondType());
339 alarmRecordHistory.setAlarmCustomRuleType(alarmRuleAndAlarmRuleLevelVO.getAlarmCustomRuleType()); 339 alarmRecordHistory.setAlarmCustomRuleType(alarmRuleAndAlarmRuleLevelVO.getAlarmCustomRuleType());
340 alarmRecordHistory.setAlarmCustomRuleTypeTreepath(alarmRuleAndAlarmRuleLevelVO.getAlarmCustomRuleTypeTreepath()); 340 alarmRecordHistory.setAlarmCustomRuleTypeTreepath(alarmRuleAndAlarmRuleLevelVO.getAlarmCustomRuleTypeTreepath());
341 341
342 alarmRecordHistoryService.save(alarmRecordHistory); 342 alarmRecordHistoryService.save(alarmRecordHistory);
343 343
344 344
...@@ -455,7 +455,7 @@ public class SuddenDescentAlarmJob implements Job { ...@@ -455,7 +455,7 @@ public class SuddenDescentAlarmJob implements Job {
455 return false; 455 return false;
456 } 456 }
457 } 457 }
458 458
459 /** 459 /**
460 * @param businessTable 460 * @param businessTable
461 * @param flowKey 461 * @param flowKey
......
...@@ -206,11 +206,10 @@ public class ErpSettlementController { ...@@ -206,11 +206,10 @@ public class ErpSettlementController {
206 } 206 }
207 @AutoLog(value = "药剂结算单详情-验收审批") 207 @AutoLog(value = "药剂结算单详情-验收审批")
208 @ApiOperation(value="药剂结算单详情-验收审批", notes="药剂结算单详情-验收审批") 208 @ApiOperation(value="药剂结算单详情-验收审批", notes="药剂结算单详情-验收审批")
209 @DeleteMapping(value = "/auditAccept") 209 @GetMapping(value = "/auditAccept")
210 public Result<?> auditAccept(@RequestParam(name="id",required=true) String id) { 210 public Result<?> auditAccept(@RequestParam(name="id",required=true) String id) {
211 Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); 211 Result<ErpSettlementVO> result = new Result<ErpSettlementVO>();
212 ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); 212 ErpSettlement erpSettlementEntity = erpSettlementService.getById(id);
213
214 erpSettlementEntity.setInspectTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); 213 erpSettlementEntity.setInspectTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN));
215 erpSettlementEntity.setInspectorSign(BaseContextHandler.getUserName()); 214 erpSettlementEntity.setInspectorSign(BaseContextHandler.getUserName());
216 if(erpSettlementEntity==null) { 215 if(erpSettlementEntity==null) {
...@@ -226,11 +225,10 @@ public class ErpSettlementController { ...@@ -226,11 +225,10 @@ public class ErpSettlementController {
226 225
227 @AutoLog(value = "药剂结算单详情-经理审批") 226 @AutoLog(value = "药剂结算单详情-经理审批")
228 @ApiOperation(value="药剂结算单详情-经理审批", notes="药剂结算单详情-经理审批") 227 @ApiOperation(value="药剂结算单详情-经理审批", notes="药剂结算单详情-经理审批")
229 @DeleteMapping(value = "/auditManager") 228 @GetMapping(value = "/auditManager")
230 public Result<?> auditManager(@RequestParam(name="id",required=true) String id) { 229 public Result<?> auditManager(@RequestParam(name="id",required=true) String id) {
231 Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); 230 Result<ErpSettlementVO> result = new Result<ErpSettlementVO>();
232 ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); 231 ErpSettlement erpSettlementEntity = erpSettlementService.getById(id);
233
234 erpSettlementEntity.setApproveTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); 232 erpSettlementEntity.setApproveTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN));
235 erpSettlementEntity.setApproverSign(BaseContextHandler.getUserName()); 233 erpSettlementEntity.setApproverSign(BaseContextHandler.getUserName());
236 if(erpSettlementEntity==null) { 234 if(erpSettlementEntity==null) {
...@@ -245,7 +243,7 @@ public class ErpSettlementController { ...@@ -245,7 +243,7 @@ public class ErpSettlementController {
245 } 243 }
246 @AutoLog(value = "药剂结算单详情-结算") 244 @AutoLog(value = "药剂结算单详情-结算")
247 @ApiOperation(value="药剂结算单详情-结算", notes="药剂结算单详情-结算") 245 @ApiOperation(value="药剂结算单详情-结算", notes="药剂结算单详情-结算")
248 @DeleteMapping(value = "/settlement") 246 @GetMapping(value = "/settlement")
249 public Result<?> settlement(@RequestParam(name="id",required=true) String id) { 247 public Result<?> settlement(@RequestParam(name="id",required=true) String id) {
250 Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); 248 Result<ErpSettlementVO> result = new Result<ErpSettlementVO>();
251 ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); 249 ErpSettlement erpSettlementEntity = erpSettlementService.getById(id);
...@@ -255,7 +253,6 @@ public class ErpSettlementController { ...@@ -255,7 +253,6 @@ public class ErpSettlementController {
255 result.error500("未找到对应实体"); 253 result.error500("未找到对应实体");
256 }else { 254 }else {
257 //修改 入库表状态 255 //修改 入库表状态
258
259 boolean ok = erpSettlementService.settlement(erpSettlementEntity); 256 boolean ok = erpSettlementService.settlement(erpSettlementEntity);
260 if(ok) { 257 if(ok) {
261 result.success("结算成功!"); 258 result.success("结算成功!");
......
...@@ -40,6 +40,7 @@ public class ErpSettlement { ...@@ -40,6 +40,7 @@ public class ErpSettlement {
40 /**水厂编号*/ 40 /**水厂编号*/
41 @Excel(name = "水厂编号", width = 15) 41 @Excel(name = "水厂编号", width = 15)
42 @ApiModelProperty(value = "水厂编号") 42 @ApiModelProperty(value = "水厂编号")
43 @Dict(dictTable="sys_depart",dicCode = "id",dicText = "depart_name")
43 private String departId; 44 private String departId;
44 /**采购合同*/ 45 /**采购合同*/
45 @ApiModelProperty(value = "采购合同") 46 @ApiModelProperty(value = "采购合同")
......
...@@ -175,7 +175,7 @@ skua: ...@@ -175,7 +175,7 @@ skua:
175 appKey: 3a2653ad36727 175 appKey: 3a2653ad36727
176 pushHostName: http://api.push.mob.com/v3/push/createPush 176 pushHostName: http://api.push.mob.com/v3/push/createPush
177 packageName: com.kingtrol.flutter_zhongye 177 packageName: com.kingtrol.flutter_zhongye
178 iosProduction: 0 178 iosProduction: 1
179 # 自定义逻辑,以','分割(e.g: messagePush:消息推送完后处理) 179 # 自定义逻辑,以','分割(e.g: messagePush:消息推送完后处理)
180 flow: 180 flow:
181 custom-logic: messagePush 181 custom-logic: messagePush
......
...@@ -18,26 +18,19 @@ import java.util.List; ...@@ -18,26 +18,19 @@ import java.util.List;
18 public class JnhbLargeScreenVO { 18 public class JnhbLargeScreenVO {
19 @ApiModelProperty(value = "头部统计数值") 19 @ApiModelProperty(value = "头部统计数值")
20 private List<ResultNumberVO> headStatisticsList = null; 20 private List<ResultNumberVO> headStatisticsList = null;
21
22 @ApiModelProperty(value = "各站点能源消耗排名") 21 @ApiModelProperty(value = "各站点能源消耗排名")
23 private List<PowerConsumeVO> powerConsumeVOList = null; 22 private List<PowerConsumeVO> powerConsumeVOList = null;
24
25 @ApiModelProperty(value = "负荷率对象") 23 @ApiModelProperty(value = "负荷率对象")
26 private List<LoadRateVO> loadRateVOList = null; 24 private List<LoadRateVO> loadRateVOList = null;
27
28 @ApiModelProperty(value = "CO2排放排名") 25 @ApiModelProperty(value = "CO2排放排名")
29 private List<ResultNumberVO> co2DataList = null; 26 private List<ResultNumberVO> co2DataList = null;
30
31
32 @ApiModelProperty(value = "消减量统计") 27 @ApiModelProperty(value = "消减量统计")
33 private List<ResultNumberVO> reduceStatisticsList = null; 28 private List<ResultNumberVO> reduceStatisticsList = null;
34 29
35 @ApiModelProperty(value = "ESG减排趋势") 30 @ApiModelProperty(value = "ESG减排趋势")
36 private List<ResultChartsVO> esgChartsList= null; 31 private List<ResultChartsVO> esgChartsList= null;
37
38 @ApiModelProperty(value = "吨消减能耗") 32 @ApiModelProperty(value = "吨消减能耗")
39 private List<ResultChartsVO> energyConsumeChartsList = null; 33 private List<ResultChartsVO> energyConsumeChartsList = null;
40
41 @ApiModelProperty(value = "废物处理对象集合") 34 @ApiModelProperty(value = "废物处理对象集合")
42 private List<WasteMaterialVO> wasteMaterialList = null;//废物处理对象集合 35 private List<WasteMaterialVO> wasteMaterialList = null;//废物处理对象集合
43 @ApiModelProperty(value = "一级能耗设备数量") 36 @ApiModelProperty(value = "一级能耗设备数量")
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!