Kaynağa Gözat

数采仪列表 事后审核控制

zjs 1 gün önce
ebeveyn
işleme
919dae3107

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

@@ -127,9 +127,9 @@ 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
-//        }
130
+        if (postMarking.getVerificationStatus() !=null && postMarking.getReasonClassification()!=null && postMarking.getUnitType() == 0){
131
+            postMarking.setUnitType(1);
132
+        }
133 133
         if (postMarking.getUnitType() == 3 && postMarking.getUnitOpinion()==null){
134 134
             return error("请填写驳回原因。");
135 135
         }

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

@@ -58,7 +58,7 @@ public class PostMarking {
58 58
      * 原因分类  1停炉、2故障
59 59
      */
60 60
     @TableField(value = "specific_reasons")
61
-    private Integer specificReasons;
61
+    private String specificReasons;
62 62
 
63 63
     /**
64 64
      * 管理员核实状态  1属实、2不属实