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