|
@ -158,7 +158,12 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
originalEntity.setCode(formDTO.getCode()); |
|
|
originalEntity.setCode(formDTO.getCode()); |
|
|
originalEntity.setContacts(formDTO.getContacts()); |
|
|
originalEntity.setContacts(formDTO.getContacts()); |
|
|
originalEntity.setMobile(formDTO.getMobile()); |
|
|
originalEntity.setMobile(formDTO.getMobile()); |
|
|
|
|
|
if(StringUtils.isNotBlank(formDTO.getLatitude())){ |
|
|
|
|
|
originalEntity.setLatitude(formDTO.getLatitude()); |
|
|
|
|
|
} |
|
|
|
|
|
if(StringUtils.isNotBlank(formDTO.getLongitude())){ |
|
|
|
|
|
originalEntity.setLongitude(formDTO.getLongitude()); |
|
|
|
|
|
} |
|
|
//当前客户开启了area_code_switch参数:open: 选择地区编码必填;closed: 无需选择地区编码
|
|
|
//当前客户开启了area_code_switch参数:open: 选择地区编码必填;closed: 无需选择地区编码
|
|
|
if (CustomerAgencyConstant.AREA_CODE_SWITCH_OPEN.equals(formDTO.getAreaCodeSwitch())) { |
|
|
if (CustomerAgencyConstant.AREA_CODE_SWITCH_OPEN.equals(formDTO.getAreaCodeSwitch())) { |
|
|
CustomerAgencyEntity parent = customerAgencyDao.selectById(originalEntity.getPid()); |
|
|
CustomerAgencyEntity parent = customerAgencyDao.selectById(originalEntity.getPid()); |
|
|