add event option
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user