|
|
@ -51,7 +51,6 @@ import com.epmet.constants.ImportTaskConstants; |
|
|
|
import com.epmet.dao.IcPartyUnitDao; |
|
|
|
import com.epmet.dto.IcPartyUnitDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.form.demand.ServiceItemSelectFormDTO; |
|
|
|
import com.epmet.dto.form.demand.ServiceQueryFormDTO; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.dto.result.demand.OptionDTO; |
|
|
@ -207,12 +206,9 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
|
dto.setType(MapUtils.isNotEmpty(typeDictMap) && typeDictMap.containsKey(dto.getType()) ? typeDictMap.get(dto.getType()) : StrConstant.EPMETY_STR); |
|
|
|
// 服务事项
|
|
|
|
if(CollectionUtils.isNotEmpty(dto.getServiceMatterList())){ |
|
|
|
ServiceItemSelectFormDTO serviceItemSelectFormDTO=new ServiceItemSelectFormDTO(); |
|
|
|
serviceItemSelectFormDTO.setCustomerId(entity.getCustomerId()); |
|
|
|
serviceItemSelectFormDTO.setType("usable"); |
|
|
|
Result<List<OptionDTO>> serviceMateerRes=heartOpenFeignClient.queryDictList(serviceItemSelectFormDTO); |
|
|
|
if(serviceMateerRes.success()&&CollectionUtils.isNotEmpty(serviceMateerRes.getData())){ |
|
|
|
Map<String,String> serviceMap=serviceMateerRes.getData().stream().collect(Collectors.toMap(OptionDTO::getValue,OptionDTO::getLabel)); |
|
|
|
List<OptionDTO> serviceMateerRes=icServiceItemDictService.queryDictList(entity.getCustomerId()); |
|
|
|
if(CollectionUtils.isNotEmpty(serviceMateerRes)){ |
|
|
|
Map<String,String> serviceMap=serviceMateerRes.stream().collect(Collectors.toMap(OptionDTO::getValue,OptionDTO::getLabel)); |
|
|
|
List<String> serviceMatterNameList=new ArrayList<>(); |
|
|
|
for(String serviceMatterCode:dto.getServiceMatterList()){ |
|
|
|
if(MapUtils.isNotEmpty(serviceMap)&&serviceMap.containsKey(serviceMatterCode)){ |
|
|
|