浏览代码

feat: 添加otPrice字段

xdd 1 月之前
父节点
当前提交
165668685e
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      fs-service-system/src/main/java/com/fs/store/mapper/FsStoreProductMapper.java

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