|
@@ -68,6 +68,7 @@
|
|
<result property="isRefundStatus" column="isRefundStatus"/>
|
|
<result property="isRefundStatus" column="isRefundStatus"/>
|
|
<result property="refundStatus" column="refund_status"/>
|
|
<result property="refundStatus" column="refund_status"/>
|
|
<result property="approvalRemark" column="approval_remark"/>
|
|
<result property="approvalRemark" column="approval_remark"/>
|
|
|
|
+ <result property="isMergePay" column="is_merge_pay"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="queryObject" resultMap="orderMap">
|
|
<select id="queryObject" resultMap="orderMap">
|
|
@@ -222,6 +223,9 @@
|
|
<if test="isScan != null" >
|
|
<if test="isScan != null" >
|
|
is_scan,
|
|
is_scan,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isMergePay != null" >
|
|
|
|
+ is_merge_pay,
|
|
|
|
+ </if>
|
|
<if test="orderBizType != null" >
|
|
<if test="orderBizType != null" >
|
|
order_biz_type,
|
|
order_biz_type,
|
|
</if>
|
|
</if>
|
|
@@ -299,6 +303,9 @@
|
|
<if test="isScan != null" >
|
|
<if test="isScan != null" >
|
|
#{isScan,jdbcType=VARCHAR},
|
|
#{isScan,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isMergePay != null" >
|
|
|
|
+ #{isMergePay},
|
|
|
|
+ </if>
|
|
<if test="orderBizType != null" >
|
|
<if test="orderBizType != null" >
|
|
#{orderBizType,jdbcType=CHAR},
|
|
#{orderBizType,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
@@ -382,6 +389,7 @@
|
|
merch_sn,
|
|
merch_sn,
|
|
merch_order_sn,
|
|
merch_order_sn,
|
|
is_scan,
|
|
is_scan,
|
|
|
|
+ is_merge_pay,
|
|
order_biz_type,
|
|
order_biz_type,
|
|
pay_transaction_id,
|
|
pay_transaction_id,
|
|
pay_mobile,
|
|
pay_mobile,
|
|
@@ -432,6 +440,7 @@
|
|
#{orderInfo.merchSn,jdbcType=VARCHAR},
|
|
#{orderInfo.merchSn,jdbcType=VARCHAR},
|
|
#{orderInfo.merchOrderSn,jdbcType=VARCHAR},
|
|
#{orderInfo.merchOrderSn,jdbcType=VARCHAR},
|
|
#{orderInfo.isScan,jdbcType=VARCHAR},
|
|
#{orderInfo.isScan,jdbcType=VARCHAR},
|
|
|
|
+ #{orderInfo.isMergePay},
|
|
#{orderInfo.orderBizType,jdbcType=CHAR},
|
|
#{orderInfo.orderBizType,jdbcType=CHAR},
|
|
#{orderInfo.payTransactionId,jdbcType=VARCHAR},
|
|
#{orderInfo.payTransactionId,jdbcType=VARCHAR},
|
|
#{orderInfo.payMobile,jdbcType=VARCHAR},
|
|
#{orderInfo.payMobile,jdbcType=VARCHAR},
|
|
@@ -494,6 +503,9 @@
|
|
<if test="isScan != null" >
|
|
<if test="isScan != null" >
|
|
is_scan = #{isScan,jdbcType=VARCHAR},
|
|
is_scan = #{isScan,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isMergePay != null" >
|
|
|
|
+ is_merge_pay = #{isMergePay},
|
|
|
|
+ </if>
|
|
<if test="orderBizType != null" >
|
|
<if test="orderBizType != null" >
|
|
order_biz_type = #{orderBizType,jdbcType=CHAR},
|
|
order_biz_type = #{orderBizType,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
@@ -574,4 +586,15 @@
|
|
from mall_order a
|
|
from mall_order a
|
|
where a.merch_order_sn = #{merchOrderSn}
|
|
where a.merch_order_sn = #{merchOrderSn}
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="queryCountByMerchOrderSn" resultType="java.lang.Integer">
|
|
|
|
+ select count(*)
|
|
|
|
+ from mall_order a
|
|
|
|
+ where a.merch_order_sn = #{merchOrderSn}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="queryOrderByMerchOrderSnAndRefundStatus" resultMap="orderMap">
|
|
|
|
+ select * from mall_order o inner join mall_order_refund r on r.order_id = o.id where o.merch_order_sn = #{merchOrderSn}
|
|
|
|
+ and r.refund_status = 2
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|