|
@ -27,6 +27,7 @@ import com.epmet.commons.tools.utils.FileUtils; |
|
|
import com.epmet.commons.tools.utils.HouseQRcodeUtils; |
|
|
import com.epmet.commons.tools.utils.HouseQRcodeUtils; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.constant.CustomerGridConstant; |
|
|
import com.epmet.constant.CustomerGridConstant; |
|
|
|
|
|
import com.epmet.constant.NeighborhoodConstant; |
|
|
import com.epmet.constants.ImportTaskConstants; |
|
|
import com.epmet.constants.ImportTaskConstants; |
|
|
import com.epmet.dao.*; |
|
|
import com.epmet.dao.*; |
|
|
import com.epmet.dto.*; |
|
|
import com.epmet.dto.*; |
|
@ -807,15 +808,22 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void downloadZip(HttpServletResponse response, IcHouseListFormDTO formDTO) throws Exception { |
|
|
public void downloadZip(HttpServletResponse response, IcHouseListFormDTO formDTO) throws Exception { |
|
|
// 查询pids
|
|
|
if(NeighborhoodConstant.GRID.equals(formDTO.getLevel())){ |
|
|
String pids = null; |
|
|
//根据网格过滤
|
|
|
if (StringUtils.isNotBlank(formDTO.getAgencyId())) { |
|
|
formDTO.setGridId(formDTO.getId()); |
|
|
pids = getPids(formDTO.getAgencyId()); |
|
|
}else if(StringUtils.isNotBlank(formDTO.getId())){ |
|
|
|
|
|
//根据组织过滤
|
|
|
|
|
|
formDTO.setAgencyId(formDTO.getId()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(formDTO.getLevel()) && OrgTypeEnum.AGENCY.getCode().equals(formDTO.getLevel())) { |
|
|
// 查询pids
|
|
|
pids = getPids(formDTO.getAgencyId()); |
|
|
// String pids = null;
|
|
|
} |
|
|
// if (StringUtils.isNotBlank(formDTO.getAgencyId())) {
|
|
|
formDTO.setPids(pids); |
|
|
// pids = getPids(formDTO.getAgencyId());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// if (StringUtils.isNotBlank(formDTO.getLevel()) && OrgTypeEnum.AGENCY.getCode().equals(formDTO.getLevel())) {
|
|
|
|
|
|
// pids = getPids(formDTO.getAgencyId());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// formDTO.setPids(pids);
|
|
|
|
|
|
|
|
|
//response
|
|
|
//response
|
|
|
response.reset(); |
|
|
response.reset(); |
|
@ -829,7 +837,7 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver { |
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + downloadFilename); |
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + downloadFilename); |
|
|
ZipOutputStream zip = new ZipOutputStream(response.getOutputStream()); |
|
|
ZipOutputStream zip = new ZipOutputStream(response.getOutputStream()); |
|
|
|
|
|
|
|
|
List<IcHouseListResultDTO> houseList = icHouseDao.searchHouseByPage(formDTO); |
|
|
List<IcHouseListResultDTO> houseList = icHouseDao.searchHouseZipList(formDTO); |
|
|
|
|
|
|
|
|
//获取一户一码前缀地址
|
|
|
//获取一户一码前缀地址
|
|
|
CustomerOrgParameterEntity codePre = icHouseDao.selectByCustomerId(formDTO.getCustomerId(), HouseQrcodeEnum.PREFIX_KEY.getCode()); |
|
|
CustomerOrgParameterEntity codePre = icHouseDao.selectByCustomerId(formDTO.getCustomerId(), HouseQrcodeEnum.PREFIX_KEY.getCode()); |
|
|