zjs 1 vecka sedan
förälder
incheckning
8aa6f357dc

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

@@ -76,6 +76,7 @@ public class DataAcquisitionInstrumentController {
76 76
             wrapper.like("outlet_name", vo.getOutletName());
77 77
         }
78 78
         wrapper.orderByDesc("department_code");
79
+        wrapper.orderByAsc("outlet_code");
79 80
         IPage<DataAcquisitionInstrument> pageList = dataAcquisitionInstrumentService.page(page, wrapper);
80 81
         IPage<DataAcquisitionInstrumentVo> volits = new Page<>();
81 82
         if (!pageList.getRecords().isEmpty()) {
@@ -278,7 +279,7 @@ public class DataAcquisitionInstrumentController {
278 279
 
279 280
         ExcelReader excelReader = new ExcelReader();
280 281
         List<DataAllVo> data = excelReader.getData();
281
-        System.out.println(data);
282
+//        System.out.println(data);
282 283
         List<Department> departmentList =  dataAcquisitionInstrumentService.getDepartmentDit();
283 284
         // 添加公司编号
284 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 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 49
     private Date useData;
50 50
     /**
51 51
      * 是否完成验收备案(0否 1是)

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

@@ -79,8 +79,8 @@ public class ExcelReader {
79 79
 //                instrumentVo.setDepartmentName();
80 80
 //                instrumentVo.setId();
81 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 84
 //                instrumentVo.setUseData();
85 85
                 if (x.get(14)!=null
86 86
                         && !String.valueOf(x.get(14)).equals("是")){
@@ -120,18 +120,18 @@ public class ExcelReader {
120 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 125
                 instrumentVo.setName(x.get(20)!=null? String.valueOf(x.get(20)) :"");
126 126
 //                instrumentVo.setFactorInfor(x.get(22)!=null? String.valueOf(x.get(22)) :"");
127 127
 //                instrumentVo.setRange(x.get(23)!=null? String.valueOf(x.get(23)) :"");
128 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