|
@ -1635,22 +1635,24 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
EpdcPartyMemberRegistDTO partyMemberRegistDTO = new EpdcPartyMemberRegistDTO(); |
|
|
EpdcPartyMemberRegistDTO partyMemberRegistDTO = new EpdcPartyMemberRegistDTO(); |
|
|
CityCenterFromDTO formDTO = new CityCenterFromDTO(); |
|
|
CityCenterFromDTO formDTO = new CityCenterFromDTO(); |
|
|
if(dto.getDeptId()!=null){ |
|
|
if(dto.getDeptId()!=null){ |
|
|
formDTO.setDeptId(dto.getDeptId()); |
|
|
formDTO.setDeptId(Long.parseLong(dto.getCouplingCommunity()[dto.getAllDeptIds().length-2])); |
|
|
SysDeptDTO liveDept = adminFeignClient.getDept(formDTO).getData(); |
|
|
SysDeptDTO liveDept = adminFeignClient.getDeptInfo(formDTO).getData(); |
|
|
partyMemberRegistDTO.setLiveAddress(liveDept.getAddress()); |
|
|
partyMemberRegistDTO.setLiveAddress(liveDept.getAddress()); |
|
|
partyMemberRegistDTO.setLiveCommunity(liveDept.getName()); |
|
|
partyMemberRegistDTO.setLiveCommunity(liveDept.getName()); |
|
|
partyMemberRegistDTO.setLiveMobile(liveDept.getMobile()); |
|
|
partyMemberRegistDTO.setLiveMobile(liveDept.getMobile()); |
|
|
partyMemberRegistDTO.setLiveSecretaryName(liveDept.getSecretaryName()); |
|
|
partyMemberRegistDTO.setLiveSecretaryName(liveDept.getSecretaryName()); |
|
|
partyMemberRegistDTO.setLiveTelephone(liveDept.getTelephone()); |
|
|
partyMemberRegistDTO.setLiveTelephone(liveDept.getTelephone()); |
|
|
|
|
|
partyMemberRegistDTO.setLiveStreetName(liveDept.getStreetName()); |
|
|
} |
|
|
} |
|
|
if (null != dto.getCouplingCommunity()) { |
|
|
if (null != dto.getCouplingCommunity()) { |
|
|
formDTO.setDeptId(Long.parseLong(String.join(",", dto.getCouplingCommunity()))); |
|
|
formDTO.setDeptId(Long.parseLong(dto.getCouplingCommunity()[dto.getCouplingCommunity().length-2])); |
|
|
SysDeptDTO couplingDept = adminFeignClient.getDept(formDTO).getData(); |
|
|
SysDeptDTO couplingDept = adminFeignClient.getDeptInfo(formDTO).getData(); |
|
|
partyMemberRegistDTO.setCouplingAddress(couplingDept.getAddress()); |
|
|
partyMemberRegistDTO.setCouplingAddress(couplingDept.getAddress()); |
|
|
partyMemberRegistDTO.setCouplingCommunity(couplingDept.getName()); |
|
|
partyMemberRegistDTO.setCouplingCommunity(couplingDept.getName()); |
|
|
partyMemberRegistDTO.setCouplingMobile(couplingDept.getMobile()); |
|
|
partyMemberRegistDTO.setCouplingMobile(couplingDept.getMobile()); |
|
|
partyMemberRegistDTO.setCouplingSecretaryName(couplingDept.getSecretaryName()); |
|
|
partyMemberRegistDTO.setCouplingSecretaryName(couplingDept.getSecretaryName()); |
|
|
partyMemberRegistDTO.setCouplingelephone(couplingDept.getTelephone()); |
|
|
partyMemberRegistDTO.setCouplingelephone(couplingDept.getTelephone()); |
|
|
|
|
|
partyMemberRegistDTO.setCouplingStreetName(couplingDept.getStreetName()); |
|
|
} |
|
|
} |
|
|
userFeignClient.saveReportparty(dto); |
|
|
userFeignClient.saveReportparty(dto); |
|
|
|
|
|
|
|
|