kangwei: 水厂运营考核专题:吨水药费详情接口(药剂目标完成情况)
正在显示
4 个修改的文件
包含
26 行增加
和
4 行删除
... | @@ -26,7 +26,7 @@ public interface ReportConstant { | ... | @@ -26,7 +26,7 @@ public interface ReportConstant { |
26 | //药剂字段 | 26 | //药剂字段 |
27 | public static final String fieldYj = "PAMZ,PAMF,PAMRJ,SCLPAMZ,SCLPAMF,NACLO,PACGT,PACYT,PFS,FHTY,RYXNJ," + | 27 | public static final String fieldYj = "PAMZ,PAMF,PAMRJ,SCLPAMZ,SCLPAMF,NACLO,PACGT,PACYT,PFS,FHTY,RYXNJ," + |
28 | "YWL,GXCLJ,CH3COONA,HXT,FECL3,SH,CH3COOH,FESO4G,FESO4Y,H2O2"; | 28 | "YWL,GXCLJ,CH3COONA,HXT,FECL3,SH,CH3COOH,FESO4G,FESO4Y,H2O2"; |
29 | 29 | public static final String fieldYj_2 = "PACYT,PACGT,NaClO,SCLPAMF,PAMRJ,PFS,FHTY,RYXNJ,CH3COONA,HXT,FECL3,SH,CH3COOH,FESO4G,FESO4Y,H2O2"; | |
30 | //水量字段 | 30 | //水量字段 |
31 | public static final String fieldClsl = "CSL,JSL"; | 31 | public static final String fieldClsl = "CSL,JSL"; |
32 | public static final String field_CSL= "CSL"; | 32 | public static final String field_CSL= "CSL"; | ... | ... |
... | @@ -319,8 +319,8 @@ public class ReportViewUtil { | ... | @@ -319,8 +319,8 @@ public class ReportViewUtil { |
319 | public static ReportItemVO getSumValueByTBHB(String reportId, String fields, String departIds , String startTime , String endTime){ | 319 | public static ReportItemVO getSumValueByTBHB(String reportId, String fields, String departIds , String startTime , String endTime){ |
320 | ReportItemVO reportItemVO = null; | 320 | ReportItemVO reportItemVO = null; |
321 | String dataViewName3a24_value = ReportViewUtil.buildViewLike(reportId,fields, departIds, startTime,endTime); | 321 | String dataViewName3a24_value = ReportViewUtil.buildViewLike(reportId,fields, departIds, startTime,endTime); |
322 | String dataViewName3a24_valueHB = ReportViewUtil.buildViewLike(reportId,fields, departIds, DateUtils.getHbDate(startTime),DateUtils.getHbDate(startTime)); | 322 | String dataViewName3a24_valueHB = ReportViewUtil.buildViewLike(reportId,fields, departIds, DateUtils.getHbDate(startTime),DateUtils.getHbDate(endTime)); |
323 | String dataViewName3a24_valueTB = ReportViewUtil.buildViewLike(reportId,fields, departIds, DateUtils.getTbDate(startTime),DateUtils.getTbDate(startTime)); | 323 | String dataViewName3a24_valueTB = ReportViewUtil.buildViewLike(reportId,fields, departIds, DateUtils.getTbDate(startTime),DateUtils.getTbDate(endTime)); |
324 | 324 | ||
325 | String fieldsSql = ""; | 325 | String fieldsSql = ""; |
326 | if(StringUtils.isNotEmpty(fields)) { | 326 | if(StringUtils.isNotEmpty(fields)) { | ... | ... |
此文件的差异被折叠,
点击展开。
... | @@ -26,6 +26,17 @@ public class YJMonthDataVO { | ... | @@ -26,6 +26,17 @@ public class YJMonthDataVO { |
26 | @ApiModelProperty(value = "同比") | 26 | @ApiModelProperty(value = "同比") |
27 | private String valueTB;//同比 | 27 | private String valueTB;//同比 |
28 | 28 | ||
29 | |||
30 | @ApiModelProperty(value = "环比-比例") | ||
31 | private String valueHB_bl;//环比 | ||
32 | @ApiModelProperty(value = "同比-比例") | ||
33 | private String valueTB_bl;//同比 | ||
34 | @ApiModelProperty(value = "单位") | ||
35 | private String unit; | ||
36 | |||
37 | |||
38 | |||
39 | |||
29 | public String getMonthTarge() { | 40 | public String getMonthTarge() { |
30 | monthTarge = JSUtils.divide(yearTarge,12); | 41 | monthTarge = JSUtils.divide(yearTarge,12); |
31 | return monthTarge; | 42 | return monthTarge; |
... | @@ -34,12 +45,23 @@ public class YJMonthDataVO { | ... | @@ -34,12 +45,23 @@ public class YJMonthDataVO { |
34 | public YJMonthDataVO(){ | 45 | public YJMonthDataVO(){ |
35 | } | 46 | } |
36 | 47 | ||
37 | public YJMonthDataVO(String yjName, String yjCode, String yearTarge, String value, String valueHB, String valueTB) { | 48 | public YJMonthDataVO(String yjName, String yjCode, String unit, String yearTarge, String value, String valueHB, String valueTB) { |
38 | this.yjName = yjName; | 49 | this.yjName = yjName; |
39 | this.yjCode = yjCode; | 50 | this.yjCode = yjCode; |
51 | this.unit = unit; | ||
40 | this.yearTarge = yearTarge; | 52 | this.yearTarge = yearTarge; |
41 | this.value = value; | 53 | this.value = value; |
42 | this.valueHB = valueHB; | 54 | this.valueHB = valueHB; |
43 | this.valueTB = valueTB; | 55 | this.valueTB = valueTB; |
44 | } | 56 | } |
57 | |||
58 | public String getValueHB_bl() { | ||
59 | String expression = "( "+this.value +"-" +this.valueHB+")*100/"+this.valueHB; | ||
60 | return JSUtils.executeExpression(expression ,"0.0"); | ||
61 | } | ||
62 | |||
63 | public String getValueTB_bl() { | ||
64 | String expression = "( "+this.value +"-" +this.valueTB+")*100/"+this.valueTB; | ||
65 | return JSUtils.executeExpression(expression ,"0.0"); | ||
66 | } | ||
45 | } | 67 | } | ... | ... |
-
请 注册 或 登录 后发表评论