Commit 364a3594 by huluobin

# 更新

parent b8bd5036
......@@ -44,8 +44,8 @@
)
LEFT JOIN dc_auto_sales_forecast_stage_config t7 on t7.config_id = t5.id
and (IF(t5.screen_type = 1,
((t8.first_inbound_date <= t7.duration_upper_limit or t7.duration_upper_limit = 0)
and (t8.first_inbound_date >= t7.duration_lower_limit or t7.duration_lower_limit = 0)
((TIMESTAMPDIFF(DAY,t8.first_inbound_date,now()) <= t7.duration_upper_limit or t7.duration_upper_limit = 0)
and (TIMESTAMPDIFF(DAY,t8.first_inbound_date,now()) >= t7.duration_lower_limit or t7.duration_lower_limit = 0)
and (t7.duration_upper_limit != 0 or t7.duration_lower_limit != 0))
or t8.first_inbound_date is null
or length(trim(t8.first_inbound_date)) = 0,
......
......@@ -256,8 +256,8 @@ public class AutoTurnoverTest {
public void testXX2() {
DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class)
.selectOneByExample(DcBaseStockExample.newAndCreateCriteria()
.andBailunSkuEqualTo("LM-EO-007")
.andWarehouseCodeEqualTo("MMDUSFBA")
.andBailunSkuEqualTo("952153602")
.andWarehouseCodeEqualTo("GB4PXBL")
.example());
try {
AutoTurnoverJob autoTurnoverJob = new AutoTurnoverJob();
......
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