|
@@ -117,11 +117,13 @@ public class BizServiceCustomerServiceImpl extends ServiceImpl<BizServiceCustome
|
|
|
}
|
|
|
BizServiceCustomer bizServiceCustomer = BeanUtil.toBean(bizServiceCustomerAddParam, BizServiceCustomer.class);
|
|
|
|
|
|
+ this.save(bizServiceCustomer);
|
|
|
+
|
|
|
//查询账号是否添加过
|
|
|
if(ObjectUtil.isNotEmpty(bizServiceCustomer.getPhone())){
|
|
|
addUserAccount(bizServiceCustomer);
|
|
|
}
|
|
|
- this.save(bizServiceCustomer);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@@ -171,8 +173,8 @@ public class BizServiceCustomerServiceImpl extends ServiceImpl<BizServiceCustome
|
|
|
bizUser.setUserStatus(BizUserStatusEnum.ENABLE.getValue());
|
|
|
this.bizUserMapper.insert(bizUser);
|
|
|
|
|
|
- // 添加供应商角色
|
|
|
- this.sysUserApi.grantRoleType(bizUser.getId(), "供应商");
|
|
|
+ // 添加服务客户角色
|
|
|
+ this.sysUserApi.grantRoleType(bizUser.getId(), "服务客户");
|
|
|
|
|
|
BizServiceCustomerAccount bizServiceCustomerAccount = new BizServiceCustomerAccount();
|
|
|
bizServiceCustomerAccount.setServiceCustomerId(bizServiceCustomer.getId());
|