add event option

This commit is contained in:
Timi
2026-08-30 23:50:47 +08:00
parent 4496619eeb
commit 712118556b
23 changed files with 716 additions and 1 deletions
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.imyeyu.api.modules.gao.mapper.GaoEventOptionGroupMapper">
<select id="selectAllByEventIdList" resultType="com.imyeyu.api.modules.gao.entity.GaoEventOptionGroup">
SELECT
*
FROM `gao_event_option_group`
WHERE
TRUE
<if test="eventIdList != null and !eventIdList.isEmpty()">
AND `event_id` IN
<foreach collection="eventIdList" item="eventId" separator="," open="(" close=")">
#{eventId}
</foreach>
</if>
<if test="eventIdList == null or eventIdList.isEmpty()">
AND FALSE
</if>
AND `deleted_at` IS NULL
ORDER BY `sort`, `created_at`
</select>
</mapper>