| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApiOrderDetailById" resultType="com.matrix.system.app.vo.OrderDetailVo"> |
| | | select |
| | | a.id orderId, |
| | | b.VIP_NAME vipName, |
| | | b.PHONE phone, |
| | | a.ORDER_NO orderNo, |
| | | c.su_name staffName, |
| | | a.cash_Pay cashPay, |
| | | a.card_Pay cardPay, |
| | | a.ZK_TOTAL needPay, |
| | | a.cash_Pay + a.card_Pay realPay, |
| | | a.arrears arrears, |
| | | a.TOTAL - a.ZK_TOTAL discount, |
| | | a.STATU orderStatus, |
| | | a.order_time orderTime |
| | | from sys_order a |
| | | inner join sys_vip_info b on a.VIP_ID=b.ID |
| | | left join sys_users c on a.STAFF_ID=c.su_id |
| | | where a.id=#{orderId} |
| | | </select> |
| | | </mapper> |