Quellcode durchsuchen

数采仪列表 事后审核控制

zjs vor 1 Tag
Ursprung
Commit
33cedb71f5

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

@@ -63,6 +63,8 @@ public class DataAcquisitionInstrumentController {
63 63
                 List<String> companyCodes = dataAcquisitionInstrumentService.getComponyListAll(vo.getCompanyName());
64 64
                 if (!companyCodes.isEmpty()) {
65 65
                     wrapper.in("company_code", companyCodes);
66
+                }else{
67
+                    return success(new Page<>());
66 68
                 }
67 69
             }else{
68 70
                 List<String> companyCodes = dataAcquisitionInstrumentService.getComponyList(vo.getCompanyName(), companyId);

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

@@ -127,10 +127,10 @@ public class PostMarkingController
127 127
     public Object edit(@RequestBody PostMarking postMarking)
128 128
     {
129 129
         // 审核流程控制
130
-        if (postMarking.getVerificationStatus() !=null && postMarking.getReasonClassification()!=null){
131
-            postMarking.setUnitType(1);
132
-        }
133
-        if (postMarking.getUnitType() == 3){
130
+//        if (postMarking.getVerificationStatus() !=null && postMarking.getReasonClassification()!=null){
131
+//            postMarking.setUnitType(1);
132
+//        }
133
+        if (postMarking.getUnitType() == 3 && postMarking.getUnitOpinion()==null){
134 134
             return error("请填写驳回原因。");
135 135
         }
136 136
         postMarkingService.updateById(postMarking);

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

@@ -49,12 +49,18 @@ public class PostMarking {
49 49
     private Integer verificationStatus;
50 50
 
51 51
     /**
52
-     * 月排放量单位
52
+     * 原因分类  1停炉、2故障
53 53
      */
54 54
     @TableField(value = "reason_classification")
55 55
     private Integer reasonClassification;
56 56
 
57 57
     /**
58
+     * 原因分类  1停炉、2故障
59
+     */
60
+    @TableField(value = "specific_reasons")
61
+    private Integer specificReasons;
62
+
63
+    /**
58 64
      * 管理员核实状态  1属实、2不属实
59 65
      */
60 66
     @TableField(value = "verifies_status")
@@ -63,7 +69,7 @@ public class PostMarking {
63 69
      * 管理员分类  1停炉、2故障
64 70
      */
65 71
     @TableField(value = "management_classification")
66
-    private String managementClassification;
72
+    private Integer managementClassification;
67 73
 
68 74
     /**
69 75
      * 管理员具体原因