Quellcode durchsuchen

fix(mapper): 修复 AppSitePlaceMapper 中的 SQL 查询

- 将 AppSitePlaceMapper.xml 文件中的两处 a.id 修改为 g.id
- 修复了 previewOrderPlaceGymnasiumNoFixation 方法中的错误查询
SheepHy vor 2 Tagen
Ursprung
Commit
07bfa61465

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

@@ -54,7 +54,7 @@
     </select>
     <select id="previewOrderPlaceGymnasiumNoFixation" resultType="org.jeecg.modules.app.vo.OrderVO$PreviewOrderPlaceGymnasiumNoFixation">
         SELECT
-            a.id AS placeId,
+            g.id AS placeId,
             a.NAME AS name,
             g.original_price,
             g.selling_price,
@@ -70,7 +70,7 @@
                 LEFT JOIN nm_site_price_rules g ON a.id = g.site_place_id
                 AND g.day_of_week = ( WEEKDAY( NOW()) + 1 )
         WHERE
-            a.id = #{placeId}
+            g.id = #{placeId}
     </select>
     <select id="findByConcertsAndTime" resultMap="ConcertsVOResult">
         <![CDATA[  select b.site_place_id,a.name as site_place_name,