|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="com.game.business.domain.AppUsersCharge" id="AppUsersChargeResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="addtime" column="addtime" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
<result property="afterCoin" column="after_coin" />
|
|
|
<result property="agentId" column="agent_id" />
|
|
|
<result property="ambient" column="ambient" />
|
|
@@ -37,13 +38,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAppUsersChargeVo">
|
|
|
- select id, addtime, after_coin, agent_id, ambient, coin, coin_type, coin_give,platform_service_rate,platform_service, is_agent, is_delete, is_water, money, opt_type, opt_user, orderno, pid, pid_level1, pid_level2, pid_level3, pid_level4, remarks, rule_id, status, touid, trade_no, type, uid from app_users_charge
|
|
|
+ select id, addtime,update_time, after_coin, agent_id, ambient, coin, coin_type, coin_give,platform_service_rate,platform_service, is_agent, is_delete, is_water, money, opt_type, opt_user, orderno, pid, pid_level1, pid_level2, pid_level3, pid_level4, remarks, rule_id, status, touid, trade_no, type, uid from app_users_charge
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectAppUsersChargeList" parameterType="com.game.business.domain.AppUsersCharge" resultMap="AppUsersChargeResult">
|
|
|
<include refid="selectAppUsersChargeVo"/>
|
|
|
<where>
|
|
|
<if test="addtime != null "> and addtime = #{addtime}</if>
|
|
|
+ <if test="updateTime != null "> and update_time = #{updateTime}</if>
|
|
|
<if test="afterCoin != null "> and after_coin = #{afterCoin}</if>
|
|
|
<if test="agentId != null "> and agent_id = #{agentId}</if>
|
|
|
<if test="ambient != null "> and ambient = #{ambient}</if>
|
|
@@ -84,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
<if test="addtime != null">addtime,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
<if test="afterCoin != null">after_coin,</if>
|
|
|
<if test="agentId != null">agent_id,</if>
|
|
|
<if test="ambient != null">ambient,</if>
|
|
@@ -115,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="addtime != null">#{addtime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="afterCoin != null">#{afterCoin},</if>
|
|
|
<if test="agentId != null">#{agentId},</if>
|
|
|
<if test="ambient != null">#{ambient},</if>
|
|
@@ -149,6 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update app_users_charge
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="addtime != null">addtime = #{addtime},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="afterCoin != null">after_coin = #{afterCoin},</if>
|
|
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|
|
<if test="ambient != null">ambient = #{ambient},</if>
|