| | |
| | | select |
| | | (payMoney * -1) as money, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time, |
| | | if(type = 4, '同城小件物流订单', '跨城小件物流') as name, |
| | | if(type = 4, '包裹订单', '跨城小件物流') as name, |
| | | UNIX_TIMESTAMP(insertTime) as insertTime |
| | | from t_order_logistics where payMoney != 0 and userId = #{uid} and state not in (7, 10) |
| | | |
| | |
| | | select |
| | | (a.payMoney * -1) as money, |
| | | DATE_FORMAT(a.payTime, '%Y-%m-%d %H:%i') as time, |
| | | if(b.type = 4, '同城小件物流订单', '跨城小件物流') as name, |
| | | if(b.type = 4, '包裹订单', '跨城小件物流') as name, |
| | | UNIX_TIMESTAMP(a.payTime) as insertTime |
| | | from t_order_logistics_spread a |
| | | left join t_order_logistics b on (a.orderLogisticsId = b.id) |
| | |
| | | startAddress as startAddress, |
| | | endAddress as endAddress, |
| | | payMoney as payMoney, |
| | | if(type = 4, '同城小件物流订单', '跨城小件物流订单') as orderName, |
| | | if(type = 4, '包裹流订单', '跨城小件物流订单') as orderName, |
| | | if(invoiceId is null, 1, 2) as invoice, |
| | | unix_timestamp(insertTime) as insertTime, |
| | | `type` as orderType |