From 93f67a83f3df0b4620a29b805fed50be40ee29dc 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 21:03:34 +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, 3 insertions(+), 1 deletion(-) 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 4b41fe8..880ad58 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 @@ -50,10 +50,12 @@ public class FxyApplyServiceImpl extends ServiceImpl impl public int approve(FxyApply fxyApply){ 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()); + fxyApply.setApproveUser(1L); + }else{ + fxyApply.setApproveUser(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId()); } UserEntity userEntity = userService.selectUserById(fxyApply.getUserId()); if(fxyApply.getStatus().equals(1)){