@@ -6823,6 +6823,14 @@
and ASO.DELETED = 0
AND ASM.DELETED IS NULL
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 test="oneDate != null and orderNoFlag == null and dateType != 2">
and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') < = to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
</if>