23 lines
756 B
XML
23 lines
756 B
XML
<?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.GaoEventOptionMapper">
|
|
<select id="selectAllByGroupIdList" resultType="com.imyeyu.api.modules.gao.entity.GaoEventOption">
|
|
SELECT
|
|
*
|
|
FROM `gao_event_option`
|
|
WHERE
|
|
TRUE
|
|
<if test="groupIdList != null and !groupIdList.isEmpty()">
|
|
AND `group_id` IN
|
|
<foreach collection="groupIdList" item="groupId" separator="," open="(" close=")">
|
|
#{groupId}
|
|
</foreach>
|
|
</if>
|
|
<if test="groupIdList == null or groupIdList.isEmpty()">
|
|
AND FALSE
|
|
</if>
|
|
AND `deleted_at` IS NULL
|
|
ORDER BY `sort`, `created_at`
|
|
</select>
|
|
</mapper>
|