单号生成规则包含已删除;
This commit is contained in:
@@ -531,7 +531,7 @@
|
||||
<select id="getMaxStockOutOrderByPrefixAndOrgAndWarehouse" resultType="java.lang.String">
|
||||
SELECT out_order_number FROM NGWL_TEST_OMS.reserve_stock_out_order
|
||||
WHERE out_order_number LIKE concat(#{prefix}, '%')
|
||||
AND del_flag = 1
|
||||
|
||||
<if test="organizationId != null">
|
||||
AND organization_id = #{organizationId}
|
||||
</if>
|
||||
@@ -543,7 +543,7 @@
|
||||
|
||||
SELECT out_order_number FROM NGWL_TEST_OMS.reservation_stock_out_order
|
||||
WHERE out_order_number LIKE concat(#{prefix}, '%')
|
||||
AND del_flag = 1
|
||||
|
||||
<if test="organizationId != null">
|
||||
AND organization_id = #{organizationId}
|
||||
</if>
|
||||
@@ -555,7 +555,7 @@
|
||||
|
||||
SELECT out_order_number FROM NGWL_TEST_OMS.execution_stock_out_order
|
||||
WHERE out_order_number LIKE concat(#{prefix}, '%')
|
||||
AND del_flag = 1
|
||||
|
||||
<if test="organizationId != null">
|
||||
AND organization_id = #{organizationId}
|
||||
</if>
|
||||
@@ -567,7 +567,7 @@
|
||||
|
||||
SELECT out_order_number FROM stock_out_order
|
||||
WHERE out_order_number LIKE concat(#{prefix}, '%')
|
||||
AND del_flag = 1
|
||||
|
||||
<if test="organizationId != null">
|
||||
AND organization_id = #{organizationId}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user