经纪人

This commit is contained in:
曹磊 2024-08-09 21:03:34 +08:00
parent 770dcaeecf
commit 93f67a83f3
1 changed files with 3 additions and 1 deletions

View File

@ -50,10 +50,12 @@ public class FxyApplyServiceImpl extends ServiceImpl<FxyApplyDao, FxyApply> 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)){