个人不新增账户

localizer
ljw 2025-10-15 09:27:37 +08:00
parent 2a7325a3ae
commit fec1bdc479
1 changed files with 9 additions and 7 deletions

View File

@ -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);
}
}
/**