Commit bbe8f5c4 by wutong

自动周转存冗余数时减一天

parent d49f0f33
......@@ -554,7 +554,7 @@ public class AutoTurnoverJob extends PointJob {
dcAutoDailyRedundance.setBailunSku(dcAutoTurnover.getBailunSku());
dcAutoDailyRedundance.setWarehouseCode(dcAutoTurnover.getWarehouseCode());
dcAutoDailyRedundance.setWarehouseName(dcAutoTurnover.getWarehouseName());
dcAutoDailyRedundance.setRecordTime(LocalDate.now());
dcAutoDailyRedundance.setRecordTime(LocalDate.now().minusDays(1));
try {
DcAutoDailyRedundanceMapper mapper = SessionUtil.getSession().getMapper(DcAutoDailyRedundanceMapper.class);
int i = mapper.updateByExampleSelective(dcAutoDailyRedundance,DcAutoDailyRedundanceExample.newAndCreateCriteria().andBailunSkuEqualTo(dcAutoDailyRedundance.getBailunSku()).andWarehouseCodeEqualTo(dcAutoDailyRedundance.getWarehouseCode()).andRecordTimeEqualTo(dcAutoDailyRedundance.getRecordTime()).example());
......
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