Explorar o código

fix(app): 修复课程查询条件过滤不全的问题

- 在课程查询中增加对racking_status、del_flag和status字段的过滤条件
- 确保只返回有效的课程数据
- 避免已删除或下架的课程出现在搜索结果中
SheepHy hai 3 semanas
pai
achega
106178470a

+ 1 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/xml/AppCoursesMapper.xml

@@ -25,7 +25,7 @@
                     nm_order_pro_info
                 GROUP BY
                     product_id
-            ) d ON a.id = d.product_id WHERE 1 = 1
+            ) d ON a.id = d.product_id WHERE 1 = 1 AND a.racking_status = 0 AND a.del_flag = 0 AND a.status = 0
         <if test="searchDTO.keyword != null and searchDTO.keyword != ''">
             AND (a.name LIKE CONCAT('%',#{searchDTO.keyword},'%') OR b.address LIKE CONCAT('%',#{searchDTO.keyword},'%'))
         </if>