|
|
@@ -73,12 +73,22 @@ public class AccountCenterServiceImpl implements AccountCenterService {
|
|
|
if ("0".equals(type)) {
|
|
|
String result = ssoUserSpaceApi.registerLogin(company.getName(), company.getBusinessCode(), Long.parseLong(accountRegDTO.getUu()));
|
|
|
}
|
|
|
+ //c.插入 账户公司 映射
|
|
|
accountCompanyMapper.insert(accountId, company.getId());
|
|
|
//2.更新账户信息
|
|
|
Account account = BeanMapper.map(accountRegDTO, Account.class);
|
|
|
account.setId(accountId);
|
|
|
account.setEnabled(true);
|
|
|
accountService.updateByPrimaryKeySelective(account);
|
|
|
+
|
|
|
+ //调用存储过程, 对新开账套数据初始化
|
|
|
+ Map<String, Object> map = new HashMap<String, Object>();
|
|
|
+ map.put("fromCompany", 2);
|
|
|
+ map.put("newCompany", company.getId());
|
|
|
+ map.put("accountId", accountId);
|
|
|
+ map.put("result", null);
|
|
|
+ accountCompanyMapper.initData(map);
|
|
|
+
|
|
|
return null;
|
|
|
}
|
|
|
|