|
|
@@ -379,6 +379,9 @@ public interface FsStoreProductScrmMapper
|
|
|
"\tCOUNT(*) OVER ( PARTITION BY p.product_name ) AS storeCount,\n" +
|
|
|
"\tp1.storeIds,\n" +
|
|
|
"\tp.* \n" +
|
|
|
+ "<if test=\"maps.isStores != null and maps.isStores == 1\">\n" +
|
|
|
+ ",fs.store_name \n" +
|
|
|
+ "</if>" +
|
|
|
"FROM\n" +
|
|
|
"\tfs_store_product_scrm p\n" +
|
|
|
"\tLEFT JOIN ( SELECT GROUP_CONCAT( DISTINCT fsp1.store_id SEPARATOR ',' ) AS storeIds, fsp1.product_name FROM fs_store_product_scrm fsp1 GROUP BY fsp1.product_name ) p1 ON p1.product_name = p.product_name\n" +
|
|
|
@@ -393,9 +396,9 @@ public interface FsStoreProductScrmMapper
|
|
|
"<if test = 'maps.isDisplay != null and maps.isDisplay == 1 '> " +
|
|
|
"and p.is_display =#{maps.isDisplay} " +
|
|
|
"</if>" +
|
|
|
- "<if test = 'maps.companyId != null'> " +
|
|
|
- "and find_in_set(#{maps.companyId}, p.company_ids) " +
|
|
|
- "</if>" +
|
|
|
+// "<if test = 'maps.companyId != null'> " +
|
|
|
+// "and find_in_set(#{maps.companyId}, p.company_ids) " +
|
|
|
+// "</if>" +
|
|
|
"<if test = 'maps.cateId != null '> " +
|
|
|
"and p.cate_id =#{maps.cateId} " +
|
|
|
"</if>" +
|