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/UnionChangeServiceImpl.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/server/service/src/main/java/com/doumee/service/business/impl/UnionChangeServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/UnionChangeServiceImpl.java index 424214c..1b77ec9 100644 --- a/server/service/src/main/java/com/doumee/service/business/impl/UnionChangeServiceImpl.java +++ b/server/service/src/main/java/com/doumee/service/business/impl/UnionChangeServiceImpl.java @@ -628,6 +628,10 @@ if(Objects.isNull(unionChange)||!Constants.equalsInteger(unionChange.getIsdeleted(),Constants.ZERO)){ throw new BusinessException(ResponseStatus.DATA_EMPTY); } + if(!Constants.equalsInteger(unionChange.getType(),Constants.ONE)&& + unionChangeBXDDTO.getDelValidTime() == null ){ + throw new BusinessException(ResponseStatus.BAD_REQUEST); + } unionChange.setStatus(Constants.formatIntegerNum(unionChange.getStatus())); unionChange.setShopId(Constants.formatIntegerNum(unionChange.getShopId())); if(!unionChange.getShopId().equals(user.getCompanyId())){ @@ -754,6 +758,7 @@ .set(UnionChange::getEditDate,new Date()) .set(UnionChange::getEditor,user.getId()) .set(UnionChange::getValidTime,unionChangeBXDDTO.getApplyDate()) + .set(UnionChange::getDelValidTime,unionChangeBXDDTO.getDelValidTime()) .set(UnionChange::getApplyStartTime,unionChangeBXDDTO.getApplyDate()) .set(UnionChange::getCode,unionChangeBXDDTO.getCode()) .eq(UnionChange::getId,unionChangeBXDDTO.getId()) -- Gitblit v1.9.3