Browse Source

feat: 添加otPrice字段

xdd 1 tháng trước cách đây
mục cha
commit
165668685e

+ 6 - 6
fs-service-system/src/main/java/com/fs/store/mapper/FsStoreProductMapper.java

@@ -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> " +