经纪人
This commit is contained in:
parent
770dcaeecf
commit
93f67a83f3
|
@ -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)){
|
||||
|
|
Loading…
Reference in New Issue