|
@ -190,7 +190,12 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public ReportPartyDTO getByIdCardAndName(String idCard, String name) { |
|
|
public ReportPartyDTO getByIdCardAndName(String idCard, String name) { |
|
|
return ConvertUtils.sourceToTarget(baseDao.getByIdCardAndName(idCard, name), ReportPartyDTO.class); |
|
|
ReportPartyEntity entity = baseDao.getByIdCardAndName(idCard, name); |
|
|
|
|
|
ReportPartyDTO dto = ConvertUtils.sourceToTarget(entity, ReportPartyDTO.class); |
|
|
|
|
|
if (null != entity.getCouplingCommunity()) { |
|
|
|
|
|
dto.setCouplingCommunity(entity.getCouplingCommunity().split(",")); |
|
|
|
|
|
} |
|
|
|
|
|
return dto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void setDeptId(ReportPartyDTO dto) { |
|
|
private void setDeptId(ReportPartyDTO dto) { |
|
|