|
|
@ -416,7 +416,7 @@ |
|
|
|
and (a.classify_id=#{classifyId} OR e.classify_level_hierarchy like concat('%/',#{classifyId},'%') |
|
|
|
OR a.classify_business_id=#{classifyId} OR cpcb.classify_level_hierarchy like concat('%/',#{classifyId},'%')) |
|
|
|
</if> |
|
|
|
<if test="project!=null and project!=''"> |
|
|
|
<if test="project!=null and project!='' and project!=0"> |
|
|
|
AND d.business_id=#{project} |
|
|
|
</if> |
|
|
|
<if test="ids!=null and ids.size()>0"> |
|
|
@ -453,7 +453,7 @@ |
|
|
|
LEFT JOIN cere_product_classify cpcb ON a.classify_business_id=cpcb.classify_id |
|
|
|
LEFT JOIN (SELECT SUM(number) number,product_id,order_id from cere_order_product GROUP BY product_id) f ON a.product_id=f.product_id |
|
|
|
where a.shelve_state=1 and d.state=1 |
|
|
|
<if test="project!=null and project!=''"> |
|
|
|
<if test="project!=null and project!='' and project!=0"> |
|
|
|
AND d.business_id=#{project} |
|
|
|
</if> |
|
|
|
<if test="search!=null and search!=''"> |
|
|
|