90 lines
4.1 KiB
XML
90 lines
4.1 KiB
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.ff.game.mapper.GameBizMapper">
|
||
|
|
||
|
<resultMap type="Game" id="GameResult">
|
||
|
<result property="id" column="id" />
|
||
|
<result property="sortNo" column="sort_no" />
|
||
|
<result property="gameCode" column="game_code" />
|
||
|
<result property="ingress" column="ingress" />
|
||
|
<result property="gameSourceType" column="game_source_type" />
|
||
|
<result property="gameName" column="game_name" />
|
||
|
<result property="nameInfo" column="name_info" typeHandler="com.ff.base.handler.JsonListHandler" javaType="com.ff.game.domain.NameInfo" />
|
||
|
<result property="gameId" column="game_id" />
|
||
|
<result property="platformCode" column="platform_code" />
|
||
|
<result property="platformType" column="platform_type" />
|
||
|
<result property="freespin" column="freespin" />
|
||
|
<result property="demoStatus" column="demo_status" />
|
||
|
<result property="stopStatus" column="stop_status" />
|
||
|
<result property="createBy" column="create_by" />
|
||
|
<result property="createTime" column="create_time" />
|
||
|
<result property="updateBy" column="update_by" />
|
||
|
<result property="updateTime" column="update_time" />
|
||
|
</resultMap>
|
||
|
|
||
|
|
||
|
<select id="selectGameDTOList" parameterType="com.ff.game.dto.GameDTO" resultMap="GameResult">
|
||
|
select g.id,
|
||
|
g.sort_no,
|
||
|
g.game_code,
|
||
|
g.ingress,
|
||
|
g.game_source_type,
|
||
|
g.game_name,
|
||
|
g.freespin,
|
||
|
g.demo_status,
|
||
|
g.stop_status,
|
||
|
g.create_by,
|
||
|
g.create_time,
|
||
|
g.update_by,
|
||
|
g.update_time
|
||
|
from ff_game g
|
||
|
|
||
|
<where>
|
||
|
<if test="sortNo != null "> and g.sort_no = #{sortNo}</if>
|
||
|
<if test="gameCode != null "> and g.game_code = #{gameCode}</if>
|
||
|
<if test="ingress != null "> and g.ingress = #{ingress}</if>
|
||
|
<if test="gameSourceType != null "> and g.game_source_type = #{gameSourceType}</if>
|
||
|
<if test="gameName != null and gameName != ''"> and name_info like concat('%', #{gameName}, '%')</if>
|
||
|
<if test="freespin != null "> and g.freespin = #{freespin}</if>
|
||
|
<if test="demoStatus != null "> and g.demo_status = #{demoStatus}</if>
|
||
|
<if test="stopStatus != null "> and g.stop_status = #{stopStatus}</if>
|
||
|
<if test="platformCode != null and platformCode != ''"> and g.platform_code = #{platformCode}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectGameResponseList" resultMap="GameResponseResultMap">
|
||
|
select
|
||
|
g.game_id,
|
||
|
g.game_name,
|
||
|
g.freespin,
|
||
|
g.demo_status,
|
||
|
g.ingress,
|
||
|
g.platform_type,
|
||
|
g.platform_code,
|
||
|
g.name_info
|
||
|
from ff_game g
|
||
|
where g.stop_status=1
|
||
|
</select>
|
||
|
|
||
|
<select id="selectGameUniqueList" parameterType="com.ff.game.api.request.GameUniqueDTO" resultMap="GameResult">
|
||
|
<include refid="selectGameVo"/>
|
||
|
<where>
|
||
|
<if test="sortNo != null "> and sort_no = #{sortNo}</if>
|
||
|
<if test="gameCode != null "> and game_code = #{gameCode}</if>
|
||
|
<if test="ingress != null "> and ingress = #{ingress}</if>
|
||
|
<if test="gameSourceType != null "> and game_source_type = #{gameSourceType}</if>
|
||
|
<if test="gameName != null and gameName != ''"> and game_name like concat('%', #{gameName}, '%')</if>
|
||
|
<if test="freespin != null "> and freespin = #{freespin}</if>
|
||
|
<if test="demoStatus != null "> and demo_status = #{demoStatus}</if>
|
||
|
<if test="stopStatus != null "> and stop_status = #{stopStatus}</if>
|
||
|
<if test="gameIds != null and gameIds.size() >0 ">
|
||
|
and id in
|
||
|
<foreach item="gameId" collection="gameIds" open="(" separator="," close=")">
|
||
|
#{gameId}
|
||
|
</foreach>
|
||
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
</mapper>
|