Commit 7834ccca by yinyong

自动周转推送时间15天改为21天

parent 7cbf0cd7
......@@ -989,7 +989,7 @@ public class AutoTurnoverJob extends PointJob {
private void calculateForecastSales(BigDecimal salesUpperLimit, Integer autoForecastDay, DcAutoSales
dcAutoSales, List<BigDecimal> forecastSalesList, DcBaseSku turnoverSku) {
if(LocalDateTime.now().minusDays(15L).isBefore(turnoverSku.getPushTime()) && !(turnoverSku.getBuyerName().equals(Constant.BUYER_JIT_1)) && !(turnoverSku.getBuyerName().equals(Constant.BUYER_JIT_2)) && !(turnoverSku.getBuyerName().equals(Constant.BUYER_JIT_4))) {
if(LocalDateTime.now().minusDays(21L).isBefore(turnoverSku.getPushTime()) && !(turnoverSku.getBuyerName().equals(Constant.BUYER_JIT_1)) && !(turnoverSku.getBuyerName().equals(Constant.BUYER_JIT_2)) && !(turnoverSku.getBuyerName().equals(Constant.BUYER_JIT_4))) {
for(int j = 0; j < autoForecastDay; j++) {
forecastSalesList.set(j, BigDecimal.valueOf(dcAutoSales.getOnedaySales()));
}
......
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