|
@@ -6,7 +6,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="WxOrder" id="WxOrderResult">
|
|
|
<result property="id" column="id" />
|
|
|
+ <result property="goodsId" column="goods_id" />
|
|
|
+ <result property="goodsName" column="goods_name" />
|
|
|
+ <result property="userId" column="user_id" />
|
|
|
+ <result property="unionId" column="union_id" />
|
|
|
+ <result property="appOpenid" column="app_openid" />
|
|
|
+ <result property="xcxOpenid" column="xcx_openid" />
|
|
|
+ <result property="gzhOpenid" column="gzh_openid" />
|
|
|
<result property="outTradeNo" column="out_trade_no" />
|
|
|
+ <result property="outRefundNo" column="out_refund_no" />
|
|
|
+ <result property="refundReason" column="refund_reason" />
|
|
|
<result property="transactionId" column="transaction_id" />
|
|
|
<result property="tradeType" column="trade_type" />
|
|
|
<result property="tradeState" column="trade_state" />
|
|
@@ -14,24 +23,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="bankType" column="bank_type" />
|
|
|
<result property="attach" column="attach" />
|
|
|
<result property="successTime" column="success_time" />
|
|
|
- <result property="openid" column="openid" />
|
|
|
- <result property="goodsName" column="goods_name" />
|
|
|
<result property="total" column="total" />
|
|
|
<result property="payerTotal" column="payer_total" />
|
|
|
<result property="currency" column="currency" />
|
|
|
<result property="payerCurrency" column="payer_currency" />
|
|
|
- <result property="deviceId" column="device_id" />
|
|
|
- <result property="seat" column="seat" />
|
|
|
- <result property="reservedPhone" column="reserved_phone" />
|
|
|
- <result property="acceptChangeSeat" column="accept_change_seat" />
|
|
|
- <result property="seatId" column="seat_id" />
|
|
|
- <result property="seatNo" column="seat_no" />
|
|
|
- <result property="orderState" column="order_state" />
|
|
|
- <result property="orderPrice" column="order_price" />
|
|
|
- <result property="closeCause" column="close_cause" />
|
|
|
- <result property="realSeat" column="real_seat" />
|
|
|
- <result property="ticketCode" column="ticket_code" />
|
|
|
- <result property="ticketImage" column="ticket_image" />
|
|
|
+ <result property="orderStatus" column="order_status" />
|
|
|
+ <result property="phoneType" column="phone_type" />
|
|
|
+ <result property="foreType" column="fore_type" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
</resultMap>
|
|
@@ -48,7 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectWxOrderList" parameterType="WxOrder" resultMap="WxOrderResult">
|
|
|
<include refid="selectWxOrderVo"/>
|
|
|
<where>
|
|
|
- <if test="outTradeNo != null "> and out_trade_no = #{outTradeNo}</if>
|
|
|
+ <if test="goodsId != null"> and goods_id = #{goodsId}</if>
|
|
|
+ <if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if>
|
|
|
+ <if test="userId != null"> and user_id = #{userId}</if>
|
|
|
+ <if test="unionId != null and unionId != ''"> and union_id = #{unionId}</if>
|
|
|
+ <if test="outTradeNo != null and outTradeNo != ''"> and out_trade_no = #{outTradeNo}</if>
|
|
|
+ <if test="outRefundNo != null and outRefundNo != ''"> and out_refund_no = #{outRefundNo}</if>
|
|
|
+ <if test="refundReason != null and refundReason != ''"> and refund_reason = #{refundReason}</if>
|
|
|
<if test="transactionId != null and transactionId != ''"> and transaction_id = #{transactionId}</if>
|
|
|
<if test="tradeType != null and tradeType != ''"> and trade_type = #{tradeType}</if>
|
|
|
<if test="tradeState != null and tradeState != ''"> and trade_state = #{tradeState}</if>
|
|
@@ -56,24 +60,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bankType != null and bankType != ''"> and bank_type = #{bankType}</if>
|
|
|
<if test="attach != null and attach != ''"> and attach = #{attach}</if>
|
|
|
<if test="successTime != null "> and success_time = #{successTime}</if>
|
|
|
- <if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
|
|
- <if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if>
|
|
|
<if test="total != null "> and total = #{total}</if>
|
|
|
<if test="payerTotal != null "> and payer_total = #{payerTotal}</if>
|
|
|
<if test="currency != null and currency != ''"> and currency = #{currency}</if>
|
|
|
<if test="payerCurrency != null and payerCurrency != ''"> and payer_currency = #{payerCurrency}</if>
|
|
|
- <if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
|
|
|
- <if test="seat != null and seat != ''"> and seat = #{seat}</if>
|
|
|
- <if test="reservedPhone != null and reservedPhone != ''"> and reserved_phone = #{reservedPhone}</if>
|
|
|
- <if test="acceptChangeSeat != null "> and accept_change_seat = #{acceptChangeSeat}</if>
|
|
|
- <if test="seatId != null and seatId != ''"> and seat_id = #{seatId}</if>
|
|
|
- <if test="seatno != null and seatno != ''"> and seat_no = #{seatNo}</if>
|
|
|
- <if test="orderState != null and orderState != ''"> and order_state = #{orderState}</if>
|
|
|
- <if test="orderPrice != null "> and order_price = #{orderPrice}</if>
|
|
|
- <if test="closeCause != null and closeCause != ''"> and close_cause = #{closeCause}</if>
|
|
|
- <if test="realSeat != null and realSeat != ''"> and real_seat = #{realSeat}</if>
|
|
|
- <if test="ticketCode != null and ticketCode != ''"> and ticket_code = #{ticketCode}</if>
|
|
|
- <if test="ticketImage != null and ticketImage != ''"> and ticket_image = #{ticketImage}</if>
|
|
|
+ <if test="orderStatus != null and orderStatus != ''"> and order_status = #{orderStatus}</if>
|
|
|
+ <if test="phoneType != null"> and phone_type = #{phoneType}</if>
|
|
|
+ <if test="foreType != null"> and fore_type = #{foreType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|