@@ -2219,6 +2219,8 @@
ON OIR.SALE_MATERIAL_ID = ASM.SALE_MATERIAL_ID
WHERE
ASM.SALE_MATERIAL_ID IS NOT NULL
+ <!-- 反审核销售订单过滤掉 -->
+ and ASO.DELETED != 1
and asm.SALE_ORDER_ID != -1
<if test="carrierSsoId != null">
and R_CARRIER.CARRIER_SSO_ID = #{carrierSsoId}
@@ -1106,6 +1106,8 @@
where
ASM.DELETED IS NULL
AND
+ NVL(ASO.DELETED, 0) NOT IN (1,2)
+ AND
oo.order_number = #{orderNumber}