|
|
@ -125,6 +125,7 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
CustomerAgencyEntity entity = ConvertUtils.sourceToTarget(formDTO, CustomerAgencyEntity.class); |
|
|
|
entity.setOrganizationName(formDTO.getAgencyName()); |
|
|
|
entity.setTotalUser(NumConstant.ZERO); |
|
|
|
entity.setDescription(formDTO.getDescription()); |
|
|
|
//1:查询上级机关信息
|
|
|
|
CustomerAgencyEntity parentEntity = customerAgencyDao.selectById(formDTO.getParentAgencyId()); |
|
|
|
if (null == parentEntity) { |
|
|
@ -167,6 +168,7 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
originalEntity.setCode(formDTO.getCode()); |
|
|
|
originalEntity.setContacts(formDTO.getContacts()); |
|
|
|
originalEntity.setMobile(formDTO.getMobile()); |
|
|
|
originalEntity.setDescription(formDTO.getDescription()); |
|
|
|
//利用mybatis 拦截器填充值
|
|
|
|
originalEntity.setUpdatedTime(null); |
|
|
|
originalEntity.setUpdatedBy(null); |
|
|
@ -592,6 +594,7 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
entity.setPid("0"); |
|
|
|
entity.setTotalUser(0); |
|
|
|
entity.setCustomerId(form.getCustomerId()); |
|
|
|
entity.setDescription(form.getDescription()); |
|
|
|
customerAgencyDao.insert(entity); |
|
|
|
|
|
|
|
return entity.getId(); |
|
|
@ -982,6 +985,7 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
insertEntity.setOrganizationName(formDTO.getAgencyName()); |
|
|
|
insertEntity.setTotalUser(NumConstant.ZERO); |
|
|
|
insertEntity.setPid(parent.getId()); |
|
|
|
insertEntity.setDescription(formDTO.getDescription()); |
|
|
|
insertEntity.setCustomerId(parent.getCustomerId()); |
|
|
|
insertEntity.setParentAreaCode(parent.getAreaCode()); |
|
|
|
if (StringUtils.isBlank(parent.getPid()) || NumConstant.ZERO_STR.equals(parent.getPid())) { |
|
|
|