From 770dcaeecfc3a98e8bc2698aa27d2191255387bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 9 Aug 2024 20:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E7=BA=AA=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bl/commission/fxy/service/impl/FxyApplyServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sqx/modules/bl/commission/fxy/service/impl/FxyApplyServiceImpl.java b/src/main/java/com/sqx/modules/bl/commission/fxy/service/impl/FxyApplyServiceImpl.java index 1853462..4b41fe8 100644 --- a/src/main/java/com/sqx/modules/bl/commission/fxy/service/impl/FxyApplyServiceImpl.java +++ b/src/main/java/com/sqx/modules/bl/commission/fxy/service/impl/FxyApplyServiceImpl.java @@ -51,6 +51,10 @@ public class FxyApplyServiceImpl extends ServiceImpl impl SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); fxyApply.setApproveTime(sdf.format(new Date())); fxyApply.setApproveUser(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId()); + if(fxyApply.getUserId() == null){ + FxyApply fa = baseMapper.selectById(fxyApply.getId()); + fxyApply.setUserId(fa.getUserId()); + } UserEntity userEntity = userService.selectUserById(fxyApply.getUserId()); if(fxyApply.getStatus().equals(1)){ userEntity.setBlIsFxy(1);