<?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>
|