Authored by wangnan

延期为0的话,不处理到23点59

... ... @@ -46,11 +46,11 @@ public class StorageUpdateTimeLogicService {
}
List<ProductTiming> productTimings = productTimingService.selectBySkns(productSkns);
Map<Integer, Integer> outSaleTimeMap = new HashMap<>();
for(ProductTiming productTiming:productTimings){
if(outSaleTimeMap.containsKey(productTiming.getProductSkn())){
for (ProductTiming productTiming : productTimings) {
if (outSaleTimeMap.containsKey(productTiming.getProductSkn())) {
continue;
}
outSaleTimeMap.put(productTiming.getProductSkn(),productTiming.getOutSaleTime());
outSaleTimeMap.put(productTiming.getProductSkn(), productTiming.getOutSaleTime());
}
Map<Integer, Integer> sknMap = new HashMap<>();
List<Product> products = productService.selectListByIds(productIds);
... ... @@ -67,7 +67,9 @@ public class StorageUpdateTimeLogicService {
if (outSaleTime == null) {
outSaleTime = new Integer(0);
}
updateTime = DateUtil.getLastTimeSecond(DateUtil.addTimeSecondByDayAmount(updateTime, outSaleTime));
if (outSaleTime > 0) {
updateTime = DateUtil.getLastTimeSecond(DateUtil.addTimeSecondByDayAmount(updateTime, outSaleTime));
}
storageUpdateTime.setStorageUpdateTime(updateTime);
}
return storageUpdateTimes;
... ...