From 51819dbd5ae52a60236265b19bb3d77f6dc53002 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 15:41:01 +0800
Subject: [PATCH] 提交一把

---
 server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 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 1b8848e..fde6989 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
@@ -1137,13 +1137,17 @@
     @Override
     @Transactional(rollbackFor = {Exception.class,BusinessException.class})
     public Integer update(ApplyChange applyChange) {
+        if(applyChange.getType().equals(Constants.ZERO)){
+            //2024骞�5鏈�9鏃�14:59:24  淇敼 榛樿鍏ュ綋鍓嶅ぉ
+            applyChange.setValidTime(DateUtil.getMontageDate(new Date(),1));
+        }
         if (Objects.isNull(applyChange)
                 || Objects.isNull(applyChange.getId())
                 || Objects.isNull(applyChange.getApplyId())
-                || Objects.isNull(applyChange.getValidTime())
+//                || Objects.isNull(applyChange.getValidTime())
                 || Objects.isNull(applyChange.getType())
                 || !(applyChange.getType().equals(Constants.ZERO) || applyChange.getType().equals(Constants.ONE))
-        ) {
+        ){
             throw new BusinessException(ResponseStatus.BAD_REQUEST);
         }
         LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal();

--
Gitblit v1.9.3