| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?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.sckw.payment.dao.KwpWalletRefundMapper">
- <resultMap id="BaseResultMap" type="com.sckw.payment.model.KwpWalletRefund">
- <!--@mbg.generated-->
- <!--@Table kwp_wallet_refund-->
- <id column="id" jdbcType="BIGINT" property="id"/>
- <result column="order_no" jdbcType="VARCHAR" property="orderNo"/>
- <result column="uid" jdbcType="VARCHAR" property="uid"/>
- <result column="from_ent" jdbcType="BIGINT" property="fromEnt"/>
- <result column="filter" jdbcType="VARCHAR" property="filter"/>
- <result column="to_ent" jdbcType="BIGINT" property="toEnt"/>
- <result column="channel" jdbcType="VARCHAR" property="channel"/>
- <result column="money" jdbcType="DECIMAL" property="money"/>
- <result column="actual_money" jdbcType="DECIMAL" property="actualMoney"/>
- <result column="remark" jdbcType="VARCHAR" property="remark"/>
- <result column="create_by" jdbcType="BIGINT" property="createBy"/>
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
- <result column="update_by" jdbcType="BIGINT" property="updateBy"/>
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
- <result column="del_flag" jdbcType="INTEGER" property="delFlag"/>
- <result column="status" jdbcType="INTEGER" property="status"/>
- </resultMap>
- <select id="pageList" resultMap="BaseResultMap">
- select kwr.*
- from kwp_wallet_refund kwr
- <where>
- kwr.del_flag = 0
- <!-- and kwr.status = 1-->
- <if test="refundPage.uid != null and refundPage.uid != ''">
- and kwr.uid = #{refundPage.uid,jdbcType=VARCHAR}
- </if>
- <if test="refundPage.filter != null and refundPage.filter != ''">
- and kwr.filter = #{refundPage.filter,jdbcType=VARCHAR}
- </if>
- <if test="refundPage.channel != null and refundPage.channel != ''">
- and kwr.channel = #{refundPage.channel,jdbcType=VARCHAR}
- </if>
- <if test="refundPage.keywords != null and refundPage.keywords != ''">
- and kwr.order_no like concat('%', #{refundPage.keywords,jdbcType=VARCHAR}, '%')
- </if>
- <if test="refundPage.startCreateTime != null and refundPage.startCreateTime != '' and refundPage.endCreateTime != null and refundPage.endCreateTime != ''">
- and kwr.create_time between #{refundPage.startCreateTime,jdbcType=TIMESTAMP} and #{refundPage.endCreateTime,jdbcType=TIMESTAMP}
- </if>
- </where>
- </select>
- </mapper>
|