| | |
| | | |
| | | <!--根据条件查询评价列表--> |
| | | <select id="getOrderEvaluateList" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> |
| | | SELECT * FROM (SELECT di.companyId,di.franchiseeId,ui.nickName as userName,ui.phone as userPhone,di.`name` as driverName,di.phone as driverPhone,oe.* FROM t_order_evaluate as oe |
| | | SELECT * FROM (SELECT di.companyId,di.franchiseeId,ui.nickName as userName,ui.phone as userPhone,CONCAT(di.firstName, ' ', di.lastName) as driverName,di.phone as driverPhone,oe.* FROM t_order_evaluate as oe |
| | | LEFT JOIN t_user as ui on ui.id = oe.userId |
| | | LEFT JOIN t_driver as di on di.id = oe.driverId) as o |
| | | <where> |