+7
-4
@@ -2747,11 +2747,14 @@ 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;
|
||||
// int minYear = Integer.MAX_VALUE;
|
||||
if (buildYear != null && buildYear < Integer.MAX_VALUE) {
|
||||
// minYear = buildYear;
|
||||
return buildYear;
|
||||
}else {
|
||||
return null;
|
||||
}
|
||||
return minYear;
|
||||
// return minYear;
|
||||
}
|
||||
|
||||
public Integer getBuildYear(District district) {
|
||||
|
||||
Reference in New Issue
Block a user