Forráskód Böngészése

fix(app):修复场地查询逻辑,排除已删除记录- 在查询语句中添加 del_flag =0 条件以过滤已删除的场地价格规则- 更新 findBySidAndCid 查询方法,确保只返回未删除的场地信息
- 优化查询条件顺序,提高 SQL 可读性

SheepHy 3 hete
szülő
commit
53eea6a738

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

@@ -56,11 +56,11 @@
         from nm_site_place a
         left join  nm_site_price_rules b on a.id = b.site_place_id
         LEFT JOIN nm_order_pro_info c on c.product_id =b.id and c.use_date_str =#{today}
-        where a.site_id = #{siteId} and b.category_id =#{categoryId} and b.day_of_week =#{weekDay}
+        where a.site_id = #{siteId} and b.category_id =#{categoryId} and b.day_of_week =#{weekDay} and b.del_flag = 0
         ]]>
     </select>
     <select id="findBySidAndCid" resultType="org.jeecg.modules.app.vo.stadium.StadiumConcertsResponseVO">
-        select early_refund_time,buy_limit from nm_site_place where site_id = #{siteId} and category_id =#{categoryId} limit 1
+        select early_refund_time,buy_limit from nm_site_place where site_id = #{siteId} and del_flag = 0 and category_id =#{categoryId} limit 1
     </select>
     <select id="previewOrderPlaceGymnasiumNoFixation" resultType="org.jeecg.modules.app.vo.OrderVO$PreviewOrderPlaceGymnasiumNoFixation">
         SELECT