RepairRefundRecordMapper.xml 1.1 KB

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.repair.mapper.RepairRefundRecordMapper">
  4. <resultMap type="com.repair.model.vo.repairRefundVo" id="repairRefundMap">
  5. <result property="id" column="id"/>
  6. <result property="payPrice" column="pay_price"/>
  7. <result property="recordNo" column="record_no"/>
  8. <result property="recordId" column="record_id"/>
  9. <result property="updateUser" column="update_user"/>
  10. </resultMap>
  11. <!--查询退款中的订单-->
  12. <select id="queryRefundRecord" resultType="com.repair.model.vo.repairRefundVo" resultMap="repairRefundMap">
  13. select rrr.id,rpr.pay_price,rr.record_no,rrr.record_id,rrr.update_user from repair_refund_record rrr
  14. left join repair_record rr on rr.deleted = 0 and rr.id = rrr.record_id
  15. left join repair_pay_record rpr on rpr.record_id = rrr.record_id and rpr.deleted = 0 and rpr.is_success = 2
  16. where rrr.approve = 1 and rrr.is_success = 0 and rrr.deleted = 0
  17. </select>
  18. </mapper>