个人不新增账户
parent
2a7325a3ae
commit
fec1bdc479
|
|
@ -188,11 +188,11 @@ public class UserService extends ServiceImpl<UserMapper, UserEntity> implements
|
|||
addUserParam.setAccount(BeanUtil.copyProperties(account, AddUserAccountParam.class));
|
||||
Long userId = this.add(addUserParam);
|
||||
MoneyAccountEntity entity = new MoneyAccountEntity();
|
||||
if (bizObj == BizObj.GeRen) {
|
||||
entity.setUserId(userId);
|
||||
moneyAccountService.add(entity);
|
||||
return;
|
||||
}
|
||||
// if (bizObj == BizObj.GeRen) {
|
||||
// entity.setUserId(userId);
|
||||
// moneyAccountService.add(entity);
|
||||
// return;
|
||||
// }
|
||||
UserRegisterParam.Company company = userRegisterParam.getCompany();
|
||||
Assert.notNull(company, "公司信息不能为空");
|
||||
|
||||
|
|
@ -201,8 +201,10 @@ public class UserService extends ServiceImpl<UserMapper, UserEntity> implements
|
|||
.setUserId(userId);
|
||||
Long companyId = bizCompanyService.add(addBizCompanyParam);
|
||||
// 添加账户信息
|
||||
entity.setStationId(companyId);
|
||||
moneyAccountService.add(entity);
|
||||
if (bizObj.isTrans()) {
|
||||
entity.setStationId(companyId);
|
||||
moneyAccountService.add(entity);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue