|
@@ -396,7 +396,7 @@
|
|
|
AND o.customer_id IS NULL
|
|
AND o.customer_id IS NULL
|
|
|
</if>
|
|
</if>
|
|
|
<if test="CorpsDesc.notPurchased == null or CorpsDesc.notPurchased == ''">
|
|
<if test="CorpsDesc.notPurchased == null or CorpsDesc.notPurchased == ''">
|
|
|
- AND o.customer_id IS NOT NULL
|
|
|
|
|
|
|
+ AND IFNULL(o.customer_id, 0 ) != 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="CorpsDesc.cname !=null and CorpsDesc.cname != ''">
|
|
<if test="CorpsDesc.cname !=null and CorpsDesc.cname != ''">
|
|
|
and pcd.cname like CONCAT(CONCAT('%', #{CorpsDesc.cname}), '%')
|
|
and pcd.cname like CONCAT(CONCAT('%', #{CorpsDesc.cname}), '%')
|