小区建成年代没有修改为返回空

This commit is contained in:
mjt
2024-02-05 14:23:09 +08:00
parent 9ccfabea35
commit a14b3b0166
@@ -2727,11 +2727,14 @@ public class DistrictServiceImpl implements DistrictService {
public Integer getCreateYear(District district) { public Integer getCreateYear(District district) {
Integer buildYear = getYearFormDate(district.getCreateYear()); Integer buildYear = getYearFormDate(district.getCreateYear());
int minYear = Integer.MAX_VALUE; // int minYear = Integer.MAX_VALUE;
if (buildYear != null && buildYear < minYear) { if (buildYear != null && buildYear < Integer.MAX_VALUE) {
minYear = buildYear; // minYear = buildYear;
return buildYear;
}else {
return null;
} }
return minYear; // return minYear;
} }
public Integer getBuildYear(District district) { public Integer getBuildYear(District district) {