Commit 85ce7b89 by huluobin

# 新增周转bug fix

parent d535be40
......@@ -234,6 +234,8 @@ public class AutoTurnoverJob extends PointJob {
.andWarehouseCodeEqualTo(dcAutoSales.getWarehouseCode()).example());
if (i == 0) {
dcAutoSalesMapper.insertSelective(dcAutoSales);
this.autoTurnoverFromStock(DateTimeFormatter.ofPattern(CommonConstant.DATE_FORMAT).format(LocalDate.now()),
dcBaseStock);
}
} else {
dcAutoSales = autoSalesService.forecastSalesBySalesVolumeDTO(salesVolumeDTO);
......
......@@ -257,7 +257,7 @@ public class AutoTurnoverTest {
public void testXX2() {
DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class)
.selectOneByExample(DcBaseStockExample.newAndCreateCriteria()
.andBailunSkuEqualTo("948393602")
.andBailunSkuEqualTo("950643503")
.andWarehouseCodeEqualTo("GZBLWH")
.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