|
|
@ -303,6 +303,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
UserEntity userEntity = new UserEntity(); |
|
|
|
userEntity.setFromApp(fromDTO.getApp()); |
|
|
|
userEntity.setFromClient(fromDTO.getClient()); |
|
|
|
userEntity.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
userService.insert(userEntity); |
|
|
|
//Customer_Staff表插入数据
|
|
|
|
CustomerStaffEntity staffEntity = new CustomerStaffEntity(); |
|
|
@ -322,6 +323,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
staffRoleEntity.setStaffId(userEntity.getId()); |
|
|
|
staffRoleEntity.setRoleId(role); |
|
|
|
staffRoleEntity.setOrgId(fromDTO.getAgencyId()); |
|
|
|
staffRoleEntity.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
staffRoleService.insert(staffRoleEntity); |
|
|
|
}); |
|
|
|
|
|
|
|