|
@ -27,7 +27,6 @@ import com.epmet.dto.result.IcCoverageCategoryDictListResultDTO; |
|
|
import com.epmet.dto.result.IcPublicServiceListResultDTO; |
|
|
import com.epmet.dto.result.IcPublicServiceListResultDTO; |
|
|
import com.epmet.dto.result.UploadImgResultDTO; |
|
|
import com.epmet.dto.result.UploadImgResultDTO; |
|
|
import com.epmet.entity.IcPublicServiceEntity; |
|
|
import com.epmet.entity.IcPublicServiceEntity; |
|
|
import com.epmet.entity.IcSuperiorResourceEntity; |
|
|
|
|
|
import com.epmet.excel.IcPublicServiceExcel; |
|
|
import com.epmet.excel.IcPublicServiceExcel; |
|
|
import com.epmet.excel.handler.IcPublicServiceExcelImportListener; |
|
|
import com.epmet.excel.handler.IcPublicServiceExcelImportListener; |
|
|
import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|
|
import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|
@ -54,6 +53,7 @@ import java.io.IOException; |
|
|
import java.io.OutputStream; |
|
|
import java.io.OutputStream; |
|
|
import java.nio.file.Files; |
|
|
import java.nio.file.Files; |
|
|
import java.nio.file.Path; |
|
|
import java.nio.file.Path; |
|
|
|
|
|
import java.util.ArrayList; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
import java.util.UUID; |
|
|
import java.util.UUID; |
|
@ -89,12 +89,24 @@ public class IcPublicServiceServiceImpl extends BaseServiceImpl<IcPublicServiceD |
|
|
formDTO.setAgencyId(staffInfo.getAgencyId()); |
|
|
formDTO.setAgencyId(staffInfo.getAgencyId()); |
|
|
//列表/导出查询
|
|
|
//列表/导出查询
|
|
|
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.getIsPage()); |
|
|
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.getIsPage()); |
|
|
|
|
|
//查询分类category
|
|
|
|
|
|
List<IcCoverageCategoryDictListResultDTO> dictList = new ArrayList<>(); |
|
|
|
|
|
List<String> categoryTypeList = new ArrayList<>(); |
|
|
|
|
|
if (StringUtils.isNotEmpty(formDTO.getCategoryType())) { |
|
|
|
|
|
dictList = coverageService.dictMap(formDTO.getCustomerId(), formDTO.getCategoryType()); |
|
|
|
|
|
if (dictList.size() > 0) { |
|
|
|
|
|
dictList.forEach(dict -> { |
|
|
|
|
|
categoryTypeList.add(dict.getValue()); |
|
|
|
|
|
}); |
|
|
|
|
|
formDTO.setCategoryTypeList(categoryTypeList); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
List<IcPublicServiceListResultDTO> list = baseDao.selectPublicServiceList(formDTO); |
|
|
List<IcPublicServiceListResultDTO> list = baseDao.selectPublicServiceList(formDTO); |
|
|
PageInfo<IcPublicServiceListResultDTO> pageInfo = new PageInfo<>(list); |
|
|
PageInfo<IcPublicServiceListResultDTO> pageInfo = new PageInfo<>(list); |
|
|
|
|
|
|
|
|
//封装类别数据
|
|
|
//封装类别数据
|
|
|
if (!CollectionUtils.isEmpty(list)) { |
|
|
if (!CollectionUtils.isEmpty(list)) { |
|
|
List<IcCoverageCategoryDictListResultDTO> dictList = coverageService.dictMap(formDTO.getCustomerId(), "public_service"); |
|
|
|
|
|
Map<String, String> dictMap = dictList.stream().collect(Collectors.toMap(IcCoverageCategoryDictListResultDTO::getValue, IcCoverageCategoryDictListResultDTO::getLabel)); |
|
|
Map<String, String> dictMap = dictList.stream().collect(Collectors.toMap(IcCoverageCategoryDictListResultDTO::getValue, IcCoverageCategoryDictListResultDTO::getLabel)); |
|
|
for (IcPublicServiceListResultDTO v : list) { |
|
|
for (IcPublicServiceListResultDTO v : list) { |
|
|
if (StringUtils.isNotBlank(v.getCategory())) { |
|
|
if (StringUtils.isNotBlank(v.getCategory())) { |
|
|