+7
-4
@@ -2747,11 +2747,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