|
@@ -202,6 +202,12 @@ public interface FsStoreProductScrmMapper
|
|
|
"<if test = 'maps.storeId != null'> " +
|
|
"<if test = 'maps.storeId != null'> " +
|
|
|
"and p.store_id = #{maps.storeId}" +
|
|
"and p.store_id = #{maps.storeId}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
|
|
+ " <if test = 'maps.cateIds != null and maps.cateIds.size() > 0'>\n" +
|
|
|
|
|
+ " and p.cate_id in \n" +
|
|
|
|
|
+ " <foreach collection='maps.cateIds' item='cateId' open='(' separator=',' close=')'>\n" +
|
|
|
|
|
+ " #{cateId}\n" +
|
|
|
|
|
+ " </foreach>\n" +
|
|
|
|
|
+ " </if>"+
|
|
|
"<if test = 'maps.defaultOrder != null and maps.defaultOrder==\"desc\" '> " +
|
|
"<if test = 'maps.defaultOrder != null and maps.defaultOrder==\"desc\" '> " +
|
|
|
"order by p.sort desc,product_id desc" +
|
|
"order by p.sort desc,product_id desc" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
@@ -217,12 +223,7 @@ public interface FsStoreProductScrmMapper
|
|
|
"<if test = 'maps.salesOrder != null and maps.salesOrder==\"asc\" '> " +
|
|
"<if test = 'maps.salesOrder != null and maps.salesOrder==\"asc\" '> " +
|
|
|
"order by p.sales asc " +
|
|
"order by p.sales asc " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
- " <if test = 'maps.cateIds != null and maps.cateIds.size() > 0'>\n" +
|
|
|
|
|
- " and p.cate_id in \n" +
|
|
|
|
|
- " <foreach collection='maps.cateIds' item='cateId' open='(' separator=',' close=')'>\n" +
|
|
|
|
|
- " #{cateId}\n" +
|
|
|
|
|
- " </foreach>\n" +
|
|
|
|
|
- " </if>"+
|
|
|
|
|
|
|
+
|
|
|
"<if test = 'maps.newOrder != null and maps.newOrder==\"desc\" '> " +
|
|
"<if test = 'maps.newOrder != null and maps.newOrder==\"desc\" '> " +
|
|
|
"and p.is_new =1 order by p.create_time desc " +
|
|
"and p.is_new =1 order by p.create_time desc " +
|
|
|
"</if>" +
|
|
"</if>" +
|