Merge remote-tracking branch 'origin/master'
正在显示
8 个修改的文件
包含
51 行增加
和
31 行删除
... | @@ -55,6 +55,7 @@ public class ScybReportHandle implements ICustomHandle{ | ... | @@ -55,6 +55,7 @@ public class ScybReportHandle implements ICustomHandle{ |
55 | dataFieldDict.put("depart_id", "厂站编码"); | 55 | dataFieldDict.put("depart_id", "厂站编码"); |
56 | dataFieldDict.put("yddf", "电费"); | 56 | dataFieldDict.put("yddf", "电费"); |
57 | dataFieldDict.put("wxfy", "设备维修费"); | 57 | dataFieldDict.put("wxfy", "设备维修费"); |
58 | dataFieldDict.put("whfy", "设备维护费"); | ||
58 | //获取填报数据 | 59 | //获取填报数据 |
59 | String dataViewName4411 = ReportViewUtil.buildViewLike(ReportConstant.view4411,"", departIds, month); | 60 | String dataViewName4411 = ReportViewUtil.buildViewLike(ReportConstant.view4411,"", departIds, month); |
60 | //结果集 | 61 | //结果集 | ... | ... |
... | @@ -839,13 +839,16 @@ | ... | @@ -839,13 +839,16 @@ |
839 | v4.bnsjyh, | 839 | v4.bnsjyh, |
840 | v4.yhcyqyy, | 840 | v4.yhcyqyy, |
841 | c.cost AS yddf, | 841 | c.cost AS yddf, |
842 | r.total_cost AS wxfy | 842 | r.total_cost AS wxfy, |
843 | w.maintenance_cost AS whfy | ||
843 | FROM | 844 | FROM |
844 | sys_depart d | 845 | sys_depart d |
845 | LEFT JOIN ( SELECT * FROM ${dataViewName4411} v WHERE v.time = #{month} ) v4 ON v4.depart_id = d.id | 846 | LEFT JOIN ( SELECT * FROM ${dataViewName4411} v WHERE v.time = #{month} ) v4 ON v4.depart_id = d.id |
846 | LEFT JOIN ( SELECT cost,depart_id FROM report_electric_cost WHERE month = #{month} ) c ON c.depart_id = d.id | 847 | LEFT JOIN ( SELECT cost,depart_id FROM report_electric_cost WHERE month = #{month} ) c ON c.depart_id = d.id |
847 | LEFT JOIN ( SELECT ROUND(SUM(total_cost),2) AS total_cost,depart_id FROM equipment_repair | 848 | LEFT JOIN ( SELECT ROUND(SUM(total_cost),2) AS total_cost,depart_id FROM equipment_repair |
848 | WHERE LEFT(repair_date,7) = #{month} GROUP BY LEFT(repair_date,7),depart_id ) r ON r.depart_id = d.id | 849 | WHERE LEFT(repair_date,7) = #{month} GROUP BY LEFT(repair_date,7),depart_id ) r ON r.depart_id = d.id |
850 | LEFT JOIN ( SELECT ROUND(SUM(maintenance_cost),2) AS maintenance_cost,depart_id FROM equipment_maintain_task | ||
851 | WHERE LEFT(maintain_time,7) = #{month} GROUP BY LEFT(maintain_time,7),depart_id ) w ON w.depart_id = d.id | ||
849 | WHERE | 852 | WHERE |
850 | d.id IN | 853 | d.id IN |
851 | <foreach item="item" index="index" collection="departId.split(',')" open="(" separator="," close=")"> | 854 | <foreach item="item" index="index" collection="departId.split(',')" open="(" separator="," close=")"> | ... | ... |
... | @@ -102,24 +102,24 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa | ... | @@ -102,24 +102,24 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa |
102 | " round(100*(sum(v1.CSL)/10000-ifnull(tb.clsl_tb,0))/ifnull(tb.clsl_tb,sum(v1.CSL)/10000),2) as sjsldbbhl, " + | 102 | " round(100*(sum(v1.CSL)/10000-ifnull(tb.clsl_tb,0))/ifnull(tb.clsl_tb,sum(v1.CSL)/10000),2) as sjsldbbhl, " + |
103 | " v6.ysjsldyqntqyy, " + | 103 | " v6.ysjsldyqntqyy, " + |
104 | " ifnull(v7.ysfsl,0) as qntqsfsl, " + | 104 | " ifnull(v7.ysfsl,0) as qntqsfsl, " + |
105 | " v6.ysfsl,v6.sfsldbbhl, " + | 105 | " v6.ysfsl," + |
106 | " round(100*((v6.ysfsl-ifnull(v7.ysfsl,0))/ifnull(v7.ysfsl,0)),2) sfsldbbhl, " + | ||
106 | " rtc.target_water as ndslmb, " + | 107 | " rtc.target_water as ndslmb, " + |
107 | " round(100*(sum(v1.CSL)/10000)/rtc.target_water,2) yslwcbl, " + | 108 | " round(100*(sum(v1.CSL)/10000)/rtc.target_water,2) yslwcbl, " + |
108 | " v6.sldyyqyy, " + | 109 | " v6.sldyyqyy, " + |
109 | " round(v4.dlhj/sum(v1.CSL),2) as ydh," + | 110 | " round(v4.dlhj/sum(v1.CSL),2) as ydh," + |
110 | " round(ifnull(v5.dlhj/tb.clsl_tb,0)/10000,2) qntqdh, " + | 111 | " round(ifnull(v5.dlhj/tb.clsl_tb,0)/10000,2) qntqdh, " + |
111 | " round(100*(v4.dlhj-ifnull(v5.dlhj,0))/ifnull(v5.dlhj,v4.dlhj),2) as dhdbbhl, " + | 112 | " round(100*((v4.dlhj/sum(v1.CSL))-(ifnull(v5.dlhj/tb.clsl_tb,0)/10000))/(ifnull(v5.dlhj/tb.clsl_tb,0)/10000),2) as dhdbbhl, " + |
112 | " v6.dhgyqntqyy, " + | 113 | " v6.dhgyqntqyy, " + |
113 | " round(v6.yyf/sum(v1.CSL),2) as yyh, " + | 114 | " round(v6.yyf/sum(v1.CSL),2) as yyh, " + |
114 | " v6.yyf," + | 115 | " v6.yyf," + |
115 | " round(ifnull(v5.yjhl/tb.clsl_tb/10000,0),2) qntqyh, " + | 116 | " round(ifnull(v5.yjhl/tb.clsl_tb/10000,0),2) qntqyh, " + |
116 | " round(100*(v4.yjhl-ifnull(v5.yjhl,0))/ifnull(v5.yjhl,v4.yjhl),2) as yhdbbhl, " + | 117 | " round(100*(v6.yyf/sum(v1.CSL)-ifnull(v5.yjhl/tb.clsl_tb/10000,0))/ifnull(v5.yjhl/tb.clsl_tb/10000,1),2) as yhdbbhl, " + |
117 | " v6.yhgyqntqyy, " + | 118 | " v6.yhgyqntqyy, " + |
118 | " rtc.target_power as bndhmb, " + | 119 | " rtc.target_power as bndhmb, " + |
119 | " round(y.dlhj_year/sum(v1.CSL),2) as bnsjdh, " + | 120 | " round(y.dlhj_year/sum(v1.CSL),2) as bnsjdh, " + |
120 | " v6.dhcmbzyy,v6.df,v6.sbwhf, " + | 121 | " v6.dhcmbzyy,v6.df,v6.sbwhf, " + |
121 | " rtc.target_drug as bnyhmb, " + | 122 | " rtc.target_drug as bnyhmb, " + |
122 | // " round(y.yjhl_year/sum(v1.CSL),2) as bnsjyh, " + | ||
123 | " round(v4.yjhl/sum(v1.CSL),2) as bnsjyh, " + | 123 | " round(v4.yjhl/sum(v1.CSL),2) as bnsjyh, " + |
124 | " v6.yhcyqyy " + | 124 | " v6.yhcyqyy " + |
125 | " from "+dataViewName2119+" v1 " + | 125 | " from "+dataViewName2119+" v1 " + | ... | ... |
... | @@ -91,24 +91,17 @@ | ... | @@ -91,24 +91,17 @@ |
91 | </select> | 91 | </select> |
92 | <select id="getMaintainCost" parameterType="java.lang.String" resultType="java.lang.Double"> | 92 | <select id="getMaintainCost" parameterType="java.lang.String" resultType="java.lang.Double"> |
93 | SELECT | 93 | SELECT |
94 | IFNULL( | 94 | IFNULL(SUM(emt.material_cost),0) AS cost |
95 | SUM( | ||
96 | etc.labor_cost + etc.material_cost + etc.maintenance_cost + etc.machinery_cost + etc.service_cost + | ||
97 | etc.wastage_cost + etc.other_cost | ||
98 | ), | ||
99 | 0 | ||
100 | ) AS cost | ||
101 | FROM | 95 | FROM |
102 | equipment_maintain_task emt | 96 | equipment_maintain_task emt |
103 | LEFT JOIN equipment_task_cost etc ON etc.task_id = emt.id | ||
104 | WHERE | 97 | WHERE |
105 | emt.del_flag = 0 | 98 | emt.del_flag = 0 |
106 | <if test="startTime !=null and startTime !=''"> | 99 | <if test="startTime !=null and startTime !=''"> |
107 | AND emt.maintain_time BETWEEN #{startTime} | 100 | AND emt.maintain_time BETWEEN #{startTime} |
108 | </if> | 101 | </if> |
109 | <if test="endTime !=null and endTime !=''"> | 102 | <if test="endTime !=null and endTime !=''"> |
110 | and #{endTime} | 103 | and #{endTime} |
111 | </if> | 104 | </if> |
112 | </select> | 105 | </select> |
113 | 106 | ||
114 | <select id="getEquipmentStatisticsDetailsNew" resultType="com.skua.modules.equipment.vo.EquipmentStatisticsCountVO"> | 107 | <select id="getEquipmentStatisticsDetailsNew" resultType="com.skua.modules.equipment.vo.EquipmentStatisticsCountVO"> | ... | ... |
... | @@ -93,6 +93,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -93,6 +93,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
93 | equipmentMaintainTaskVO.setMaintenanceFrontUrl(equipmentMaintainTask.getMaintenanceFrontUrl()); | 93 | equipmentMaintainTaskVO.setMaintenanceFrontUrl(equipmentMaintainTask.getMaintenanceFrontUrl()); |
94 | equipmentMaintainTaskVO.setMaintenanceAfterUrl(equipmentMaintainTask.getMaintenanceAfterUrl()); | 94 | equipmentMaintainTaskVO.setMaintenanceAfterUrl(equipmentMaintainTask.getMaintenanceAfterUrl()); |
95 | equipmentMaintainTaskVO.setResultsEnforcement(equipmentMaintainTask.getResultsEnforcement()); | 95 | equipmentMaintainTaskVO.setResultsEnforcement(equipmentMaintainTask.getResultsEnforcement()); |
96 | equipmentMaintainTaskVO.setMaintenanceCost(equipmentMaintainTask.getMaintenanceCost()); | ||
96 | //维护内容 | 97 | //维护内容 |
97 | EquipmentMaintenanceContentVO equipmentMaintenanceContentVO = new EquipmentMaintenanceContentVO(); | 98 | EquipmentMaintenanceContentVO equipmentMaintenanceContentVO = new EquipmentMaintenanceContentVO(); |
98 | List<EquipmentMaintainStandardVO> standardByTaskId = baseMapper.getStandardByTaskId(id); | 99 | List<EquipmentMaintainStandardVO> standardByTaskId = baseMapper.getStandardByTaskId(id); |
... | @@ -113,7 +114,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -113,7 +114,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
113 | //备件清单 | 114 | //备件清单 |
114 | List<EquipmentSparePartListVO> sparePartListByTaskId = baseMapper.getSparePartListByTaskId(id); | 115 | List<EquipmentSparePartListVO> sparePartListByTaskId = baseMapper.getSparePartListByTaskId(id); |
115 | equipmentMaintainTaskVO.setEquipmentSparePartListVOList(sparePartListByTaskId); | 116 | equipmentMaintainTaskVO.setEquipmentSparePartListVOList(sparePartListByTaskId); |
116 | 117 | ||
117 | //验收情况 | 118 | //验收情况 |
118 | String userCode = BaseContextHandler.getUserId(); | 119 | String userCode = BaseContextHandler.getUserId(); |
119 | if (userCode.equals(equipmentMaintainPlanVO.getPlanAccepterId())) { | 120 | if (userCode.equals(equipmentMaintainPlanVO.getPlanAccepterId())) { |
... | @@ -197,7 +198,8 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -197,7 +198,8 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
197 | equipmentMaintainTask.setMaintenanceFrontUrl(equipmentMaintainTaskVO.getMaintenanceFrontUrl()); | 198 | equipmentMaintainTask.setMaintenanceFrontUrl(equipmentMaintainTaskVO.getMaintenanceFrontUrl()); |
198 | equipmentMaintainTask.setMaintenanceAfterUrl(equipmentMaintainTaskVO.getMaintenanceAfterUrl()); | 199 | equipmentMaintainTask.setMaintenanceAfterUrl(equipmentMaintainTaskVO.getMaintenanceAfterUrl()); |
199 | equipmentMaintainTask.setDeviceAdministratorId(equipmentMaintainTaskVO.getDeviceAdministratorId()); | 200 | equipmentMaintainTask.setDeviceAdministratorId(equipmentMaintainTaskVO.getDeviceAdministratorId()); |
200 | 201 | equipmentMaintainTask.setMaintenanceCost(equipmentMaintainTaskVO.getMaintenanceCost()); | |
202 | |||
201 | //新增验收情况 | 203 | //新增验收情况 |
202 | boolean checkTag = false; | 204 | boolean checkTag = false; |
203 | if (equipmentMaintainTaskVO.getCurrentState() != 3 && status == 3) { | 205 | if (equipmentMaintainTaskVO.getCurrentState() != 3 && status == 3) { |
... | @@ -211,7 +213,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -211,7 +213,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
211 | equipmentMaintainTaskCheck.setExpenses(e.getExpenses()); | 213 | equipmentMaintainTaskCheck.setExpenses(e.getExpenses()); |
212 | equipmentMaintainTaskCheck.setAcceptancesStatus(e.getAcceptancesStatus()); | 214 | equipmentMaintainTaskCheck.setAcceptancesStatus(e.getAcceptancesStatus()); |
213 | equipmentMaintainTaskCheck.setAcceptancesTime(e.getAcceptancesTime()); | 215 | equipmentMaintainTaskCheck.setAcceptancesTime(e.getAcceptancesTime()); |
214 | 216 | ||
215 | String checkId = e.getId(); | 217 | String checkId = e.getId(); |
216 | if(StringUtils.isEmpty(checkId)) { | 218 | if(StringUtils.isEmpty(checkId)) { |
217 | equipmentMaintainTaskCheckMapper.insert(equipmentMaintainTaskCheck); | 219 | equipmentMaintainTaskCheckMapper.insert(equipmentMaintainTaskCheck); |
... | @@ -219,7 +221,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -219,7 +221,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
219 | equipmentMaintainTaskCheck.setId(checkId); | 221 | equipmentMaintainTaskCheck.setId(checkId); |
220 | equipmentMaintainTaskCheckMapper.updateById(equipmentMaintainTaskCheck); | 222 | equipmentMaintainTaskCheckMapper.updateById(equipmentMaintainTaskCheck); |
221 | } | 223 | } |
222 | 224 | ||
223 | //判断如果不合格,则打回到任务执行节点 | 225 | //判断如果不合格,则打回到任务执行节点 |
224 | if("1".equals(equipmentMaintainTaskCheck.getMaintainQuality())) { | 226 | if("1".equals(equipmentMaintainTaskCheck.getMaintainQuality())) { |
225 | equipmentMaintainTask.setResultsEnforcement(2); | 227 | equipmentMaintainTask.setResultsEnforcement(2); |
... | @@ -253,7 +255,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -253,7 +255,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
253 | handleSparepartInOrOut(sparepartInfoList,maintainerId,"in"); | 255 | handleSparepartInOrOut(sparepartInfoList,maintainerId,"in"); |
254 | //删除备品备件数据 | 256 | //删除备品备件数据 |
255 | equipmentMaintainTaskSparepartMapper.deleteByTaskId(equipmentMaintainTaskVO.getId()); | 257 | equipmentMaintainTaskSparepartMapper.deleteByTaskId(equipmentMaintainTaskVO.getId()); |
256 | 258 | ||
257 | //更新物料库存数量-出库仓库 | 259 | //更新物料库存数量-出库仓库 |
258 | sparepartInfoList = equipmentMaintainTaskVO.getEquipmentSparePartListVOList(); | 260 | sparepartInfoList = equipmentMaintainTaskVO.getEquipmentSparePartListVOList(); |
259 | handleSparepartInOrOut(sparepartInfoList,maintainerId,"out"); | 261 | handleSparepartInOrOut(sparepartInfoList,maintainerId,"out"); |
... | @@ -348,7 +350,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint | ... | @@ -348,7 +350,7 @@ public class EquipmentMaintainTaskServiceImpl extends ServiceImpl<EquipmentMaint |
348 | if(equipmentMaintainTaskCalendarVO.getResultsEnforcement()==3&&userCode.equals(equipmentMaintainTaskCalendarVO.getPlanAccepterId())) { | 350 | if(equipmentMaintainTaskCalendarVO.getResultsEnforcement()==3&&userCode.equals(equipmentMaintainTaskCalendarVO.getPlanAccepterId())) { |
349 | equipmentMaintainTaskCalendarVO.setCurrentState(3); | 351 | equipmentMaintainTaskCalendarVO.setCurrentState(3); |
350 | } | 352 | } |
351 | 353 | ||
352 | String timeStr = DateUtils.format(timeDate, "yyyy-MM-dd"); | 354 | String timeStr = DateUtils.format(timeDate, "yyyy-MM-dd"); |
353 | List<EquipmentMaintainTaskCalendarVO> dayTaskList = taskCalendarMap.get(timeStr); | 355 | List<EquipmentMaintainTaskCalendarVO> dayTaskList = taskCalendarMap.get(timeStr); |
354 | if(dayTaskList ==null) { | 356 | if(dayTaskList ==null) { | ... | ... |
... | @@ -498,6 +498,7 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService | ... | @@ -498,6 +498,7 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService |
498 | public InspectionEquipIndicatorsVO getInspectionEquipIndicators(String startDate, String endDate) { | 498 | public InspectionEquipIndicatorsVO getInspectionEquipIndicators(String startDate, String endDate) { |
499 | InspectionEquipIndicatorsVO inspectionEquipIndicatorsVO = new InspectionEquipIndicatorsVO(); | 499 | InspectionEquipIndicatorsVO inspectionEquipIndicatorsVO = new InspectionEquipIndicatorsVO(); |
500 | //设置初始值 | 500 | //设置初始值 |
501 | inspectionEquipIndicatorsVO.setFinishRate("0"); | ||
501 | inspectionEquipIndicatorsVO.setCompletionRate("0"); | 502 | inspectionEquipIndicatorsVO.setCompletionRate("0"); |
502 | inspectionEquipIndicatorsVO.setUnCompletionRate("0"); | 503 | inspectionEquipIndicatorsVO.setUnCompletionRate("0"); |
503 | inspectionEquipIndicatorsVO.setAbnormalRate("0"); | 504 | inspectionEquipIndicatorsVO.setAbnormalRate("0"); |
... | @@ -584,6 +585,11 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService | ... | @@ -584,6 +585,11 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService |
584 | if (processInstanceStateMap != null && processInstanceStateMap.get(FlowEngineConstant.STATUS_FINISHED) != null) { | 585 | if (processInstanceStateMap != null && processInstanceStateMap.get(FlowEngineConstant.STATUS_FINISHED) != null) { |
585 | processedAbnormalItemsCount = processInstanceStateMap.get(FlowEngineConstant.STATUS_FINISHED).size(); | 586 | processedAbnormalItemsCount = processInstanceStateMap.get(FlowEngineConstant.STATUS_FINISHED).size(); |
586 | } | 587 | } |
588 | //完成率 | ||
589 | String finishRate = "0"; | ||
590 | if (totalInspectionEquipCount != 0) { | ||
591 | finishRate = numberFormat.format(checkedInspectionEquipCount / (double) totalInspectionEquipCount * 100); | ||
592 | } | ||
587 | //覆盖率 | 593 | //覆盖率 |
588 | String completionRate = "0"; | 594 | String completionRate = "0"; |
589 | if (totalInspectionEquipCount != 0) { | 595 | if (totalInspectionEquipCount != 0) { |
... | @@ -604,6 +610,7 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService | ... | @@ -604,6 +610,7 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService |
604 | if (abnormalItemsCount != 0) { | 610 | if (abnormalItemsCount != 0) { |
605 | processedAbnormalRate = numberFormat.format(processedAbnormalItemsCount / (double) abnormalItemsCount * 100); | 611 | processedAbnormalRate = numberFormat.format(processedAbnormalItemsCount / (double) abnormalItemsCount * 100); |
606 | } | 612 | } |
613 | inspectionEquipIndicatorsVO.setFinishRate(finishRate); | ||
607 | inspectionEquipIndicatorsVO.setCompletionRate(completionRate); | 614 | inspectionEquipIndicatorsVO.setCompletionRate(completionRate); |
608 | inspectionEquipIndicatorsVO.setUnCompletionRate(unCompletionRate); | 615 | inspectionEquipIndicatorsVO.setUnCompletionRate(unCompletionRate); |
609 | inspectionEquipIndicatorsVO.setAbnormalRate(abnormalRate); | 616 | inspectionEquipIndicatorsVO.setAbnormalRate(abnormalRate); |
... | @@ -932,7 +939,11 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService | ... | @@ -932,7 +939,11 @@ public class InspectionAnalysisServiceImpl implements IInspectionAnalysisService |
932 | abnormalCheckedItemsCount += ConvertUtils.getInt(abnormalTaskCheckedItemsCountMap.get(tempInspectionTaskId), 0); | 939 | abnormalCheckedItemsCount += ConvertUtils.getInt(abnormalTaskCheckedItemsCountMap.get(tempInspectionTaskId), 0); |
933 | } | 940 | } |
934 | inspectionAbnormalItemsTrendVO.setInspectionTaskDate(date); | 941 | inspectionAbnormalItemsTrendVO.setInspectionTaskDate(date); |
935 | inspectionAbnormalItemsTrendVO.setNotCheckedItemsCount(totalCheckeItemsCount - checkedItemsCount); | 942 | if(totalCheckeItemsCount - checkedItemsCount < 0){ |
943 | inspectionAbnormalItemsTrendVO.setNotCheckedItemsCount(0); | ||
944 | }else{ | ||
945 | inspectionAbnormalItemsTrendVO.setNotCheckedItemsCount(totalCheckeItemsCount - checkedItemsCount); | ||
946 | } | ||
936 | inspectionAbnormalItemsTrendVO.setAbnormalItemsCount(abnormalCheckedItemsCount); | 947 | inspectionAbnormalItemsTrendVO.setAbnormalItemsCount(abnormalCheckedItemsCount); |
937 | inspectionAbnormalItemsTrendVOList.add(inspectionAbnormalItemsTrendVO); | 948 | inspectionAbnormalItemsTrendVOList.add(inspectionAbnormalItemsTrendVO); |
938 | } | 949 | } | ... | ... |
... | @@ -39,6 +39,8 @@ public class InspectionEquipIndicatorsDetailVO { | ... | @@ -39,6 +39,8 @@ public class InspectionEquipIndicatorsDetailVO { |
39 | @ApiModelProperty(value = "未检设备数") | 39 | @ApiModelProperty(value = "未检设备数") |
40 | private Integer notCheckedInspectionEquipCount; | 40 | private Integer notCheckedInspectionEquipCount; |
41 | 41 | ||
42 | @ApiModelProperty(value = "设备完成率") | ||
43 | private String finishRate; | ||
42 | @ApiModelProperty(value = "完成率") | 44 | @ApiModelProperty(value = "完成率") |
43 | private String completionRate; | 45 | private String completionRate; |
44 | @ApiModelProperty(value = "未检率") | 46 | @ApiModelProperty(value = "未检率") |
... | @@ -96,8 +98,14 @@ public class InspectionEquipIndicatorsDetailVO { | ... | @@ -96,8 +98,14 @@ public class InspectionEquipIndicatorsDetailVO { |
96 | return processedAbnormalRate; | 98 | return processedAbnormalRate; |
97 | } | 99 | } |
98 | 100 | ||
99 | //覆盖率 | 101 | //设备完成率 |
100 | 102 | public String getFinishRate() { | |
103 | finishRate = "0";//设备完成率 | ||
104 | if (totalInspectionEquipCount != 0) { | ||
105 | finishRate = JSUtils.divide( checkedInspectionEquipCount*100 ,totalInspectionEquipCount ); | ||
106 | } | ||
107 | return finishRate; | ||
108 | } | ||
101 | 109 | ||
102 | 110 | ||
103 | 111 | ... | ... |
... | @@ -17,6 +17,8 @@ import lombok.EqualsAndHashCode; | ... | @@ -17,6 +17,8 @@ import lombok.EqualsAndHashCode; |
17 | @ApiModel(value="巡检设备指标", description="巡检设备指标") | 17 | @ApiModel(value="巡检设备指标", description="巡检设备指标") |
18 | public class InspectionEquipIndicatorsVO { | 18 | public class InspectionEquipIndicatorsVO { |
19 | 19 | ||
20 | @ApiModelProperty(value = "完成率") | ||
21 | private String finishRate; | ||
20 | @ApiModelProperty(value = "覆盖率") | 22 | @ApiModelProperty(value = "覆盖率") |
21 | private String completionRate; | 23 | private String completionRate; |
22 | @ApiModelProperty(value = "未检率") | 24 | @ApiModelProperty(value = "未检率") | ... | ... |
-
请 注册 或 登录 后发表评论