kangwei: 地图隐患排查巡检统计,添加yhNum 、yclNum属性,
正在显示
3 个修改的文件
包含
31 行增加
和
3 行删除
... | @@ -68,12 +68,12 @@ public class ReportItemVO { | ... | @@ -68,12 +68,12 @@ public class ReportItemVO { |
68 | } | 68 | } |
69 | 69 | ||
70 | public String getValueTbBl() { | 70 | public String getValueTbBl() { |
71 | valueTbBl = JSUtils.executeExpression("("+this.getValue() + " - " + this.getValueTb() + ") / " +this.getValueTb(),"0.0") ; | 71 | valueTbBl = JSUtils.executeExpression("("+this.getValue() + " - " + this.getValueTb() + ") *100/ " +this.getValueTb(),"0.0") ; |
72 | return valueTbBl; | 72 | return valueTbBl; |
73 | } | 73 | } |
74 | 74 | ||
75 | public String getValueHbBl() { | 75 | public String getValueHbBl() { |
76 | valueHbBl = JSUtils.executeExpression("("+this.getValue() + " - " + this.getValueHb() + ") / " +this.getValueHb(),"0.0") ; | 76 | valueHbBl = JSUtils.executeExpression("("+this.getValue() + " - " + this.getValueHb() + ") *100/ " +this.getValueHb(),"0.0") ; |
77 | return valueHbBl; | 77 | return valueHbBl; |
78 | } | 78 | } |
79 | } | 79 | } | ... | ... |
... | @@ -25,8 +25,36 @@ public class MapDatabaseResult { | ... | @@ -25,8 +25,36 @@ public class MapDatabaseResult { |
25 | /**纬度*/ | 25 | /**纬度*/ |
26 | @ApiModelProperty(value = "纬度") | 26 | @ApiModelProperty(value = "纬度") |
27 | private String latitude; | 27 | private String latitude; |
28 | |||
29 | @ApiModelProperty(value = "隐患未处理数量") | ||
30 | private Integer yhNum; | ||
31 | @ApiModelProperty(value = "已处理数量") | ||
32 | private Integer yclNum; | ||
28 | /**隐患排查事件*/ | 33 | /**隐患排查事件*/ |
29 | @ApiModelProperty(value = "隐患排查事件") | 34 | @ApiModelProperty(value = "隐患排查事件") |
30 | private List<DangerDatabaseResult> yhList; | 35 | private List<DangerDatabaseResult> yhList; |
31 | 36 | ||
37 | public Integer getYhNum() { | ||
38 | yhNum = 0 ; | ||
39 | if(yhList != null ){ | ||
40 | for( DangerDatabaseResult result: yhList){ | ||
41 | if("1".equals(result.getStatus())){ | ||
42 | yhNum ++ ; | ||
43 | } | ||
44 | } | ||
45 | } | ||
46 | return yhNum; | ||
47 | } | ||
48 | |||
49 | public Integer getYclNum() { | ||
50 | yclNum = 0 ; | ||
51 | if(yhList != null ){ | ||
52 | for( DangerDatabaseResult result: yhList){ | ||
53 | if("2".equals(result.getStatus())){ | ||
54 | yclNum ++ ; | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | return yclNum; | ||
59 | } | ||
32 | } | 60 | } | ... | ... |
... | @@ -126,7 +126,7 @@ public class OperationReportServiceImpl implements IOperationReportService { | ... | @@ -126,7 +126,7 @@ public class OperationReportServiceImpl implements IOperationReportService { |
126 | //药剂成本高于控制目标--水务公司列表 | 126 | //药剂成本高于控制目标--水务公司列表 |
127 | dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"yyh,yhcyqyy", departId, seasonTimeVO.getStartTime(), seasonTimeVO.getEndTime()); | 127 | dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"yyh,yhcyqyy", departId, seasonTimeVO.getStartTime(), seasonTimeVO.getEndTime()); |
128 | sql = "select * from ( "; | 128 | sql = "select * from ( "; |
129 | sql += " select d.depart_name 'departName', aaa.depart_id , avg(aaa.yyh) realConsume , IFNULL(tc.target_power,2) 'targetConsume' ,GROUP_CONCAT(aaa.yhcyqyy) 'causeAnalysis' from "+ dataViewName4411+" aaa";; | 129 | sql += " select d.depart_name 'departName', aaa.depart_id , avg(aaa.yyh) realConsume , IFNULL(tc.target_drug,2) 'targetConsume' ,GROUP_CONCAT(aaa.yhcyqyy) 'causeAnalysis' from "+ dataViewName4411+" aaa";; |
130 | sql += " left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"; | 130 | sql += " left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"; |
131 | sql += " left join sys_depart d on d.id = aaa.depart_id "; | 131 | sql += " left join sys_depart d on d.id = aaa.depart_id "; |
132 | sql += " group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "; | 132 | sql += " group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "; | ... | ... |
-
请 注册 或 登录 后发表评论