个人登录
parent
2e5aecb2c3
commit
f596a7b683
|
|
@ -187,21 +187,25 @@ public class UserService extends ServiceImpl<UserMapper, UserEntity> implements
|
||||||
AddUserParam addUserParam = BeanUtil.copyProperties(userRegisterParam, AddUserParam.class);
|
AddUserParam addUserParam = BeanUtil.copyProperties(userRegisterParam, AddUserParam.class);
|
||||||
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();
|
|
||||||
// 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();
|
Long companyId = null;
|
||||||
Assert.notNull(company, "公司信息不能为空");
|
if (!bizObj.isWastePersonal()) {
|
||||||
|
UserRegisterParam.Company company = userRegisterParam.getCompany();
|
||||||
|
Assert.notNull(company, "公司信息不能为空");
|
||||||
|
AddBizCompanyParam addBizCompanyParam = BeanUtil
|
||||||
|
.copyProperties(company, AddBizCompanyParam.class)
|
||||||
|
.setUserId(userId);
|
||||||
|
companyId = bizCompanyService.add(addBizCompanyParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
AddBizCompanyParam addBizCompanyParam = BeanUtil
|
|
||||||
.copyProperties(company, AddBizCompanyParam.class)
|
|
||||||
.setUserId(userId);
|
|
||||||
Long companyId = bizCompanyService.add(addBizCompanyParam);
|
|
||||||
// 添加账户信息
|
// 添加账户信息
|
||||||
if (bizObj.isTrans()) {
|
if (bizObj.isTrans()) {
|
||||||
|
MoneyAccountEntity entity = new MoneyAccountEntity();
|
||||||
entity.setStationId(companyId);
|
entity.setStationId(companyId);
|
||||||
moneyAccountService.add(entity);
|
moneyAccountService.add(entity);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue