ee8c87bf 张雷

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

2 个父辈 9b9c5a44 ce2a0de1
...@@ -147,7 +147,7 @@ public class CommandCentreServiceImpl implements ICommandCentreService { ...@@ -147,7 +147,7 @@ public class CommandCentreServiceImpl implements ICommandCentreService {
147 sql += " where aaa.equipment_level = '6bf727eb7e7cca6a95c694dab0036b2c'";//A类设备 147 sql += " where aaa.equipment_level = '6bf727eb7e7cca6a95c694dab0036b2c'";//A类设备
148 List<EquipmentRepairAnalysisVO> dataList = getJdbcTemplate().query(sql,new BeanPropertyRowMapper<EquipmentRepairAnalysisVO>(EquipmentRepairAnalysisVO.class));; 148 List<EquipmentRepairAnalysisVO> dataList = getJdbcTemplate().query(sql,new BeanPropertyRowMapper<EquipmentRepairAnalysisVO>(EquipmentRepairAnalysisVO.class));;
149 149
150 dataMap.put("totalCost",JSUtils.subtract(repairCost,maintainCost)); 150 dataMap.put("totalCost",JSUtils.add(repairCost,maintainCost));
151 dataMap.put("dataList",dataList); 151 dataMap.put("dataList",dataList);
152 return dataMap; 152 return dataMap;
153 } 153 }
......
...@@ -34,4 +34,16 @@ public class InspectionAbnormalItemsTrendVO { ...@@ -34,4 +34,16 @@ public class InspectionAbnormalItemsTrendVO {
34 private Integer notCheckedItemsCount; 34 private Integer notCheckedItemsCount;
35 @ApiModelProperty(value = "异常项数量") 35 @ApiModelProperty(value = "异常项数量")
36 private Integer abnormalItemsCount; 36 private Integer abnormalItemsCount;
37
38 public Integer getNotCheckedItemsCount() {
39 if (totalCount != null && checkedItemsCount != null) {
40 if (totalCount - checkedItemsCount < 0) {
41 return checkedItemsCount - totalCount;
42 } else {
43 return totalCount - checkedItemsCount;
44 }
45 } else {
46 return 0;
47 }
48 }
37 } 49 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!