修复周日均价查询bug
This commit is contained in:
+6
-1
@@ -1527,7 +1527,12 @@ public class DistrictStatServiceImpl implements DistrictStatService {
|
||||
@Override
|
||||
public int findLatestDistrictAvgPrice2B(DistrictKey districtKey, Date weekend) {
|
||||
if (weekend == null) {
|
||||
weekend = DateUtil.getFirstDayOfWeek(new Date());
|
||||
Date now = DateUtil.truncateDay(new Date());
|
||||
if(!DateUtil.isSunday(now)){
|
||||
weekend = DateUtil.getFirstDayOfWeek(now);
|
||||
}else{
|
||||
weekend = now;
|
||||
}
|
||||
}
|
||||
String cacheKey = districtKey.getCity() + "_" + districtKey.getRegion() + "_" + districtKey.getName() + "_2B_" + DateUtil.formatToYYMMDD(weekend);
|
||||
Object obj = CacheUtils.getValue(this.getClass(), cacheKey);
|
||||
|
||||
Reference in New Issue
Block a user