Browse Source

hj212 2005

zjs 1 week ago
parent
commit
8aa6f357dc

+ 2 - 1
src/main/java/com/cn/esermis/controller/DataAcquisitionInstrumentController.java

@@ -76,6 +76,7 @@ public class DataAcquisitionInstrumentController {
76
             wrapper.like("outlet_name", vo.getOutletName());
76
             wrapper.like("outlet_name", vo.getOutletName());
77
         }
77
         }
78
         wrapper.orderByDesc("department_code");
78
         wrapper.orderByDesc("department_code");
79
+        wrapper.orderByAsc("outlet_code");
79
         IPage<DataAcquisitionInstrument> pageList = dataAcquisitionInstrumentService.page(page, wrapper);
80
         IPage<DataAcquisitionInstrument> pageList = dataAcquisitionInstrumentService.page(page, wrapper);
80
         IPage<DataAcquisitionInstrumentVo> volits = new Page<>();
81
         IPage<DataAcquisitionInstrumentVo> volits = new Page<>();
81
         if (!pageList.getRecords().isEmpty()) {
82
         if (!pageList.getRecords().isEmpty()) {
@@ -278,7 +279,7 @@ public class DataAcquisitionInstrumentController {
278
 
279
 
279
         ExcelReader excelReader = new ExcelReader();
280
         ExcelReader excelReader = new ExcelReader();
280
         List<DataAllVo> data = excelReader.getData();
281
         List<DataAllVo> data = excelReader.getData();
281
-        System.out.println(data);
282
+//        System.out.println(data);
282
         List<Department> departmentList =  dataAcquisitionInstrumentService.getDepartmentDit();
283
         List<Department> departmentList =  dataAcquisitionInstrumentService.getDepartmentDit();
283
         // 添加公司编号
284
         // 添加公司编号
284
         for (DataAllVo datum : data) {
285
         for (DataAllVo datum : data) {

+ 2 - 2
src/main/java/com/cn/esermis/dpld/entity/DataAcquisitionInstrument.java

@@ -44,8 +44,8 @@ public class DataAcquisitionInstrument {
44
      *建设投用日期
44
      *建设投用日期
45
      */
45
      */
46
     @TableField(value = "use_data")
46
     @TableField(value = "use_data")
47
-    @DateTimeFormat(pattern = "yyyy")
48
-    @JsonFormat(pattern = "yyyy",timezone = "GMT+8")
47
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
48
+    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
49
     private Date useData;
49
     private Date useData;
50
     /**
50
     /**
51
      * 是否完成验收备案(0否 1是)
51
      * 是否完成验收备案(0否 1是)

+ 10 - 10
src/main/java/com/cn/esermis/excelReader/ExcelReader.java

@@ -79,8 +79,8 @@ public class ExcelReader {
79
 //                instrumentVo.setDepartmentName();
79
 //                instrumentVo.setDepartmentName();
80
 //                instrumentVo.setId();
80
 //                instrumentVo.setId();
81
                 instrumentVo.setOutletName(String.valueOf(x.get(6)!=null?x.get(6):""));
81
                 instrumentVo.setOutletName(String.valueOf(x.get(6)!=null?x.get(6):""));
82
-                instrumentVo.setOutletCode(String.valueOf(x.get(6)!=null?x.get(6):""));
83
-                instrumentVo.setType(String.valueOf(x.get(6)!=null?x.get(6):"").equals("废气")?1:2);
82
+                instrumentVo.setOutletCode(String.valueOf(x.get(7)!=null?x.get(7):""));
83
+                instrumentVo.setType(String.valueOf(x.get(8)!=null?x.get(8):"").equals("废气")?1:2);
84
 //                instrumentVo.setUseData();
84
 //                instrumentVo.setUseData();
85
                 if (x.get(14)!=null
85
                 if (x.get(14)!=null
86
                         && !String.valueOf(x.get(14)).equals("是")){
86
                         && !String.valueOf(x.get(14)).equals("是")){
@@ -120,18 +120,18 @@ public class ExcelReader {
120
                     instrumentVo.setCompanyCode(x.get(1)!=null? String.valueOf(x.get(1)) :"");
120
                     instrumentVo.setCompanyCode(x.get(1)!=null? String.valueOf(x.get(1)) :"");
121
                 }
121
                 }
122
                 // 分析仪
122
                 // 分析仪
123
-                instrumentVo.setBrand(x.get(20)!=null? String.valueOf(x.get(20)) :"");
124
-                instrumentVo.setModel(x.get(21)!=null? String.valueOf(x.get(21)) :"");
123
+                instrumentVo.setBrand(x.get(21)!=null? String.valueOf(x.get(21)) :"");
124
+                instrumentVo.setModel(x.get(22)!=null? String.valueOf(x.get(22)) :"");
125
                 instrumentVo.setName(x.get(20)!=null? String.valueOf(x.get(20)) :"");
125
                 instrumentVo.setName(x.get(20)!=null? String.valueOf(x.get(20)) :"");
126
 //                instrumentVo.setFactorInfor(x.get(22)!=null? String.valueOf(x.get(22)) :"");
126
 //                instrumentVo.setFactorInfor(x.get(22)!=null? String.valueOf(x.get(22)) :"");
127
 //                instrumentVo.setRange(x.get(23)!=null? String.valueOf(x.get(23)) :"");
127
 //                instrumentVo.setRange(x.get(23)!=null? String.valueOf(x.get(23)) :"");
128
 //                instrumentVo.setDataAcquisitionInstrumentId(x.get(24)!=null? String.valueOf(x.get(24)) :"");
128
 //                instrumentVo.setDataAcquisitionInstrumentId(x.get(24)!=null? String.valueOf(x.get(24)) :"");
129
-                instrumentVo.setReferenceOxygenContent(x.get(22)!=null? String.valueOf(x.get(22)) :"");
130
-                instrumentVo.setVelocityFieldCoefficient(x.get(23)!=null? String.valueOf(x.get(23)) :"");
131
-                instrumentVo.setPitotTubeCoefficient(x.get(24)!=null? String.valueOf(x.get(24)) :"");
132
-                instrumentVo.setKvalue(x.get(26)!=null? String.valueOf(x.get(26)) :"");
133
-                instrumentVo.setFlueArea(x.get(25)!=null? String.valueOf(x.get(25)) :"");
134
-                instrumentVo.setDilutionRatio(x.get(27)!=null? String.valueOf(x.get(27)) :"");
129
+                instrumentVo.setReferenceOxygenContent(x.get(23)!=null? String.valueOf(x.get(23)) :"");
130
+                instrumentVo.setVelocityFieldCoefficient(x.get(24)!=null? String.valueOf(x.get(24)) :"");
131
+                instrumentVo.setPitotTubeCoefficient(x.get(25)!=null? String.valueOf(x.get(25)) :"");
132
+                instrumentVo.setKvalue(x.get(27)!=null? String.valueOf(x.get(27)) :"");
133
+                instrumentVo.setFlueArea(x.get(26)!=null? String.valueOf(x.get(26)) :"");
134
+                instrumentVo.setDilutionRatio(x.get(28)!=null? String.valueOf(x.get(28)) :"");
135
 
135
 
136
 
136
 
137
 
137