|
@@ -26,12 +26,12 @@ public class LargeHousingLandServiceImpl extends ServiceImpl<PlatHousingLandMapp
|
|
|
|
|
|
|
|
|
public Map<String, Object> getStockOfEstateResources(String appOrg){
|
|
|
- String[] strArr = {"办公用房", "周转用房", "生产管理", "教育培训用房", "交流干部住房", "单身公寓/单身宿舍"};
|
|
|
+ String[] strArr = {"供电所用房", "物资仓储用房", "办公用房", "周转用房"};
|
|
|
List<LargeHousingLand> arr = new ArrayList<>();
|
|
|
- for (int i = 0; i < 6; i++){
|
|
|
+ for (int i = 0; i < 4; i++){
|
|
|
LargeHousingLand land = new LargeHousingLand();
|
|
|
- land.setNum(0L);
|
|
|
- land.setAcreage(BigDecimal.valueOf(0));
|
|
|
+ land.setHouseNum(0L);
|
|
|
+ land.setHouseAcreage(BigDecimal.valueOf(0));
|
|
|
land.setType((long) i);
|
|
|
land.setTypeName(strArr[i]);
|
|
|
arr.add(land);
|
|
@@ -41,10 +41,10 @@ public class LargeHousingLandServiceImpl extends ServiceImpl<PlatHousingLandMapp
|
|
|
BigDecimal housingAcreage = new BigDecimal(0);
|
|
|
Long housingNum = 0L;
|
|
|
for (LargeHousingLand it : list){
|
|
|
- housingAcreage = housingAcreage.add(it.getAcreage());
|
|
|
- housingNum += it.getNum();
|
|
|
- arr.get(it.getType().intValue()).setAcreage(it.getAcreage());
|
|
|
- arr.get(it.getType().intValue()).setNum(it.getNum());
|
|
|
+ housingAcreage = housingAcreage.add(it.getHouseAcreage());
|
|
|
+ housingNum += it.getHouseNum();
|
|
|
+ arr.get(it.getType().intValue()).setHouseAcreage(it.getHouseAcreage());
|
|
|
+ arr.get(it.getType().intValue()).setHouseNum(it.getHouseNum());
|
|
|
}
|
|
|
map.put("pieChart", arr);
|
|
|
map.put("housingNum", housingNum);
|
|
@@ -53,7 +53,30 @@ public class LargeHousingLandServiceImpl extends ServiceImpl<PlatHousingLandMapp
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getStockOfLandResources(String appOrg){
|
|
|
- return platHousingLandMapper.getStockOfLandResources(appOrg);
|
|
|
+ String[] strArr = {"供电所用房土地", "物资仓储用房土地", "办公用房土地", "周转用房土地"};
|
|
|
+ List<LargeHousingLand> arr = new ArrayList<>();
|
|
|
+ for (int i = 0; i < 4; i++){
|
|
|
+ LargeHousingLand land = new LargeHousingLand();
|
|
|
+ land.setLandNum(0L);
|
|
|
+ land.setLandAcreage(BigDecimal.valueOf(0));
|
|
|
+ land.setType((long) i);
|
|
|
+ land.setTypeName(strArr[i]);
|
|
|
+ arr.add(land);
|
|
|
+ }
|
|
|
+ List<LargeHousingLand> list = platHousingLandMapper.getStockOfLandResources(appOrg);
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ BigDecimal landAcreage = new BigDecimal(0);
|
|
|
+ Long landNum = 0L;
|
|
|
+ for (LargeHousingLand it : list){
|
|
|
+ landAcreage = landAcreage.add(it.getLandAcreage());
|
|
|
+ landNum += it.getLandNum();
|
|
|
+ arr.get(it.getType().intValue()).setLandAcreage(it.getLandAcreage());
|
|
|
+ arr.get(it.getType().intValue()).setLandNum(it.getLandNum());
|
|
|
+ }
|
|
|
+ map.put("chart", arr);
|
|
|
+ map.put("landNum", landNum);
|
|
|
+ map.put("landAcreage", landAcreage);
|
|
|
+ return map;
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getInvestFinishState(String appOrg){
|
|
@@ -81,24 +104,12 @@ public class LargeHousingLandServiceImpl extends ServiceImpl<PlatHousingLandMapp
|
|
|
*/
|
|
|
private LambdaQueryWrapper<LargeHousingLand> getLambdaQueryWrapper(LargeHousingLand largePlatHousingLand) {
|
|
|
LambdaQueryWrapper<LargeHousingLand> lqw = new LambdaQueryWrapper<LargeHousingLand>();
|
|
|
- if (StringUtils.isNotBlank(largePlatHousingLand.getHousing())){
|
|
|
- lqw.eq(LargeHousingLand::getHousing ,largePlatHousingLand.getHousing());
|
|
|
- }
|
|
|
- if (StringUtils.isNotNull(largePlatHousingLand.getAcreage())){
|
|
|
- lqw.eq(LargeHousingLand::getAcreage ,largePlatHousingLand.getAcreage());
|
|
|
+ if (StringUtils.isNotNull(largePlatHousingLand.getAppOrg())){
|
|
|
+ lqw.eq(LargeHousingLand::getAppOrg ,largePlatHousingLand.getAppOrg());
|
|
|
}
|
|
|
if (StringUtils.isNotNull(largePlatHousingLand.getType())){
|
|
|
lqw.eq(LargeHousingLand::getType ,largePlatHousingLand.getType());
|
|
|
}
|
|
|
- if (StringUtils.isNotNull(largePlatHousingLand.getConstructionTime())){
|
|
|
- lqw.eq(LargeHousingLand::getConstructionTime ,largePlatHousingLand.getConstructionTime());
|
|
|
- }
|
|
|
- if (StringUtils.isNotNull(largePlatHousingLand.getOwnershipFlag())){
|
|
|
- lqw.eq(LargeHousingLand::getOwnershipFlag ,largePlatHousingLand.getOwnershipFlag());
|
|
|
- }
|
|
|
- if (StringUtils.isNotNull(largePlatHousingLand.getInvestmentPlanFlag())){
|
|
|
- lqw.eq(LargeHousingLand::getInvestmentPlanFlag ,largePlatHousingLand.getInvestmentPlanFlag());
|
|
|
- }
|
|
|
return lqw;
|
|
|
}
|
|
|
}
|