|
|
@ -196,13 +196,13 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result editStaffPy(TokenDto tokenDto, StaffSubmitPyFromDTO fromDTO) { |
|
|
|
public Result editStaffByAccount(TokenDto tokenDto, StaffSubmitAccountFromDTO fromDTO) { |
|
|
|
CustomerAgencyEntity customerAgencyEntity = customerAgencyService.selectById(fromDTO.getAgencyId()); |
|
|
|
fromDTO.setCustomerId(customerAgencyEntity.getCustomerId()); |
|
|
|
|
|
|
|
fromDTO.setApp(tokenDto.getApp()); |
|
|
|
fromDTO.setClient(tokenDto.getClient()); |
|
|
|
Result result = epmetUserFeignClient.editStaffPy(fromDTO); |
|
|
|
Result result = epmetUserFeignClient.editStaffByAccount(fromDTO); |
|
|
|
if (!result.success()) { |
|
|
|
if (result.getCode() != EpmetErrorCode.SERVER_ERROR.getCode()) { |
|
|
|
return new Result().error(result.getCode(), result.getMsg()); |
|
|
@ -603,12 +603,12 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result addStaffPy(StaffSubmitPyFromDTO fromDTO) { |
|
|
|
public Result addStaffByAccount(StaffSubmitAccountFromDTO fromDTO) { |
|
|
|
CustomerAgencyEntity customerAgencyEntity = customerAgencyService.selectById(fromDTO.getAgencyId()); |
|
|
|
//fromDTO.setApp(tokenDto.getApp());
|
|
|
|
//fromDTO.setClient(tokenDto.getClient());
|
|
|
|
fromDTO.setCustomerId(customerAgencyEntity.getCustomerId()); |
|
|
|
Result<CustomerStaffDTO> result = epmetUserFeignClient.addStaffPy(fromDTO); |
|
|
|
Result<CustomerStaffDTO> result = epmetUserFeignClient.addStaffByAccount(fromDTO); |
|
|
|
|
|
|
|
if (!result.success()) { |
|
|
|
if (result.getCode() != EpmetErrorCode.SERVER_ERROR.getCode()) { |
|
|
|