|
@@ -125,6 +125,12 @@ public interface FsStoreProductMapper
|
|
|
"<if test = 'maps.cateId != null '> " +
|
|
|
"and p.cate_id =#{maps.cateId} " +
|
|
|
"</if>" +
|
|
|
+ "<if test='maps.isStar != null'>" +
|
|
|
+ "and p.is_star = ${maps.isStar}" +
|
|
|
+ "</if>"+
|
|
|
+ "<if test='maps.isDiscountToday != null'>" +
|
|
|
+ "and p.is_discount_today = ${maps.isDiscountToday}" +
|
|
|
+ "</if>"+
|
|
|
"<if test = 'maps.defaultOrder != null and maps.defaultOrder==\"desc\" '> " +
|
|
|
"order by p.sort desc " +
|
|
|
"</if>" +
|
|
@@ -143,12 +149,6 @@ public interface FsStoreProductMapper
|
|
|
"<if test = 'maps.newOrder != null and maps.newOrder==\"desc\" '> " +
|
|
|
"and p.is_new =1 order by p.create_time desc " +
|
|
|
"</if>" +
|
|
|
- "<if test='maps.isStar != null'>" +
|
|
|
- "and p.is_star = ${maps.isStar}" +
|
|
|
- "</if>"+
|
|
|
- "<if test='maps.isDiscountToday != null'>" +
|
|
|
- "and p.is_discount_today = ${maps.isDiscountToday}" +
|
|
|
- "</if>"+
|
|
|
"</script>"})
|
|
|
List<FsStoreProductListQueryVO> selectFsStoreProductListQuery(@Param("maps")FsStoreProductQueryParam param);
|
|
|
@Select({"<script> " +
|