Browse Source

fix 未购买奈飞不推荐路由器

zoujiajian 3 years ago
parent
commit
a76c8289c0
1 changed files with 6 additions and 2 deletions
  1. 6 2
      netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

+ 6 - 2
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -194,7 +194,6 @@
         min_price as price,
         (
         case when type = 2 and ${isPayNf} then 999
-        when type = 2 and !${isPayNf} then 666
         when category = 1 then 888
         when category = 2 then 777
         when category = 3 then 755
@@ -204,7 +203,12 @@
         <foreach collection="list" item="item" open="(" separator="," close=")">
             #{item}
         </foreach>
-        and type in (1,2)
+        <if test="isPayNf">
+            and type in (1,2)
+        </if>
+        <if test="!isPayNf">
+            and type = 1
+        </if>
         and deleted is true and status is true) s order by s.sorted desc,sort_by desc
     </select>
 </mapper>