|  |  |  | 
|---|
|  |  |  | order by a.created_time desc | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectXcxOrderDetails" resultType="com.xzx.gc.shop.vo.XcxOrderDetailsVo"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | a.* | 
|---|
|  |  |  | ,b.style | 
|---|
|  |  |  | ,b.sku | 
|---|
|  |  |  | ,b.thumb | 
|---|
|  |  |  | ,b.unit_price | 
|---|
|  |  |  | ,c.address | 
|---|
|  |  |  | ,c.phone | 
|---|
|  |  |  | ,c.username | 
|---|
|  |  |  | ,c.express_com expressCompany | 
|---|
|  |  |  | ,c.express_no | 
|---|
|  |  |  | from xzx_score_order a | 
|---|
|  |  |  | inner join xzx_score_order_details b on a.id=b.order_id | 
|---|
|  |  |  | inner join xzx_score_express_info c on a.id=c.order_id | 
|---|
|  |  |  | where a.id=#{id} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <update id="updateOrderStatus"> | 
|---|
|  |  |  | update xzx_score_order | 
|---|
|  |  |  | set status=#{status} | 
|---|
|  |  |  | where id=#{id} and user_id=#{userId} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | </mapper> | 
|---|