小区详情建筑年代使用create_year

This commit is contained in:
2023-05-06 11:18:37 +08:00
parent ad046713b5
commit 9ef4dafde6
3 changed files with 13 additions and 1 deletions
@@ -563,6 +563,8 @@ public interface DistrictService extends ModeService<DistrictKey, DistrictBo> {
*/
Integer getBuildYear(District district);
Integer getCreateYear(District district);
/**
* in查询小区信息
*
@@ -2667,6 +2667,15 @@ public class DistrictServiceImpl implements DistrictService {
}
}
public Integer getCreateYear(District district) {
Integer buildYear = getYearFormDate(district.getCreateYear());
int minYear = Integer.MAX_VALUE;
if (buildYear != null && buildYear < minYear) {
minYear = buildYear;
}
return minYear;
}
public Integer getBuildYear(District district) {
Integer finishYear = getYearFormDate(district.getFinishBuildingDate());