|
|
@@ -178,6 +178,9 @@ public interface FsStoreOrderItemScrmMapper
|
|
|
"<if test=\"maps.productName != null and maps.productName != '' \">" +
|
|
|
" and psps.product_name like concat('%', #{maps.productName}, '%') " +
|
|
|
"</if>" +
|
|
|
+ "<if test=\"maps.cateName != null and maps.cateName != ''\">" +
|
|
|
+ " and fspcs.cate_name like concat('%', #{maps.cateName}, '%') " +
|
|
|
+ "</if>" +
|
|
|
"<if test = 'maps.orderType != null and maps.orderType != -1 '> " +
|
|
|
"and o.order_type =#{maps.orderType} " +
|
|
|
"</if>" +
|
|
|
@@ -256,6 +259,7 @@ public interface FsStoreOrderItemScrmMapper
|
|
|
"left join company_user cu on cu.user_id=o.company_user_id " +
|
|
|
"left join company_tcm_schedule cts on cts.id = o.schedule_id " +
|
|
|
" left join fs_store_product_scrm psps on i.product_id=psps.product_id " +
|
|
|
+ " left join fs_store_product_category_scrm fspcs on fspcs.cate_id=psps.cate_id " +
|
|
|
" LEFT JOIN (" +
|
|
|
" SELECT sp.*, ROW_NUMBER() OVER (PARTITION BY sp.business_code ORDER BY sp.create_time DESC) as rn" +
|
|
|
" FROM fs_store_payment_scrm sp WHERE sp.business_code IS NOT NULL" +
|
|
|
@@ -343,6 +347,9 @@ public interface FsStoreOrderItemScrmMapper
|
|
|
"<if test=\"maps.productName != null and maps.productName != '' \">" +
|
|
|
" and psps.product_name like concat('%', #{maps.productName}, '%') " +
|
|
|
"</if>" +
|
|
|
+ "<if test=\"maps.cateName != null and maps.cateName != ''\">" +
|
|
|
+ " and fspcs.cate_name like concat('%', #{maps.cateName}, '%') " +
|
|
|
+ "</if>" +
|
|
|
"<if test = 'maps.orderType != null and maps.orderType != -1 '> " +
|
|
|
"and o.order_type =#{maps.orderType} " +
|
|
|
"</if>" +
|