|
@@ -7,10 +7,6 @@ import com.example.common.PageVo;
|
|
import com.example.common.Rsp;
|
|
import com.example.common.Rsp;
|
|
import com.example.dao.gdc.WzOtnAreaDao;
|
|
import com.example.dao.gdc.WzOtnAreaDao;
|
|
import com.example.dao.house.HouseBuildingDao;
|
|
import com.example.dao.house.HouseBuildingDao;
|
|
-import com.example.pojo.po.house.BuildingIdleStatPo;
|
|
|
|
-import com.example.pojo.po.house.HouseAgeStatPo;
|
|
|
|
-import com.example.pojo.po.house.HouseBuildingPo;
|
|
|
|
-import com.example.pojo.po.house.HouseSitePo;
|
|
|
|
import com.example.enums.ListBuildingIdleOrderEnum;
|
|
import com.example.enums.ListBuildingIdleOrderEnum;
|
|
import com.example.enums.ListBuildingOrderEnum;
|
|
import com.example.enums.ListBuildingOrderEnum;
|
|
import com.example.enums.OrderEnum;
|
|
import com.example.enums.OrderEnum;
|
|
@@ -25,6 +21,10 @@ import com.example.pojo.dto.ListBuildingDto;
|
|
import com.example.pojo.dto.ListBuildingIdleDto;
|
|
import com.example.pojo.dto.ListBuildingIdleDto;
|
|
import com.example.pojo.dto.ListSiteNameDto;
|
|
import com.example.pojo.dto.ListSiteNameDto;
|
|
import com.example.pojo.dto.ListSiteNumDto;
|
|
import com.example.pojo.dto.ListSiteNumDto;
|
|
|
|
+import com.example.pojo.po.house.BuildingIdleStatPo;
|
|
|
|
+import com.example.pojo.po.house.HouseAgeStatPo;
|
|
|
|
+import com.example.pojo.po.house.HouseBuildingPo;
|
|
|
|
+import com.example.pojo.po.house.HouseSitePo;
|
|
import com.example.pojo.vo.BuildingIdleStatVo;
|
|
import com.example.pojo.vo.BuildingIdleStatVo;
|
|
import com.example.pojo.vo.HouseAgeStatVo;
|
|
import com.example.pojo.vo.HouseAgeStatVo;
|
|
import com.example.pojo.vo.ListBuildingIdleVo;
|
|
import com.example.pojo.vo.ListBuildingIdleVo;
|
|
@@ -45,6 +45,7 @@ import org.springframework.web.context.request.RequestContextHolder;
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -818,6 +819,9 @@ public class HouseBuildManageDetailsService {
|
|
for (HouseAgeStatPo value : secondUnitPoMap.values()) {
|
|
for (HouseAgeStatPo value : secondUnitPoMap.values()) {
|
|
firstUnitPo.update(value);
|
|
firstUnitPo.update(value);
|
|
}
|
|
}
|
|
|
|
+ if (firstUnitPo.getTotal().equals(0)) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
return firstUnitPo;
|
|
return firstUnitPo;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1107,6 +1111,9 @@ public class HouseBuildManageDetailsService {
|
|
for (BuildingIdleStatPo value : secondUnitPoMap.values()) {
|
|
for (BuildingIdleStatPo value : secondUnitPoMap.values()) {
|
|
firstUnitPo.update(value);
|
|
firstUnitPo.update(value);
|
|
}
|
|
}
|
|
|
|
+ if (firstUnitPo.getBuildingAreaSum().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
return firstUnitPo;
|
|
return firstUnitPo;
|
|
}
|
|
}
|
|
|
|
|