|
|
@ -272,7 +272,9 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu |
|
|
|
customerGridEntity.setGridType(addGridFormDTO.getGridType()); |
|
|
|
customerGridEntity.setContacts(addGridFormDTO.getContacts()); |
|
|
|
customerGridEntity.setMobile(addGridFormDTO.getMobile()); |
|
|
|
|
|
|
|
//新增网格增加中心点位必填
|
|
|
|
customerGridEntity.setLatitude(addGridFormDTO.getLatitude()); |
|
|
|
customerGridEntity.setLongitude(addGridFormDTO.getLongitude()); |
|
|
|
//新增area_code,部门的area_code=所属组织的area_code
|
|
|
|
customerGridEntity.setAreaCode(null != customerAgencyDTO && StringUtils.isNotBlank(customerAgencyDTO.getAreaCode()) ? customerAgencyDTO.getAreaCode() : StrConstant.EPMETY_STR); |
|
|
|
|
|
|
@ -314,6 +316,12 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu |
|
|
|
customerGridDTO.setGridType(editGridFormDTO.getGridType()); |
|
|
|
customerGridDTO.setContacts(editGridFormDTO.getContacts()); |
|
|
|
customerGridDTO.setMobile(editGridFormDTO.getMobile()); |
|
|
|
if(StringUtils.isNotBlank(editGridFormDTO.getLongitude())){ |
|
|
|
customerGridDTO.setLongitude(editGridFormDTO.getLongitude()); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(editGridFormDTO.getLatitude())){ |
|
|
|
customerGridDTO.setLatitude(editGridFormDTO.getLatitude()); |
|
|
|
} |
|
|
|
baseDao.editGrid(customerGridDTO); |
|
|
|
|
|
|
|
return new Result(); |
|
|
|