Browse Source

数采仪列表 事后审核控制

zjs 1 day ago
parent
commit
25acb9a52c

+ 64 - 2
src/main/java/com/cn/esermis/coding/PollutionGas.java

@@ -128,8 +128,70 @@ public enum PollutionGas implements CodeMean {
128 128
     a34040("铬酸雾","15","毫克/立方米","千克","N2.3"),
129 129
     a99010("丙烯腈","--","毫克/立方米","千克","N7.3"),
130 130
     a99049("光气","24","毫克/立方米","千克","N3.3"),
131
-    a99051("二硫化碳","12","毫克/立方米","千克","N4.3")
132
-
131
+    a99051("二硫化碳","12","毫克/立方米","千克","N4.3"),
132
+    w00000("污水","B01","升/秒","立方米","N5.2"),
133
+    w01001("pH值","001","无量纲","N2.2"),
134
+    w01002("色度","002","[色]度","N3.2"),
135
+    w01006("溶解性总固体","--","毫克/升","千克","N4"),
136
+    w01009("溶解氧","--","毫克/升","N3.1"),
137
+    w01010("水温","--","摄氏度","N3.1"),
138
+    w01012("悬浮物","003","毫克/升","千克","N4"),
139
+    w01014("电导率","--","微西[门子]/厘米","N3.1"),
140
+    w01017("五日生化需氧量","010","毫克/升","千克","N5.1"),
141
+    w01018("化学需氧量","011","毫克/升","千克","N5.1"),
142
+    w01019("高锰酸盐指数","--","毫克/升","千克","N3.1"),
143
+    w01020("总有机碳","015","毫克/升","千克","N3.1"),
144
+    w02003("粪大肠菌群","550","个/升","N9"),
145
+    w02006("细菌总数","--","个/升","N9"),
146
+    w03001("总α放射性","570","贝可[勒尔]/升","N3.1"),
147
+    w03002("总β放射性","571","贝可[勒尔]/升","N3.1"),
148
+    w19001("表面活性剂","--","毫克/升","千克","N3.2"),
149
+    w19002("阴离子表面活性剂","520","毫克/升","千克","N3.2"),
150
+    w20012("钡","039","毫克/升","千克","N3.3"),
151
+    w20023("硼","037","毫克/升","千克","N3.3"),
152
+    w20038("钴","040","毫克/升","千克","N3.4"),
153
+    w20061("钼","038","毫克/升","千克","N3.4"),
154
+    w20089("铊","041","纳克/升","毫克","N4"),
155
+    w20092("锡","036","毫克/升","千克","N3.1"),
156
+    w20111("总汞","020","微克/升","克","N3.2"),
157
+    w20113("烷基汞","021","纳克/升","毫克","N4"),
158
+    w20115("总镉","022","微克/升","克","N3.1"),
159
+    w20116("总铬","023","毫克/升","千克","N3.3"),
160
+    w20117("六价铬","024","微克/升","克","N2.3"),
161
+    w20119("总砷","026","微克/升","克","N2.3"),
162
+    w20120("总铅","027","微克/升","克","N4"),
163
+    w20121("总镍","028","毫克/升","千克","N3.2"),
164
+    w20122("总铜","029","毫克/升","千克","N3.2"),
165
+    w20123("总锌","030","毫克/升","千克","N3.3"),
166
+    w20124("总锰","031","毫克/升","千克","N3.3"),
167
+    w20125("总铁","032","毫克/升","千克","N3.3"),
168
+    w20126("总银","033","毫克/升","千克","N3.3"),
169
+    w20127("总铍","034","微克/升","克","N3.3"),
170
+    w20128("总硒","035","微克/升","克","N4.2"),
171
+    w20138("铜","毫克/升","千克","N3.3"),
172
+    w20139("锌","毫克/升","千克","N3.3"),
173
+    w20140("硒","毫克/升","千克","N3.3"),
174
+    w20141("砷","毫克/升","千克","N3.3"),
175
+    w20142("汞","微克/升","克","N3.3"),
176
+    w20143("镉","微克/升","克","N3.3"),
177
+    w20144("铅","毫克/升","千克","N3.3"),
178
+    w21001("总氮","065","毫克/升","千克","N4.2"),
179
+    w21003("氨氮","060","毫克/升","千克","N4.2"),
180
+    w21004("凯氏氮","062","毫克/升","千克","N3.1"),
181
+    w21006("亚硝酸盐","063","毫克/升","千克","N2.3"),
182
+    w21007("硝酸盐","064","毫克/升","千克","N2.3"),
183
+    w21011("总磷","101","毫克/升","千克","N3.2"),
184
+    w21016("氰化物","070","毫克/升","千克","N3.3"),
185
+    w21017("氟化物","072","毫克/升","千克","N4.2"),
186
+    w21019("硫化物","071","毫克/升","千克","N3.3"),
187
+    w21022("氯化物","090","毫克/升","千克","N3.1"),
188
+    w21038("硫酸盐","--","毫克/升","千克","N6"),
189
+    w22001("石油类","080","毫克/升","千克","N3.2"),
190
+    w23002("挥发酚","110","毫克/升","千克","N3.4"),
191
+    w25043("苯并[α]芘","540","微克/升","克","N3.1"),
192
+    w33001("六六六","350","纳克/升","毫克","N4"),
193
+    w33007("滴滴涕","351","纳克/升","毫克","N4"),
194
+    w99001("有机氮","061","毫克/升","千克","N3.1")
133 195
     ;
134 196
 
135 197
     private String code;

+ 1 - 0
src/main/java/com/cn/esermis/controller/PostMarkingController.java

@@ -63,6 +63,7 @@ public class PostMarkingController
63 63
                 }
