| 123456789101112131415161718 |
- <?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.repair.mapper.RepairRefundRecordMapper">
- <resultMap type="com.repair.model.vo.repairRefundVo" id="repairRefundMap">
- <result property="id" column="id"/>
- <result property="payPrice" column="pay_price"/>
- <result property="recordNo" column="record_no"/>
- <result property="recordId" column="record_id"/>
- </resultMap>
- <!--查询退款中的订单-->
- <select id="queryRefundRecord" resultType="com.repair.model.vo.repairRefundVo" resultMap="repairRefundMap">
- select rrr.id,rpr.pay_price,rr.record_no,rrr.record_id from repair_refund_record rrr
- left join repair_record rr on rr.deleted = 0 and rr.id = rrr.record_id
- left join repair_pay_record rpr on rpr.record_id = rrr.record_id and rpr.deleted = 0 and rpr.is_success = 0
- where rrr.approve = 1 and rrr.is_success = 0 and rrr.deleted = 0
- </select>
- </mapper>
|