|
@@ -73,8 +73,9 @@ public interface FsStoreProductScrmMapper
|
|
|
*/
|
|
*/
|
|
|
public int deleteFsStoreProductByIds(Long[] productIds);
|
|
public int deleteFsStoreProductByIds(Long[] productIds);
|
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
|
- "select p.*,pc.cate_name, fs_store.store_name from fs_store_product_scrm p left join fs_store_product_category_scrm pc on p.cate_id=pc.cate_id " +
|
|
|
|
|
|
|
+ "select p.*,pc.cate_name, fs_store.store_name,hs.push_status from fs_store_product_scrm p left join fs_store_product_category_scrm pc on p.cate_id=pc.cate_id " +
|
|
|
"left join fs_store on fs_store.store_id = p.store_id " +
|
|
"left join fs_store on fs_store.store_id = p.store_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 " +
|
|
|
"<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},'%') " +
|
|
@@ -151,9 +152,10 @@ public interface FsStoreProductScrmMapper
|
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
|
" select p.*,pc.cate_name from (SELECT ave.bar_code as bar_code,p.product_id, p.image, p.slider_image,p.product_name, p.product_info,p.keyword, p.cate_id, p.price, p.vip_price, " +
|
|
" select p.*,pc.cate_name from (SELECT ave.bar_code as bar_code,p.product_id, p.image, p.slider_image,p.product_name, p.product_info,p.keyword, p.cate_id, p.price, p.vip_price, " +
|
|
|
" p.ot_price,p.agent_price, p.postage,p.unit_name,p.sort,p.sales,p.stock,p.is_show,p.is_hot,p.is_benefit,p.is_best,p.is_new,p.description,p.create_time,p.update_time,p.is_postage,p.is_del,p.give_integral," +
|
|
" p.ot_price,p.agent_price, p.postage,p.unit_name,p.sort,p.sales,p.stock,p.is_show,p.is_hot,p.is_benefit,p.is_best,p.is_new,p.description,p.create_time,p.update_time,p.is_postage,p.is_del,p.give_integral," +
|
|
|
- " p.cost,p.is_good,p.browse,p.code_path,p.temp_id,p.spec_type,p.is_integral,p.integral,p.product_type,p.prescribe_code, p.prescribe_spec,p.prescribe_factory,p.prescribe_name,p.is_display,p.tui_cate_id " +
|
|
|
|
|
|
|
+ " p.cost,p.is_good,p.browse,p.code_path,p.temp_id,p.spec_type,p.is_integral,p.integral,p.product_type,p.prescribe_code, p.prescribe_spec,p.prescribe_factory,p.prescribe_name,p.is_display,p.tui_cate_id ,hs.push_status" +
|
|
|
" 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 " +
|
|
|
" where 1=1 " +
|
|
" where 1=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},'%') " +
|