|
|
@@ -68,7 +68,8 @@ public interface FsStoreProductMapper
|
|
|
*/
|
|
|
public int deleteFsStoreProductByIds(Long[] productIds);
|
|
|
@Select({"<script> " +
|
|
|
- "select p.*,pc.cate_name from fs_store_product p left join fs_store_product_category pc on p.cate_id=pc.cate_id " +
|
|
|
+ "select p.product_id, p.image, p.slider_image, p.product_name, p.product_info, p.keyword, p.bar_code, p.cate_id, p.price, p.vip_price, p.ot_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.warehouse_id, p.warehouse_code, p.tax_classification_code, p.invoice_name, pc.cate_name " +
|
|
|
+ "from fs_store_product p left join fs_store_product_category pc on p.cate_id=pc.cate_id " +
|
|
|
"where 1=1 " +
|
|
|
"<if test = 'maps.productName != null and maps.productName !=\"\" '> " +
|
|
|
"and p.product_name like CONCAT('%',#{maps.productName},'%') " +
|
|
|
@@ -82,7 +83,10 @@ public interface FsStoreProductMapper
|
|
|
"<if test = 'maps.isShow != null '> " +
|
|
|
"and p.is_show =#{maps.isShow} " +
|
|
|
"</if>" +
|
|
|
- "<if test = 'maps.warehouseCode != null '> " +
|
|
|
+ "<if test = 'maps.warehouseId != null '> " +
|
|
|
+ "and p.warehouse_id =#{maps.warehouseId} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test = 'maps.warehouseCode != null and maps.warehouseCode != \"\" '> " +
|
|
|
"and p.warehouse_code =#{maps.warehouseCode} " +
|
|
|
"</if>" +
|
|
|
" order by p.product_id desc "+
|
|
|
@@ -93,7 +97,7 @@ public interface FsStoreProductMapper
|
|
|
@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, " +
|
|
|
" 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,p.warehouse_id,p.warehouse_code " +
|
|
|
" FROM fs_store_product p LEFT JOIN fs_store_product_attr_value 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 pc on p.cate_id=pc.cate_id " +
|
|
|
" where 1=1 " +
|
|
|
@@ -112,7 +116,10 @@ public interface FsStoreProductMapper
|
|
|
"<if test = 'maps.isShow != null '> " +
|
|
|
"and p.is_show =#{maps.isShow} " +
|
|
|
"</if>" +
|
|
|
- "<if test = 'maps.warehouseCode != null '> " +
|
|
|
+ "<if test = 'maps.warehouseId != null '> " +
|
|
|
+ "and p.warehouse_id =#{maps.warehouseId} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test = 'maps.warehouseCode != null and maps.warehouseCode != \"\" '> " +
|
|
|
"and p.warehouse_code =#{maps.warehouseCode} " +
|
|
|
"</if>" +
|
|
|
" order by p.product_id desc "+
|
|
|
@@ -200,7 +207,7 @@ public interface FsStoreProductMapper
|
|
|
" p.vip_price, p.ot_price, p.postage,p.unit_name,p.sort,p.sales,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,ave.sku,ave.stock,ave.price,ave.bar_code,ave.group_bar_code,ave.weight,ave.volume," +
|
|
|
- "ave.brokerage,ave.brokerage_two,ave.brokerage_three,ave.agent_price,p.warehouse_code FROM fs_store_product p " +
|
|
|
+ "ave.brokerage,ave.brokerage_two,ave.brokerage_three,ave.agent_price,p.warehouse_id,p.warehouse_code FROM fs_store_product p " +
|
|
|
" LEFT JOIN fs_store_product_attr_value ave on p.product_id=ave.product_id WHERE p.product_id is not null " +
|
|
|
"</script>"})
|
|
|
List<FsStoreProductExportVO> selectFsStoreProductExportList(@Param("maps")FsStoreProduct fsStoreProduct);
|