Commit 7824ac60 by yinyong

自动周转fba仓重新计算

parent 38bdbbdb
......@@ -1247,7 +1247,7 @@
left join (select warehouse_code,hq_type from dc_base_warehouse where hq_type=#{jobParameter}) tb2
on tb1.warehouse_code=tb2.warehouse_code
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where tb2.warehouse_code is not null and tb3.bailun_sku is null order by tb1.id asc limit #{v1}, #{v2}
where tb2.warehouse_code is not null order by tb1.id asc limit #{v1}, #{v2}
</select>
<select id="listAllStock" resultType="com.bailuntec.domain.entity.DcBaseStock">
......@@ -1272,7 +1272,7 @@
left join (select warehouse_code,hq_type from dc_base_warehouse where hq_type=#{jobParameter}) tb2
on tb1.warehouse_code=tb2.warehouse_code
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where tb2.warehouse_code is not null and tb3.bailun_sku is null
where tb2.warehouse_code is not null
</select>
<select id="countAll" resultType="long">
......
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