|
@@ -741,11 +741,28 @@ public class StorageServiceImpl {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
public List<LandSupplyProjectVO> projectList(String year, Integer supplyType) {
|
|
public List<LandSupplyProjectVO> projectList(String year, Integer supplyType) {
|
|
|
return projectList(year, supplyType, null);
|
|
return projectList(year, supplyType, null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public List<LandSupplyProjectVO> projectList(String year, Integer supplyType, String supplyMethod,String useType){
|
|
|
|
|
+ List<LandSupplyProjectVO> res = new ArrayList<>();
|
|
|
|
|
+ List<LandSupplyProjectVO> list = projectList(year, supplyType, null);
|
|
|
|
|
+ if(CollectionUtils.isNotEmpty(list)){
|
|
|
|
|
+ if(StringUtils.isNotBlank(useType)) {
|
|
|
|
|
+ list = list.stream().filter(s -> s.getUseType().equals(useType)).collect(Collectors.toList());
|
|
|
|
|
+ }
|
|
|
|
|
+ if(StringUtils.isNotBlank(supplyMethod)) {
|
|
|
|
|
+ list = list.stream().filter(s -> s.getSupplyMethod().equals(supplyMethod)).collect(Collectors.toList());
|
|
|
|
|
+ }
|
|
|
|
|
+ res.addAll(list);
|
|
|
|
|
+ }
|
|
|
|
|
+ return res;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
public List<LandSupplyProjectVO> projectList(String year, Integer supplyType, String keyWord) {
|
|
public List<LandSupplyProjectVO> projectList(String year, Integer supplyType, String keyWord) {
|
|
|
List<LandSupplyProjectVO> resList = new ArrayList<>();
|
|
List<LandSupplyProjectVO> resList = new ArrayList<>();
|
|
|
if (supplyType == 1) {
|
|
if (supplyType == 1) {
|
|
@@ -799,6 +816,7 @@ public class StorageServiceImpl {
|
|
|
vo.setSupplyMethod(item.getGyfs());
|
|
vo.setSupplyMethod(item.getGyfs());
|
|
|
vo.setSupplyType("1");
|
|
vo.setSupplyType("1");
|
|
|
vo.setDateType("1");
|
|
vo.setDateType("1");
|
|
|
|
|
+ vo.setUseType(item.getTdyt());
|
|
|
vo.setGeom(item.getGeom());
|
|
vo.setGeom(item.getGeom());
|
|
|
vo.setYear(item.getGysj());
|
|
vo.setYear(item.getGysj());
|
|
|
vo.setArea(String.format("%.2f", item.getMjMu() == null ? BigDecimal.ZERO : item.getMjMu()));
|
|
vo.setArea(String.format("%.2f", item.getMjMu() == null ? BigDecimal.ZERO : item.getMjMu()));
|
|
@@ -823,6 +841,8 @@ public class StorageServiceImpl {
|
|
|
vo.setGeom(item.getGeom());
|
|
vo.setGeom(item.getGeom());
|
|
|
vo.setYear(item.getGysj());
|
|
vo.setYear(item.getGysj());
|
|
|
vo.setArea(String.valueOf(item.getMjMu()));
|
|
vo.setArea(String.valueOf(item.getMjMu()));
|
|
|
|
|
+ vo.setUseType(item.getTdyt());
|
|
|
|
|
+
|
|
|
return vo;
|
|
return vo;
|
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
}
|