yanderong
2026-06-10 0a50085d6ef51274c28d3915446af6d9ddd91cd2
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
42
43
44
45
46
47
48
49
<?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.stylefeng.guns.modular.system.dao.PushEvaluationLogMapper">
 
    <select id="getTaxiOrderList" resultType="java.util.Map" >
        SELECT ot.id, ot.orderNum as orderNo, ot.passengers as userName, ot.passengersPhone as userPhone,
               ot.placementLon, ot.placementLat, ot.placementAddress, ot.startLon, ot.startLat, ot.startAddress,
            ot.endLon, ot.endLat, ot.endAddress, ot.orderMoney, ot.payMoney, ot.travelTime as traveTime,
            ot.startServiceTime, ot.endServiceTime, ot.insertTime as createTime,
            td.id as driverId, td.name as driverName, td.phone as driverPhone, td.idCard as driverIdCard, td.insertTime as driverCreateTime,
            ci.carLicensePlate as vehicleNo, oe.fraction as score, oe.content as evaluation
        FROM t_order_taxi as ot
        LEFT JOIN t_driver as td on td.id = ot.driverId
        LEFT JOIN t_car as ci on ci.id= ot.carId
        LEFT JOIN t_order_evaluate as oe on oe.orderId= ot.id
        WHERE ot.state in(8, 9)
        <if test="startTime != null and startTime !='' and endTime != null and endTime != ''">
            and (ot.insertTime between #{startTime} and #{endTime})
        </if>
    </select>
 
    <select id="getPrivateCarOrderList" resultType="java.util.Map" >
        SELECT ot.id, ot.orderNum as orderNo, ot.passengers as userName, ot.passengersPhone as userPhone,
        ot.placementLon, ot.placementLat, ot.placementAddress, ot.startLon, ot.startLat, ot.startAddress,
        ot.endLon, ot.endLat, ot.endAddress, ot.orderMoney, ot.payMoney, ot.travelTime as traveTime,
        ot.startServiceTime, ot.endServiceTime, ot.insertTime as createTime,
        td.id as driverId, td.name as driverName, td.phone as driverPhone, td.idCard as driverIdCard, td.insertTime as driverCreateTime,
        ci.carLicensePlate as vehicleNo, oe.fraction as score, oe.content as evaluation
        FROM t_order_private_car as ot
        LEFT JOIN t_driver as td on td.id = ot.driverId
        LEFT JOIN t_car as ci on ci.id= ot.carId
        LEFT JOIN t_order_evaluate as oe on oe.orderId= ot.id
        WHERE ot.state in(8, 9)
        <if test="startTime != null and startTime !='' and endTime != null and endTime != ''">
            and (ot.insertTime between #{startTime} and #{endTime})
        </if>
    </select>
    <select id="queryBySerialNumber" resultType="com.stylefeng.guns.modular.system.model.PushEvaluationLog">
        select * from sys_push_evaluation_log
        where status = 1
        <if test="null != serialNumber">
            and serial_number = #{serialNumber}
        </if>
 
    </select>
 
 
 
</mapper>