|
@@ -334,7 +334,7 @@ public interface FsStoreProductScrmMapper
|
|
|
" FROM fs_store_product_scrm p LEFT JOIN fs_store_product_attr_value_scrm ave on p.product_id=ave.product_id WHERE ave.bar_code != '' and p.product_id is not null" +
|
|
" FROM fs_store_product_scrm p LEFT JOIN fs_store_product_attr_value_scrm ave on p.product_id=ave.product_id WHERE ave.bar_code != '' and p.product_id is not null" +
|
|
|
") p left join fs_store_product_category_scrm pc on p.cate_id=pc.cate_id " +
|
|
") p left join fs_store_product_category_scrm pc on p.cate_id=pc.cate_id " +
|
|
|
"left join (select product_id, push_status from fs_store_hospital580_product_push_scrm h1 where h1.id = (select max(h2.id) from fs_store_hospital580_product_push_scrm h2 where h2.product_id = h1.product_id)) hs on hs.product_id = p.product_id " +
|
|
"left join (select product_id, push_status from fs_store_hospital580_product_push_scrm h1 where h1.id = (select max(h2.id) from fs_store_hospital580_product_push_scrm h2 where h2.product_id = h1.product_id)) hs on hs.product_id = p.product_id " +
|
|
|
- " where 1=1 " +
|
|
|
|
|
|
|
+ " where 1=1 and p.is_drug = 1" +
|
|
|
"<if test = 'maps.productName != null and maps.productName !=\"\" '> " +
|
|
"<if test = 'maps.productName != null and maps.productName !=\"\" '> " +
|
|
|
"and p.product_name like CONCAT('%',#{maps.productName},'%') " +
|
|
"and p.product_name like CONCAT('%',#{maps.productName},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|