Browse Source

refactor(mapper): 修改 AppSitePlaceMapper 接口和 XML 文件

- 将 previewOrderPlaceGymnasiumNoFixation 方法的参数名从 placeId 改为 id
- 更新对应的 XML 文件中的 SQL 语句,将参数名从 placeId 改为 id
SheepHy 3 days ago
parent
commit
d8f918106a

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

@@ -37,7 +37,7 @@ public interface AppSitePlaceMapper extends BaseMapper<AppSitePlace> {
      * @Param
      * @return
      **/
-    OrderVO.PreviewOrderPlaceGymnasiumNoFixation previewOrderPlaceGymnasiumNoFixation(@Param("placeId")String placeId);
+    OrderVO.PreviewOrderPlaceGymnasiumNoFixation previewOrderPlaceGymnasiumNoFixation(@Param("id")String id);
 
     List<ConcertsVO> findByConcertsAndTime(@Param("today")String today,@Param("weekDay") Integer weekDay, @Param("siteId")String siteId, @Param("categoryId")String categoryId);
 }

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

@@ -68,9 +68,8 @@
         FROM
             nm_site_place a
                 LEFT JOIN nm_site_price_rules g ON a.id = g.site_place_id
-                AND g.day_of_week = ( WEEKDAY( NOW()) + 1 )
         WHERE
-            g.id = #{placeId}
+            g.id = #{id}
     </select>
     <select id="findByConcertsAndTime" resultMap="ConcertsVOResult">
         <![CDATA[  select b.site_place_id,a.name as site_place_name,