小区建成年代没有修改为返回空
This commit is contained in:
+7
-4
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user