|
@@ -40,52 +40,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</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, cash_channel_id, cash_account_id, 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
|
|
|
+ select a.*,b.type as accountType from app_users_cashrecord as a left join app_users_cash_account as b on a.cash_account_id = b.id
|
|
|
</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="cashChannelId != null "> and cash_channel_id = #{cashChannelId}</if>
|
|
|
- <if test="cashAccountId != null "> and cash_account_id = #{cashAccountId}</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>
|
|
|
- <if test="beginTime != null and beginTime != ''"> and addtime > CONCAT(#{beginTime},' 00:00:00')</if>
|
|
|
- <if test="endTime != null and endTime != ''"> and addtime < CONCAT(#{endTime},' 23:59:59')</if>
|
|
|
+ <if test="account != null and account != ''"> and a.account = #{account}</if>
|
|
|
+ <if test="accountBank != null and accountBank != ''"> and a.account_bank = #{accountBank}</if>
|
|
|
+ <if test="actualMoney != null "> and a.actual_money = #{actualMoney}</if>
|
|
|
+ <if test="addtime != null "> and a.addtime = #{addtime}</if>
|
|
|
+ <if test="afterAmount != null "> and a.after_amount = #{afterAmount}</if>
|
|
|
+ <if test="auditby != null and auditby != ''"> and a.auditby = #{auditby}</if>
|
|
|
+ <if test="beforeAmount != null "> and a.before_amount = #{beforeAmount}</if>
|
|
|
+ <if test="cashOutBizNo != null and cashOutBizNo != ''"> and a.cash_out_biz_no = #{cashOutBizNo}</if>
|
|
|
+ <if test="cashOutOrderId != null and cashOutOrderId != ''"> and a.cash_out_order_id = #{cashOutOrderId}</if>
|
|
|
+ <if test="cashOutPayOrderId != null and cashOutPayOrderId != ''"> and a.cash_out_pay_order_id = #{cashOutPayOrderId}</if>
|
|
|
+ <if test="cashOutRemark != null and cashOutRemark != ''"> and a.cash_out_remark = #{cashOutRemark}</if>
|
|
|
+ <if test="cashOutStatus != null "> and a.cash_out_status = #{cashOutStatus}</if>
|
|
|
+ <if test="cashType != null "> and a.cash_type = #{cashType}</if>
|
|
|
+ <if test="cashChannelId != null "> and a.cash_channel_id = #{cashChannelId}</if>
|
|
|
+ <if test="cashAccountId != null "> and a.cash_account_id = #{cashAccountId}</if>
|
|
|
+ <if test="guildId != null "> and a.guild_id = #{guildId}</if>
|
|
|
+ <if test="money != null "> and a.money = #{money}</if>
|
|
|
+ <if test="name != null and name != ''"> and a.name like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="orderno != null and orderno != ''"> and a.orderno = #{orderno}</if>
|
|
|
+ <if test="platformService != null "> and a.platform_service = #{platformService}</if>
|
|
|
+ <if test="reason != null and reason != ''"> and a.reason = #{reason}</if>
|
|
|
+ <if test="remarks != null and remarks != ''"> and a.remarks = #{remarks}</if>
|
|
|
+ <if test="service != null "> and a.service = #{service}</if>
|
|
|
+ <if test="status != null "> and a.status = #{status}</if>
|
|
|
+ <if test="statusName != null and statusName != ''"> and a.status_name like concat('%', #{statusName}, '%')</if>
|
|
|
+ <if test="tradeNo != null and tradeNo != ''"> and a.trade_no = #{tradeNo}</if>
|
|
|
+ <if test="type != null "> and a.type = #{type}</if>
|
|
|
+ <if test="uid != null "> and a.uid = #{uid}</if>
|
|
|
+ <if test="unitType != null "> and a.unit_type = #{unitType}</if>
|
|
|
+ <if test="uptime != null "> and a.uptime = #{uptime}</if>
|
|
|
+ <if test="votes != null "> and a.votes = #{votes}</if>
|
|
|
+ <if test="beginTime != null and beginTime != ''"> and a.addtime > CONCAT(#{beginTime},' 00:00:00')</if>
|
|
|
+ <if test="endTime != null and endTime != ''"> and a.addtime < CONCAT(#{endTime},' 23:59:59')</if>
|
|
|
</where>
|
|
|
order by addtime desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAppUsersCashrecordById" parameterType="Long" resultMap="AppUsersCashrecordResult">
|
|
|
<include refid="selectAppUsersCashrecordVo"/>
|
|
|
- where id = #{id}
|
|
|
+ where a.id = #{id}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertAppUsersCashrecord" parameterType="com.game.business.domain.AppUsersCashrecord">
|