1234567891011121314151617181920 |
- <?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.qmrb.system.mapper.OrderMapper">
- <select id="getPageByUserId" parameterType="com.qmrb.system.pojo.query.PayOrderQuery"
- resultType="com.qmrb.system.pojo.vo.PayOrderVO">
- select
- po.*,
- br.car_park_id,
- br.car_number,
- br.in_time
- from pay_order po
- INNER JOIN barn_record br on po.good_id = br.id
- where br.car_number = (select plate_number
- from my_car_plate_number
- where user_id = #{queryParams.userId}
- order by create_time desc limit 1
- )
- </select>
- </mapper>
|