经纪人

This commit is contained in:
曹磊 2024-08-09 20:59:13 +08:00
parent 3855e72160
commit 770dcaeecf
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ public class FxyApplyServiceImpl extends ServiceImpl<FxyApplyDao, FxyApply> 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);