9a9d8e2a 张雷

隐患排查问题修改

1 个父辈 1893b72a
...@@ -62,6 +62,9 @@ public class APPDangerInspectionRecordController { ...@@ -62,6 +62,9 @@ public class APPDangerInspectionRecordController {
62 if(dangerInspectionRecord.getDangerId() != null && dangerInspectionRecord.getDangerId().length() > 0 ){ 62 if(dangerInspectionRecord.getDangerId() != null && dangerInspectionRecord.getDangerId().length() > 0 ){
63 queryWrapper.eq("danger_id", dangerInspectionRecord.getDangerId()); 63 queryWrapper.eq("danger_id", dangerInspectionRecord.getDangerId());
64 } 64 }
65 if(StringUtils.isNotBlank(dangerInspectionRecord.getDepartId())){
66 queryWrapper.ge("depart_id", dangerInspectionRecord.getDepartId() ) ;
67 }
65 if(StringUtils.isNotBlank(dangerInspectionRecord.getStartTime())){ 68 if(StringUtils.isNotBlank(dangerInspectionRecord.getStartTime())){
66 queryWrapper.ge("report_date", dangerInspectionRecord.getStartTime() ) ; 69 queryWrapper.ge("report_date", dangerInspectionRecord.getStartTime() ) ;
67 } 70 }
......
...@@ -2,7 +2,6 @@ package com.skua.modules.dataAnalysis.service.impl; ...@@ -2,7 +2,6 @@ package com.skua.modules.dataAnalysis.service.impl;
2 2
3 import com.skua.common.constant.ReportConstant; 3 import com.skua.common.constant.ReportConstant;
4 import com.skua.common.report.ReportViewUtil; 4 import com.skua.common.report.ReportViewUtil;
5 import com.skua.core.util.ConvertUtils;
6 import com.skua.core.util.DoubleOperaUtils; 5 import com.skua.core.util.DoubleOperaUtils;
7 import com.skua.modules.dataAnalysis.mapper.FactoryOperateCenterMapper; 6 import com.skua.modules.dataAnalysis.mapper.FactoryOperateCenterMapper;
8 import com.skua.modules.dataAnalysis.service.IFactoryOperateCenterService; 7 import com.skua.modules.dataAnalysis.service.IFactoryOperateCenterService;
...@@ -10,9 +9,7 @@ import com.skua.modules.dataAnalysis.vo.ArchivesWarnVO; ...@@ -10,9 +9,7 @@ import com.skua.modules.dataAnalysis.vo.ArchivesWarnVO;
10 import com.skua.modules.dataAnalysis.vo.EquipAlarmVO; 9 import com.skua.modules.dataAnalysis.vo.EquipAlarmVO;
11 import com.skua.modules.dataAnalysis.vo.EquipRunTimeVO; 10 import com.skua.modules.dataAnalysis.vo.EquipRunTimeVO;
12 import com.skua.modules.dataAnalysis.vo.EquipWarnVO; 11 import com.skua.modules.dataAnalysis.vo.EquipWarnVO;
13 import com.skua.modules.flow.service.FlowForThirdBusinessService;
14 import com.skua.tool.util.DateUtils; 12 import com.skua.tool.util.DateUtils;
15 import org.springframework.beans.factory.annotation.Autowired;
16 import org.springframework.stereotype.Service; 13 import org.springframework.stereotype.Service;
17 import javax.annotation.Resource; 14 import javax.annotation.Resource;
18 import java.util.ArrayList; 15 import java.util.ArrayList;
...@@ -28,6 +25,24 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer ...@@ -28,6 +25,24 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
28 25
29 @Override 26 @Override
30 public Map<String, Object> getData(String departId, String month) { 27 public Map<String, Object> getData(String departId, String month) {
28 String tbMonth = DateUtils.getTbMonth(month);
29 String hbMonth = DateUtils.getHbMonth(month);
30 String year = month.substring(0,4);
31 String tbYear = String.valueOf(Integer.parseInt(year) - 1);
32 String dataViewName2119Year = ReportViewUtil.buildViewLike(ReportConstant.view2119,"CSL", departId, year);
33 String dataViewName2119YearTb = ReportViewUtil.buildViewLike(ReportConstant.view2119,"CSL", departId, tbYear);
34 String dataViewName2119Month = ReportViewUtil.buildViewLike(ReportConstant.view2119,"CSL", departId, month);
35 String dataViewName2119MonthTb = ReportViewUtil.buildViewLike(ReportConstant.view2119,"CSL", departId, tbMonth);
36 String dataViewName2119MonthHb = ReportViewUtil.buildViewLike(ReportConstant.view2119,"CSL", departId, hbMonth);
37
38 String field3a24 = "DLHJ,PAMRJ,SCLPAMZ,SCLPAMF,NACLO,PACGT,PACYT,PFS,FHTY,RYXNJ," +
39 "YWL,GXCLJ,CH3COONA,HXT,FECL3,SH,CH3COOH,FESO4G,FESO4Y,H2O2";
40 String dataViewName3a24Year = ReportViewUtil.buildViewLike(ReportConstant.view3a24,field3a24, departId, year);
41 String dataViewName3a24YearTb = ReportViewUtil.buildViewLike(ReportConstant.view3a24,field3a24, departId, tbYear);
42 String dataViewName3a24Month = ReportViewUtil.buildViewLike(ReportConstant.view3a24,field3a24, departId, month);
43 String dataViewName3a24MonthTb = ReportViewUtil.buildViewLike(ReportConstant.view3a24,field3a24, departId, tbMonth);
44 String dataViewName3a24MonthHb = ReportViewUtil.buildViewLike(ReportConstant.view3a24,field3a24, departId, hbMonth);
45
31 Map<String, Object> map = new HashMap<>(); 46 Map<String, Object> map = new HashMap<>();
32 map.put("nclsl",new HashMap<>()); 47 map.put("nclsl",new HashMap<>());
33 Map<String, Object> nclslMap = new HashMap<>(); 48 Map<String, Object> nclslMap = new HashMap<>();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!