|
|
@ -154,12 +154,18 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD |
|
|
|
@Override |
|
|
|
public IcPartyActivityDTO get(String id) { |
|
|
|
IcPartyActivityEntity entity = baseDao.selectById(id); |
|
|
|
//获取服务事项名称
|
|
|
|
SubCodeFormDTO codeFormDTO = new SubCodeFormDTO(); |
|
|
|
codeFormDTO.setCustomerId(entity.getCustomerId()); |
|
|
|
codeFormDTO.setParentCategoryCode(SERVICE_MATTER_CODE); |
|
|
|
Map<String, String> categoryMap = icResiDemandDictService.querySubCodeList(codeFormDTO).stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
IcPartyActivityDTO dto = ConvertUtils.sourceToTarget(entity, IcPartyActivityDTO.class); |
|
|
|
dto.setServiceMatterName(categoryMap.get(dto.getServiceMatter())); |
|
|
|
//获取单位名称
|
|
|
|
IcPartyUnitDTO unitDTO = icPartyUnitService.get(dto.getUnitId()); |
|
|
|
if (null != unitDTO) { |
|
|
|
dto.setUnitName(unitDTO.getUnitName()); |
|
|
|
} |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|