瀏覽代碼

fix(app): 移除多余的排序逻辑

- 删除了场馆类型为'0-1'时的评分排序- 移除了'1-2'和'2-2'类型下不必要的评分排序
- 简化了SQL查询结构,提高执行效率
SheepHy 1 周之前
父節點
當前提交
3b660fa8d6

+ 2 - 5
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/xml/AppSiteMapper.xml

@@ -23,20 +23,17 @@
         AND b.no_teaching_day IS NOT NULL
         )
         )
-        <if test="venueType != null and venueType == '0-1'">
-            ORDER BY b.good_rate DESC
-        </if>
         <if test="venueType != null and venueType == '1-1'">
             AND c.org_category = 20
         </if>
         <if test="venueType != null and venueType == '1-2'">
-            AND c.org_category = 20 ORDER BY  b.good_rate DESC
+            AND c.org_category = 20
         </if>
         <if test="venueType != null and venueType == '2-1'">
             AND c.org_category = 21
         </if>
         <if test="venueType != null and venueType == '2-2'">
-            AND c.org_category = 21 ORDER BY  b.good_rate DESC
+            AND c.org_category = 21
         </if>
     </select>