Pārlūkot izejas kodu

拒检设备来源

xuzhancheng 3 dienas atpakaļ
vecāks
revīzija
2b40d2a515

+ 4 - 0
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/controller/admin/appointmentconfirmorder/vo/AppointmentRefuseVO.java

@@ -33,4 +33,8 @@ public class AppointmentRefuseVO {
     @Schema(description = "单据类型 1 约检单 2 受理单 3任务单",defaultValue ="1")
     private Integer orderType;
 
+    /**
+     * 拒绝来源(1=窗口拒检,2=检验员拒检,3=客户拒检)
+     */
+    private Integer rejectionSource;
 }

+ 6 - 1
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/service/appointmentconfirmorder/AppointmentConfirmOrderServiceImpl.java

@@ -581,7 +581,11 @@ public class AppointmentConfirmOrderServiceImpl implements AppointmentConfirmOrd
 
             appointmentConfirmOrderRefuseItemDO.setCheckType(100); //锅炉的都是定检
             appointmentConfirmOrderRefuseItemDO.setEquipMainType(200);
-            appointmentConfirmOrderRefuseItemDO.setRejectionSource(1); //窗口拒检
+            if (appointmentRefuseVO.getRejectionSource() == null){
+                appointmentConfirmOrderRefuseItemDO.setRejectionSource(1); //窗口拒检
+            } else {
+                appointmentConfirmOrderRefuseItemDO.setRejectionSource(appointmentRefuseVO.getRejectionSource());
+            }
             appointmentConfirmOrderRefuseItemDO.setOrderNo(appointmentRefuseVO.getOrderNo());
             appointmentConfirmOrderRefuseItemDO.setReasonDict(appointmentRefuseVO.getReasonDict());
             appointmentConfirmOrderRefuseItemDO.setOrderType(appointmentRefuseVO.getOrderType());
@@ -925,6 +929,7 @@ public class AppointmentConfirmOrderServiceImpl implements AppointmentConfirmOrd
         refuseVO.setReason(appointmentRefuseVO.getReason());
         refuseVO.setReasonDict(appointmentRefuseVO.getReasonDict());
         refuseVO.setOrderType(1);
+        refuseVO.setRejectionSource(3);
         refuseCheck(refuseVO);
     }
 }