64 64
             }
65 65
 //        }
66
+        objectQueryWrapper.last("ORDER BY FIELD(unit_type, 3,0,1,2)");
66 67
         IPage<PostMarking> rpage = postMarkingService.page(page, new QueryWrapper<>());
67 68
         IPage<PostMarkingVo> voIPage = new Page<>();
68 69
         List<PostMarking> records = rpage.getRecords();

+ 5 - 3
src/main/java/com/cn/esermis/dpld/business/MonitorBusiness.java

@@ -2,6 +2,7 @@ package com.cn.esermis.dpld.business;
2 2
 
3 3
 import com.alibaba.fastjson2.JSON;
4 4
 import com.alibaba.fastjson2.JSONObject;
5
+import com.cn.esermis.coding.PollutionGas;
5 6
 import com.cn.esermis.constant.Constant;
6 7
 import com.cn.esermis.datawarn.common.ExceptionDataDispose;
7 8
 import com.cn.esermis.dpld.entity.*;
@@ -497,18 +498,19 @@ public class MonitorBusiness {
497 498
             postMarking.setMnCode(first.get().getMnCode());
498 499
             postMarking.setCompanyCode(first.get().getCompanyCode());
499 500
             postMarking.setDepartmentCode(first.get().getDepartmentCode());
501
+            PollutionGas pollutionGas = PollutionGas.valueOf(factor);
500 502
             switch (dataType){
501 503
                 case "1":
502 504
                     //判断是否为负值数据
503
-                    postMarking.setManagementContent("数据异常:采集数据为负数。");
505
+                    postMarking.setManagementContent("数据异常:监测因子【"+pollutionGas.name()+"("+pollutionGas.code()+")】采集数据为负数。");
504 506
                     break;
505 507
                 case "2":
506 508
                     // //判断是否为六小时恒值数据
507
-                    postMarking.setManagementContent("数据异常:6小时恒值异常。");
509
+                    postMarking.setManagementContent("数据异常:监测因子【"+pollutionGas.name()+"("+pollutionGas.code()+")】6小时恒值异常。");
508 510
                     break;
509 511
                 case "3":
510 512
                     //瞬时值是否为超标数据
511
-                    postMarking.setManagementContent("数据异常:瞬时值超标。");
513
+                    postMarking.setManagementContent("数据异常:监测因子【"+pollutionGas.name()+"("+pollutionGas.code()+")】瞬时值超标。");
512 514
                     break;
513 515
             }
514 516
             postMarkingService.save(postMarking);

+ 1 - 1
src/main/resources/static/mybatis/DataAcquisitionInstrumentMapper.xml

@@ -13,7 +13,7 @@
13 13
                a.department_code `departmentCode`
14 14
         from data_acquisition_instrument a
15 15
                  left join analytical_instruments b on a.id = b.data_acquisition_instrument_id
16
-                 left join monitoring_factor c on b.id = c.analytical_instrument_id
16
+                 INNER join monitoring_factor c on b.id = c.analytical_instrument_id
17 17
     </select>
18 18
     <select id="getCompony" resultType="java.util.Map">
19 19
         SELECT t.companyid,t.companylongname