|
|
@ -25,7 +25,6 @@ import com.epmet.dto.*; |
|
|
|
import com.epmet.dto.form.SystemMsgFormDTO; |
|
|
|
import com.epmet.dto.form.UserMessageFormDTO; |
|
|
|
import com.epmet.dto.form.WxSubscribeMessageFormDTO; |
|
|
|
import com.epmet.dto.form.demand.SubCodeFormDTO; |
|
|
|
import com.epmet.dto.form.work.*; |
|
|
|
import com.epmet.dto.result.ActSponsorResultDTO; |
|
|
|
import com.epmet.dto.result.demand.OptionDTO; |
|
|
@ -34,6 +33,7 @@ import com.epmet.entity.*; |
|
|
|
import com.epmet.feign.EpmetMessageOpenFeignClient; |
|
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
|
import com.epmet.service.*; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.logging.log4j.LogManager; |
|
|
|
import org.apache.logging.log4j.Logger; |
|
|
@ -99,10 +99,9 @@ public class WorkActServiceImpl implements WorkActService { |
|
|
|
@Resource |
|
|
|
private IcPartyActivityService icPartyActivityService; |
|
|
|
@Resource |
|
|
|
private IcResiDemandDictService icResiDemandDictService; |
|
|
|
@Resource |
|
|
|
private IcPartyUnitService icPartyUnitService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private IcServiceItemDictService icServiceItemDictService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -782,11 +781,10 @@ public class WorkActServiceImpl implements WorkActService { |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(canceledActDetailResultDTO.getServiceMatter())) { |
|
|
|
//获取服务事项
|
|
|
|
SubCodeFormDTO codeFormDTO = new SubCodeFormDTO(); |
|
|
|
codeFormDTO.setCustomerId(customerId); |
|
|
|
codeFormDTO.setParentCategoryCode(ActConstant.SERVICE_MATTER_CODE); |
|
|
|
Map<String, String> categoryMap = icResiDemandDictService.querySubCodeList(codeFormDTO).stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
canceledActDetailResultDTO.setServiceMatterName(categoryMap.get(canceledActDetailResultDTO.getServiceMatter())); |
|
|
|
List<OptionDTO> serviceItemList = icServiceItemDictService.queryDictList(customerId); |
|
|
|
Map<String, String> categoryMap = serviceItemList.stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
canceledActDetailResultDTO.setServiceMatterName(MapUtils.isNotEmpty(categoryMap) && categoryMap.containsKey(canceledActDetailResultDTO.getServiceMatter()) ? |
|
|
|
categoryMap.get(canceledActDetailResultDTO.getServiceMatter()) : StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(canceledActDetailResultDTO.getUnitId())) { |
|
|
|
//获取单位名称
|
|
|
@ -840,11 +838,9 @@ public class WorkActServiceImpl implements WorkActService { |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(resultDTO.getServiceMatter())) { |
|
|
|
//获取服务事项
|
|
|
|
SubCodeFormDTO codeFormDTO = new SubCodeFormDTO(); |
|
|
|
codeFormDTO.setCustomerId(formDTO.getCustomerId()); |
|
|
|
codeFormDTO.setParentCategoryCode(ActConstant.SERVICE_MATTER_CODE); |
|
|
|
Map<String, String> categoryMap = icResiDemandDictService.querySubCodeList(codeFormDTO).stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
resultDTO.setServiceMatterName(categoryMap.get(resultDTO.getServiceMatter())); |
|
|
|
List<OptionDTO> serviceItemList = icServiceItemDictService.queryDictList(formDTO.getCustomerId()); |
|
|
|
Map<String, String> categoryMap = serviceItemList.stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
resultDTO.setServiceMatterName(MapUtils.isNotEmpty(categoryMap) && categoryMap.containsKey(resultDTO.getServiceMatter()) ? categoryMap.get(resultDTO.getServiceMatter()) : StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(resultDTO.getUnitId())) { |
|
|
|
//获取单位名称
|
|
|
@ -921,11 +917,9 @@ public class WorkActServiceImpl implements WorkActService { |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(resultDTO.getServiceMatter())) { |
|
|
|
//获取服务事项
|
|
|
|
SubCodeFormDTO codeFormDTO = new SubCodeFormDTO(); |
|
|
|
codeFormDTO.setCustomerId(customerId); |
|
|
|
codeFormDTO.setParentCategoryCode(ActConstant.SERVICE_MATTER_CODE); |
|
|
|
Map<String, String> categoryMap = icResiDemandDictService.querySubCodeList(codeFormDTO).stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
resultDTO.setServiceMatterName(categoryMap.get(resultDTO.getServiceMatter())); |
|
|
|
List<OptionDTO> serviceItemList=icServiceItemDictService.queryDictList(customerId); |
|
|
|
Map<String, String> categoryMap=serviceItemList.stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
resultDTO.setServiceMatterName(MapUtils.isNotEmpty(categoryMap) && categoryMap.containsKey(resultDTO.getServiceMatter()) ? categoryMap.get(resultDTO.getServiceMatter()) : StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(resultDTO.getUnitId())) { |
|
|
|
//获取单位名称
|
|
|
@ -1317,11 +1311,9 @@ public class WorkActServiceImpl implements WorkActService { |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(resultDTO.getServiceMatter())) { |
|
|
|
//获取服务事项
|
|
|
|
SubCodeFormDTO codeFormDTO = new SubCodeFormDTO(); |
|
|
|
codeFormDTO.setCustomerId(customerId); |
|
|
|
codeFormDTO.setParentCategoryCode(ActConstant.SERVICE_MATTER_CODE); |
|
|
|
Map<String, String> categoryMap = icResiDemandDictService.querySubCodeList(codeFormDTO).stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
resultDTO.setServiceMatterName(categoryMap.get(resultDTO.getServiceMatter())); |
|
|
|
List<OptionDTO> serviceItemList=icServiceItemDictService.queryDictList(customerId); |
|
|
|
Map<String, String> categoryMap=serviceItemList.stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|
|
|
resultDTO.setServiceMatterName(MapUtils.isNotEmpty(categoryMap) && categoryMap.containsKey(resultDTO.getServiceMatter()) ? categoryMap.get(resultDTO.getServiceMatter()) : StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(resultDTO.getUnitId())) { |
|
|
|
//获取单位名称
|
|
|
|