|
|
@@ -62,10 +62,11 @@ public class SupplyServiceImpl implements ISupplyService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
- public List<LandSupplyProjectVO> useTypeAndMethodList(String year,String useType,String supplyType) {
|
|
|
+ public List<LandSupplyProjectVO> useTypeAndMethodList(String year,String useType,String supplyType,String methodType) {
|
|
|
List<LandSupplyProjectVO> resList = new ArrayList<>();
|
|
|
- {
|
|
|
+ if("0".equals(supplyType)){
|
|
|
GongdiJihuaFilterVo filterVo = new GongdiJihuaFilterVo();
|
|
|
filterVo.setYear(year);
|
|
|
filterVo.setPageSize(100000);
|
|
|
@@ -116,11 +117,39 @@ public class SupplyServiceImpl implements ISupplyService {
|
|
|
if(CollectionUtils.isNotEmpty(resList2)) {
|
|
|
resList.addAll(resList2);
|
|
|
}
|
|
|
+ } else if ("2".equals(supplyType)) {
|
|
|
+ //这里合并两部分数据
|
|
|
+ List<TdgyStatisticsRes> completeList = new ArrayList<>();
|
|
|
+ List<TdgyStatisticsRes> completeBusinessStatusList = dgyMapper.getListByYear(year, null, null, null);
|
|
|
+ List<TdgyStatisticsRes> completeSjgdList = dgyMapper.getSjgdListByYear(year, null, null, null);
|
|
|
+ if(CollectionUtils.isNotEmpty(completeBusinessStatusList)){
|
|
|
+ completeList.addAll(completeBusinessStatusList);
|
|
|
+ }
|
|
|
+ if(CollectionUtils.isNotEmpty(completeSjgdList)){
|
|
|
+ completeList.addAll(completeSjgdList);
|
|
|
+ }
|
|
|
+
|
|
|
+ resList = completeList.stream().map(item -> {
|
|
|
+ LandSupplyProjectVO vo = new LandSupplyProjectVO();
|
|
|
+ vo.setProjectPropertyId(item.getProjectId());
|
|
|
+ vo.setProjectName(item.getXmmc());
|
|
|
+ vo.setCompanyName(item.getCompany());
|
|
|
+ vo.setSupplyMethod(item.getGyfs());
|
|
|
+ vo.setSupplyType(supplyType.toString());
|
|
|
+ vo.setDateType(supplyType.toString());
|
|
|
+ if(StringUtils.isBlank(item.getProjectId())){
|
|
|
+ vo.setDateType("3");
|
|
|
+ }
|
|
|
+ vo.setNodeId(item.getNodeId());
|
|
|
+ vo.setGeom(item.getGeom());
|
|
|
+ vo.setYear(item.getGysj());
|
|
|
+ return vo;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
- if(StringUtils.isNotBlank(supplyType)){
|
|
|
- if("出让".equals(supplyType)||"划拨".equals(supplyType)){
|
|
|
- resList = resList.stream().filter(o->o.getSupplyMethod().equals(supplyType)).collect(Collectors.toList());
|
|
|
+ if(StringUtils.isNotBlank(methodType)){
|
|
|
+ if("出让".equals(methodType)||"划拨".equals(methodType)){
|
|
|
+ resList = resList.stream().filter(o->o.getSupplyMethod().equals(methodType)).collect(Collectors.toList());
|
|
|
}else {
|
|
|
resList = resList.stream().filter(o->!o.getSupplyMethod().equals("出让")).filter(o->!o.getSupplyMethod().equals("划拨")).collect(Collectors.toList());
|
|
|
}
|
|
|
@@ -136,7 +165,6 @@ public class SupplyServiceImpl implements ISupplyService {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
public String getTdytCodeByName(String useName) {
|
|
|
if (allLandTypeList.isEmpty()) {
|
|
|
List<LandType> all = landTypeMapper.selectAll();
|