<?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="org.springblade.modules.pay.mapper.RefundInfoMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="refundInfoResultMap" type="org.springblade.modules.pay.entity.RefundInfoEntity">
|
</resultMap>
|
|
|
<select id="selectRefundInfoPage" resultMap="refundInfoResultMap">
|
select * from jczz_refund_info where is_deleted = 0
|
</select>
|
<resultMap type="org.springblade.modules.pay.dto.RefundInfoDTO" id="RefundInfoDTOResult">
|
<result property="id" column="id" />
|
<result property="orderNo" column="order_no" />
|
<result property="refundNo" column="refund_no" />
|
<result property="refundId" column="refund_id" />
|
<result property="totalFee" column="total_fee" />
|
<result property="refund" column="refund" />
|
<result property="reason" column="reason" />
|
<result property="refundStatus" column="refund_status" />
|
<result property="contentReturn" column="content_return" />
|
<result property="contentNotify" column="content_notify" />
|
<result property="createTime" column="create_time" />
|
<result property="updateTime" column="update_time" />
|
</resultMap>
|
|
<sql id="selectRefundInfo">
|
select
|
id,
|
order_no,
|
refund_no,
|
refund_id,
|
total_fee,
|
refund,
|
reason,
|
refund_status,
|
content_return,
|
content_notify,
|
create_time,
|
update_time
|
from
|
jczz_refund_info
|
</sql>
|
|
<select id="selectRefundInfoById" parameterType="long" resultMap="RefundInfoDTOResult">
|
<include refid="selectRefundInfo"/>
|
where
|
id = #{id}
|
</select>
|
|
<select id="selectRefundInfoList" parameterType="org.springblade.modules.pay.dto.RefundInfoDTO" resultMap="RefundInfoDTOResult">
|
<include refid="selectRefundInfo"/>
|
<where>
|
<if test="id != null "> and id = #{id}</if>
|
<if test="orderNo != null "> and order_no = #{orderNo}</if>
|
<if test="refundNo != null "> and refund_no = #{refundNo}</if>
|
<if test="refundId != null "> and refund_id = #{refundId}</if>
|
<if test="totalFee != null and totalFee != ''"> and total_fee = #{totalFee}</if>
|
<if test="refund != null and refund != ''"> and refund = #{refund}</if>
|
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
<if test="refundStatus != null and refundStatus != ''"> and refund_status = #{refundStatus}</if>
|
<if test="contentReturn != null and contentReturn != ''"> and content_return = #{contentReturn}</if>
|
<if test="contentNotify != null and contentNotify != ''"> and content_notify = #{contentNotify}</if>
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
</where>
|
</select>
|
|
|
</mapper>
|