Commit a17fcbf2 by yinyong

只查询周转表中不存在的库存sku

parent 43f36fa7
......@@ -1250,7 +1250,7 @@
<select id="listWarehouseStockById" resultType="com.bailuntec.domain.entity.DcBaseStock">
select * from dc_base_stock tb1
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where tb1.warehouse_code=#{warehouseCode} and tb3.bailun_sku is null order by id asc limit #{v1}, #{v2}
where tb1.warehouse_code=#{warehouseCode} and tb3.bailun_sku is null order by tb1.id asc limit #{v1}, #{v2}
</select>
<select id="listInStockNotInAutoTurnover" resultType="com.bailuntec.domain.entity.DcBaseStock">
......
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