From 541c8aa8d08e4bb758adad33167d1e84943cbfec Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 五月 2024 13:36:47 +0800
Subject: [PATCH] 提交一把

---
 server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java
index 77527e1..4681f37 100644
--- a/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java
+++ b/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java
@@ -196,6 +196,10 @@
         if(model == null ||!Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){
             throw  new BusinessException(ResponseStatus.DATA_EMPTY);
         }
+        if(!Constants.equalsInteger(model.getType(),Constants.ONE)&&
+                 param.getDelValidTime() == null ){
+            throw  new BusinessException(ResponseStatus.BAD_REQUEST);
+        }
         if(!Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.SIGNATURE.getKey())){
             throw  new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"瀵逛笉璧凤紝璇ョ敵璇风姸鎬佸凡娴佽浆锛屽綋鍓嶄笉鏀寔璇ユ搷浣渵");
         }
@@ -217,6 +221,7 @@
         update.setId(model.getId());
         update.setValidCode(param.getValidCode());
         update.setApplyStartTime(param.getApplyStartTime());
+        update.setDelValidTime(param.getDelValidTime());
         update.setCode(model.getCode());
 
         param.getPidanFile().setIsdeleted(Constants.ZERO);

--
Gitblit v1.9.3