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);