修复BUG
This commit is contained in:
+2
@@ -300,6 +300,7 @@ public class OfficeServiceImpl implements OfficeService {
|
|||||||
|
|
||||||
// 第二步:基准价*楼层系数*装修系数*朝向系数
|
// 第二步:基准价*楼层系数*装修系数*朝向系数
|
||||||
OfficeSellStat officeSellStat = officeSellStatDao.findFirstByParams(params);
|
OfficeSellStat officeSellStat = officeSellStatDao.findFirstByParams(params);
|
||||||
|
if (officeSellStat != null) {
|
||||||
Double avgPrice = Double.valueOf(officeSellStat.getAvgPrice());
|
Double avgPrice = Double.valueOf(officeSellStat.getAvgPrice());
|
||||||
if (avgPrice != null) {
|
if (avgPrice != null) {
|
||||||
Double factor = 1.0;
|
Double factor = 1.0;
|
||||||
@@ -315,6 +316,7 @@ public class OfficeServiceImpl implements OfficeService {
|
|||||||
avgPrice = avgPrice * factor;
|
avgPrice = avgPrice * factor;
|
||||||
return getOfficeEvaluationDtoWithAvgPrice(avgPrice, evaluation, "office_sell");
|
return getOfficeEvaluationDtoWithAvgPrice(avgPrice, evaluation, "office_sell");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user