经纪人
This commit is contained in:
parent
3855e72160
commit
770dcaeecf
|
@ -51,6 +51,10 @@ public class FxyApplyServiceImpl extends ServiceImpl<FxyApplyDao, FxyApply> impl
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
fxyApply.setApproveTime(sdf.format(new Date()));
|
fxyApply.setApproveTime(sdf.format(new Date()));
|
||||||
fxyApply.setApproveUser(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId());
|
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());
|
UserEntity userEntity = userService.selectUserById(fxyApply.getUserId());
|
||||||
if(fxyApply.getStatus().equals(1)){
|
if(fxyApply.getStatus().equals(1)){
|
||||||
userEntity.setBlIsFxy(1);
|
userEntity.setBlIsFxy(1);
|
||||||
|
|
Loading…
Reference in New Issue