| | |
| | | a.discountMoney as discountMoney, |
| | | a.payMoney as payMoney, |
| | | a.remark as remark, |
| | | a.companyId, |
| | | b.headImgUrl as driverAvatar, |
| | | CONCAT(b.firstName, " ", b.lastName) as driverName, |
| | | c.carLicensePlate as licensePlate, |
| | |
| | | left join t_order_cancel h on (a.id = h.orderId and h.orderType = a.type and h.state = 2) |
| | | where a.id = #{orderId} |
| | | </select> |
| | | |
| | | |
| | | <select id="queryRedEnvelope" resultType="map"> |
| | | select |
| | | redPacketMoney as money, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time, |
| | | ('包裹') as name, |
| | | UNIX_TIMESTAMP(insertTime) as insertTime |
| | | from t_order_logistics where userId = #{uid} and state in (8, 9) and redPacketId is not null |
| | | </select> |
| | | </mapper> |