|
@@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAppGameLotteryHistoryVo">
|
|
|
- select id, class_id, game_id, game_date, is_lottery, game_lottery_succ, game_record_date from app_game_lottery_history
|
|
|
+ select id, class_id, game_id, game_date, is_lottery, game_lottery_succ, game_record_date from app_game_lottery_history2
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectAppGameLotteryHistoryList" parameterType="com.game.business.domain.AppGameLotteryHistory" resultMap="AppGameLotteryHistoryResult">
|
|
@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertAppGameLotteryHistory" parameterType="com.game.business.domain.AppGameLotteryHistory" useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into app_game_lottery_history
|
|
|
+ insert into app_game_lottery_history2
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="classId != null">class_id,</if>
|
|
|
<if test="gameId != null">game_id,</if>
|
|
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateAppGameLotteryHistory" parameterType="com.game.business.domain.AppGameLotteryHistory">
|
|
|
- update app_game_lottery_history
|
|
|
+ update app_game_lottery_history2
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
|
<if test="gameId != null">game_id = #{gameId},</if>
|
|
@@ -69,11 +69,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteAppGameLotteryHistoryById" parameterType="Long">
|
|
|
- delete from app_game_lottery_history where id = #{id}
|
|
|
+ delete from app_game_lottery_history2 where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteAppGameLotteryHistoryByIds" parameterType="String">
|
|
|
- delete from app_game_lottery_history where id in
|
|
|
+ delete from app_game_lottery_history2 where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|