Pu Zhibing
8 天以前 41d7465a87e2a52740936a5969c5b182e5eb09b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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.supersavedriving.driver.modular.system.dao.TOrderCheckMapper">
 
    <select id="queryOrderInfo" resultType="com.supersavedriving.driver.modular.system.warpper.CheckOrderInfoWarpper"
            parameterType="java.lang.Long">
        select
            a.id,
            b.id as userId,
            b.avatar,
            b.nickname userName,
            b.phone userPhone,
            a.createTime,
            a.state,
            a.startAddress,
            a.startLat,
            a.startLng,
            a.endAddress,
            a.endLat,
            a.endLng,
            a.orderTakingTime,
            a.arrivalTimeAtTheAppointmentPoint,
            a.checkPayTime,
            a.startTime,
            a.endTime,
            a.goTime,
            a.successTime,
            a.payTime,
            a.checkStatus,
            a.checkIntro,
            a.checkImg,
            a.commentRate,
            a.commentStr,
            a.commentTime,
            a.reservationTime,
            a.reInspection
        from t_order_check a
                 left join t_app_user b on (a.userId = b.id)
        where a.id = #{orderId}
    </select>
</mapper>