Commit 093d6bab by yinyong

开发日期低于7天的取3天日均改为7天日均

parent f8d53434
...@@ -1017,15 +1017,15 @@ public class AutoTurnoverJob extends PointJob { ...@@ -1017,15 +1017,15 @@ public class AutoTurnoverJob extends PointJob {
} }
BigDecimal avgHistoryThreedaySales = BigDecimal.valueOf(historyThreeSales.longValue()).divide(Constant.BIGDECIMAL_THREE, 3, RoundingMode.HALF_EVEN); BigDecimal avgHistoryThreedaySales = BigDecimal.valueOf(historyThreeSales.longValue()).divide(Constant.BIGDECIMAL_THREE, 3, RoundingMode.HALF_EVEN);
BigDecimal avgHistorySevendaySales = BigDecimal.valueOf(historySevenSales.longValue()).divide(Constant.BIGDECIMAL_SEVEN, 3, RoundingMode.HALF_EVEN); BigDecimal avgHistorySevendaySales = BigDecimal.valueOf(historySevenSales.longValue()).divide(Constant.BIGDECIMAL_SEVEN, 3, RoundingMode.HALF_EVEN);
if(dcBaseOmsSku != null && recordTime.minusDays(7L).isBefore(dcBaseOmsSku.getCreateTime().toLocalDate())) { /*if(dcBaseOmsSku != null && recordTime.minusDays(7L).isBefore(dcBaseOmsSku.getCreateTime().toLocalDate())) {
for(int j = 0; j < autoForecastDay; j++) { for(int j = 0; j < autoForecastDay; j++) {
forecastSalesList.set(j, avgHistoryThreedaySales); forecastSalesList.set(j, avgHistoryThreedaySales);
} }
}else{ }else{*/
for(int j = 0; j < autoForecastDay; j++) { for(int j = 0; j < autoForecastDay; j++) {
forecastSalesList.set(j, avgHistorySevendaySales); forecastSalesList.set(j, avgHistorySevendaySales);
} }
} /*}*/
}else{ }else{
// y = ae^bx // y = ae^bx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment