|
@@ -923,6 +923,14 @@
|
|
|
<if test="oYeFlag != null">
|
|
|
AND TTR.ORDER_STATUS = '排队中'
|
|
|
AND ASO.SALE_TYPE = 50
|
|
|
+ <choose>
|
|
|
+ <when test="businessType != null and businessType != ''">
|
|
|
+ AND ASO.business_type = #{businessType}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND ASO.business_type IS NULL
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
<if test="oYeFlag == null">
|
|
|
AND RM.MATERIAL_ID||'' NOT IN (SELECT DISTINCT SPECTIONS_MODEL FROM QMS_MODEL_UNROOLED)
|
|
@@ -1074,6 +1082,14 @@
|
|
|
<if test="oYeFlag != null">
|
|
|
AND TTR.ORDER_STATUS = '排队中'
|
|
|
AND ASO.SALE_TYPE = 50
|
|
|
+ <choose>
|
|
|
+ <when test="businessType != null and businessType != ''">
|
|
|
+ AND ASO.business_type = #{businessType}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND ASO.business_type IS NULL
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
<if test="inboundWarehouse != null and inboundWarehouse != ''">
|
|
|
and RW.WAREHOUSE_NAME = #{inboundWarehouse}
|
|
@@ -1191,6 +1207,14 @@
|
|
|
<if test="oYeFlag != null">
|
|
|
AND TTR.ORDER_STATUS = '排队中'
|
|
|
AND ASO.SALE_TYPE = 50
|
|
|
+ <choose>
|
|
|
+ <when test="businessType != null and businessType != ''">
|
|
|
+ AND ASO.business_type = #{businessType}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND ASO.business_type IS NULL
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
and QQSL.SPELILING_NUM = 2
|
|
|
<if test="oYeFlag == null">
|