Skip to content

Commit

Permalink
更新 eventModeMapper.xml 中的 getNewest
Browse files Browse the repository at this point in the history
  • Loading branch information
Akiyama-Mio-a committed Dec 11, 2023
1 parent f3c3f2e commit d0c1c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/mapper/eventModelMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
<!-- 最新的活动列表(按开始时间正序排列未开始的活动)-->
<select id="getNewest" resultMap="eventModelMap">
<include refid="selectFrom" />
WHERE e.state = 1
<!-- state 小于等于 2。 -->
<!-- 未开始 或 报名中 的活动。 -->
WHERE e.state &lt;= 2
ORDER BY e.gmt_event_start ASC
</select>

Expand Down

0 comments on commit d0c1c46

Please sign in to comment.