Administrator
2 days ago f09e4f247477d271f7e8595b3da1bb3855d58afa
fix(ai): 移除重复的产品状态过滤条件

- 从AiMemberAnswerMapper.xml查询中移除冗余的a.state = 1条件
- 保留b.state = 1条件以确保查询逻辑正确性
- 优化数据库查询性能,避免不必要的状态检查
1 files modified
1 ■■■■ changed files
src/main/resources/mapper/modules/AiMemberAnswerMapper.xml 1 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/modules/AiMemberAnswerMapper.xml
@@ -54,7 +54,6 @@
        left join ai_product a on b.product_id = a.id and a.state = 1
        where b.company_id = #{record.companyId}
          and b.state = 1
          and a.state = 1
          group by b.product_id
        order by b.CREATED_TIME desc