|
|
@ -622,7 +622,12 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
|
public void updateCustomer(UpdateCustomerFormDTO formDTO) { |
|
|
|
CustomerEntity entity = new CustomerEntity(); |
|
|
|
entity.setId(formDTO.getCustomerId()); |
|
|
|
entity.setCustomerName(formDTO.getCustomerName()); |
|
|
|
if (StringUtils.isNotBlank(formDTO.getCustomerName())){ |
|
|
|
entity.setCustomerName(formDTO.getCustomerName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(formDTO.getLogo())){ |
|
|
|
entity.setLogo(formDTO.getLogo()); |
|
|
|
} |
|
|
|
entity.setLogo(formDTO.getLogo()); |
|
|
|
baseDao.updateById(entity); |
|
|
|
if (StringUtils.isNotBlank(formDTO.getRootManageName()) || StringUtils.isNotBlank(formDTO.getRootManagePhone())) { |
|
|
@ -635,8 +640,12 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
|
UpdateRootManageFormDTO updateRootManageFormDTO = new UpdateRootManageFormDTO(); |
|
|
|
updateRootManageFormDTO.setOrgId(agency.getId()); |
|
|
|
updateRootManageFormDTO.setRoleKey(RoleKeyConstants.ROLE_KEY_ROOT_MANAGER); |
|
|
|
updateRootManageFormDTO.setRootManageName(formDTO.getRootManageName()); |
|
|
|
updateRootManageFormDTO.setRootManagePhone(formDTO.getRootManagePhone()); |
|
|
|
if (StringUtils.isNotBlank(formDTO.getRootManageName())){ |
|
|
|
updateRootManageFormDTO.setRootManageName(formDTO.getRootManageName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(formDTO.getRootManageName())){ |
|
|
|
updateRootManageFormDTO.setRootManagePhone(formDTO.getRootManagePhone()); |
|
|
|
} |
|
|
|
Result rootManageResult = epmetUserOpenFeignClient.updateRootManage(updateRootManageFormDTO); |
|
|
|
if (!rootManageResult.success()) { |
|
|
|
throw new RenException("客户基本信息修改:修改根管理员信息失败:".concat(rootManageResult.toString())); |
|
|
|