123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <?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.game.business.mapper.AppUsersCashrecordMapper">
-
- <resultMap type="com.game.business.domain.AppUsersCashrecord" id="AppUsersCashrecordResult">
- <result property="id" column="id" />
- <result property="account" column="account" />
- <result property="accountBank" column="account_bank" />
- <result property="actualMoney" column="actual_money" />
- <result property="addtime" column="addtime" />
- <result property="afterAmount" column="after_amount" />
- <result property="auditby" column="auditby" />
- <result property="beforeAmount" column="before_amount" />
- <result property="cashOutBizNo" column="cash_out_biz_no" />
- <result property="cashOutOrderId" column="cash_out_order_id" />
- <result property="cashOutPayOrderId" column="cash_out_pay_order_id" />
- <result property="cashOutRemark" column="cash_out_remark" />
- <result property="cashOutStatus" column="cash_out_status" />
- <result property="cashType" column="cash_type" />
- <result property="guildId" column="guild_id" />
- <result property="money" column="money" />
- <result property="name" column="name" />
- <result property="orderno" column="orderno" />
- <result property="platformService" column="platform_service" />
- <result property="reason" column="reason" />
- <result property="remarks" column="remarks" />
- <result property="service" column="service" />
- <result property="status" column="status" />
- <result property="statusName" column="status_name" />
- <result property="tradeNo" column="trade_no" />
- <result property="type" column="type" />
- <result property="uid" column="uid" />
- <result property="unitType" column="unit_type" />
- <result property="uptime" column="uptime" />
- <result property="votes" column="votes" />
- </resultMap>
- <sql id="selectAppUsersCashrecordVo">
- select id, account, account_bank, actual_money, addtime, after_amount, auditby, before_amount, cash_out_biz_no, cash_out_order_id, cash_out_pay_order_id, cash_out_remark, cash_out_status, cash_type, guild_id, money, name, orderno, platform_service, reason, remarks, service, status, status_name, trade_no, type, uid, unit_type, uptime, votes from app_users_cashrecord
- </sql>
- <select id="selectAppUsersCashrecordList" parameterType="com.game.business.domain.AppUsersCashrecord" resultMap="AppUsersCashrecordResult">
- <include refid="selectAppUsersCashrecordVo"/>
- <where>
- <if test="account != null and account != ''"> and account = #{account}</if>
- <if test="accountBank != null and accountBank != ''"> and account_bank = #{accountBank}</if>
- <if test="actualMoney != null "> and actual_money = #{actualMoney}</if>
- <if test="addtime != null "> and addtime = #{addtime}</if>
- <if test="afterAmount != null "> and after_amount = #{afterAmount}</if>
- <if test="auditby != null and auditby != ''"> and auditby = #{auditby}</if>
- <if test="beforeAmount != null "> and before_amount = #{beforeAmount}</if>
- <if test="cashOutBizNo != null and cashOutBizNo != ''"> and cash_out_biz_no = #{cashOutBizNo}</if>
- <if test="cashOutOrderId != null and cashOutOrderId != ''"> and cash_out_order_id = #{cashOutOrderId}</if>
- <if test="cashOutPayOrderId != null and cashOutPayOrderId != ''"> and cash_out_pay_order_id = #{cashOutPayOrderId}</if>
- <if test="cashOutRemark != null and cashOutRemark != ''"> and cash_out_remark = #{cashOutRemark}</if>
- <if test="cashOutStatus != null "> and cash_out_status = #{cashOutStatus}</if>
- <if test="cashType != null "> and cash_type = #{cashType}</if>
- <if test="guildId != null "> and guild_id = #{guildId}</if>
- <if test="money != null "> and money = #{money}</if>
- <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
- <if test="orderno != null and orderno != ''"> and orderno = #{orderno}</if>
- <if test="platformService != null "> and platform_service = #{platformService}</if>
- <if test="reason != null and reason != ''"> and reason = #{reason}</if>
- <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
- <if test="service != null "> and service = #{service}</if>
- <if test="status != null "> and status = #{status}</if>
- <if test="statusName != null and statusName != ''"> and status_name like concat('%', #{statusName}, '%')</if>
- <if test="tradeNo != null and tradeNo != ''"> and trade_no = #{tradeNo}</if>
- <if test="type != null "> and type = #{type}</if>
- <if test="uid != null "> and uid = #{uid}</if>
- <if test="unitType != null "> and unit_type = #{unitType}</if>
- <if test="uptime != null "> and uptime = #{uptime}</if>
- <if test="votes != null "> and votes = #{votes}</if>
- </where>
- </select>
-
- <select id="selectAppUsersCashrecordById" parameterType="Long" resultMap="AppUsersCashrecordResult">
- <include refid="selectAppUsersCashrecordVo"/>
- where id = #{id}
- </select>
-
- <insert id="insertAppUsersCashrecord" parameterType="com.game.business.domain.AppUsersCashrecord">
- insert into app_users_cashrecord
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="account != null">account,</if>
- <if test="accountBank != null">account_bank,</if>
- <if test="actualMoney != null">actual_money,</if>
- <if test="addtime != null">addtime,</if>
- <if test="afterAmount != null">after_amount,</if>
- <if test="auditby != null">auditby,</if>
- <if test="beforeAmount != null">before_amount,</if>
- <if test="cashOutBizNo != null">cash_out_biz_no,</if>
- <if test="cashOutOrderId != null">cash_out_order_id,</if>
- <if test="cashOutPayOrderId != null">cash_out_pay_order_id,</if>
- <if test="cashOutRemark != null">cash_out_remark,</if>
- <if test="cashOutStatus != null">cash_out_status,</if>
- <if test="cashType != null">cash_type,</if>
- <if test="guildId != null">guild_id,</if>
- <if test="money != null">money,</if>
- <if test="name != null">name,</if>
- <if test="orderno != null">orderno,</if>
- <if test="platformService != null">platform_service,</if>
- <if test="reason != null">reason,</if>
- <if test="remarks != null">remarks,</if>
- <if test="service != null">service,</if>
- <if test="status != null">status,</if>
- <if test="statusName != null">status_name,</if>
- <if test="tradeNo != null">trade_no,</if>
- <if test="type != null">type,</if>
- <if test="uid != null">uid,</if>
- <if test="unitType != null">unit_type,</if>
- <if test="uptime != null">uptime,</if>
- <if test="votes != null">votes,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id},</if>
- <if test="account != null">#{account},</if>
- <if test="accountBank != null">#{accountBank},</if>
- <if test="actualMoney != null">#{actualMoney},</if>
- <if test="addtime != null">#{addtime},</if>
- <if test="afterAmount != null">#{afterAmount},</if>
- <if test="auditby != null">#{auditby},</if>
- <if test="beforeAmount != null">#{beforeAmount},</if>
- <if test="cashOutBizNo != null">#{cashOutBizNo},</if>
- <if test="cashOutOrderId != null">#{cashOutOrderId},</if>
- <if test="cashOutPayOrderId != null">#{cashOutPayOrderId},</if>
- <if test="cashOutRemark != null">#{cashOutRemark},</if>
- <if test="cashOutStatus != null">#{cashOutStatus},</if>
- <if test="cashType != null">#{cashType},</if>
- <if test="guildId != null">#{guildId},</if>
- <if test="money != null">#{money},</if>
- <if test="name != null">#{name},</if>
- <if test="orderno != null">#{orderno},</if>
- <if test="platformService != null">#{platformService},</if>
- <if test="reason != null">#{reason},</if>
- <if test="remarks != null">#{remarks},</if>
- <if test="service != null">#{service},</if>
- <if test="status != null">#{status},</if>
- <if test="statusName != null">#{statusName},</if>
- <if test="tradeNo != null">#{tradeNo},</if>
- <if test="type != null">#{type},</if>
- <if test="uid != null">#{uid},</if>
- <if test="unitType != null">#{unitType},</if>
- <if test="uptime != null">#{uptime},</if>
- <if test="votes != null">#{votes},</if>
- </trim>
- </insert>
- <update id="updateAppUsersCashrecord" parameterType="com.game.business.domain.AppUsersCashrecord">
- update app_users_cashrecord
- <trim prefix="SET" suffixOverrides=",">
- <if test="account != null">account = #{account},</if>
- <if test="accountBank != null">account_bank = #{accountBank},</if>
- <if test="actualMoney != null">actual_money = #{actualMoney},</if>
- <if test="addtime != null">addtime = #{addtime},</if>
- <if test="afterAmount != null">after_amount = #{afterAmount},</if>
- <if test="auditby != null">auditby = #{auditby},</if>
- <if test="beforeAmount != null">before_amount = #{beforeAmount},</if>
- <if test="cashOutBizNo != null">cash_out_biz_no = #{cashOutBizNo},</if>
- <if test="cashOutOrderId != null">cash_out_order_id = #{cashOutOrderId},</if>
- <if test="cashOutPayOrderId != null">cash_out_pay_order_id = #{cashOutPayOrderId},</if>
- <if test="cashOutRemark != null">cash_out_remark = #{cashOutRemark},</if>
- <if test="cashOutStatus != null">cash_out_status = #{cashOutStatus},</if>
- <if test="cashType != null">cash_type = #{cashType},</if>
- <if test="guildId != null">guild_id = #{guildId},</if>
- <if test="money != null">money = #{money},</if>
- <if test="name != null">name = #{name},</if>
- <if test="orderno != null">orderno = #{orderno},</if>
- <if test="platformService != null">platform_service = #{platformService},</if>
- <if test="reason != null">reason = #{reason},</if>
- <if test="remarks != null">remarks = #{remarks},</if>
- <if test="service != null">service = #{service},</if>
- <if test="status != null">status = #{status},</if>
- <if test="statusName != null">status_name = #{statusName},</if>
- <if test="tradeNo != null">trade_no = #{tradeNo},</if>
- <if test="type != null">type = #{type},</if>
- <if test="uid != null">uid = #{uid},</if>
- <if test="unitType != null">unit_type = #{unitType},</if>
- <if test="uptime != null">uptime = #{uptime},</if>
- <if test="votes != null">votes = #{votes},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteAppUsersCashrecordById" parameterType="Long">
- delete from app_users_cashrecord where id = #{id}
- </delete>
- <delete id="deleteAppUsersCashrecordByIds" parameterType="String">
- delete from app_users_cashrecord where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|