|  |  |  | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 分页查询 --> | 
|---|
|  |  |  | <select id="selectInPageByQuery" resultMap="ShopOrderMap"> | 
|---|
|  |  |  | <select id="selectInPageByQuery" resultMap="ShopOrderComplexMap"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | o.*, | 
|---|
|  |  |  | s.shop_name | 
|---|
|  |  |  | 
|---|
|  |  |  | o.wx_order_no, | 
|---|
|  |  |  | o.pay_result, | 
|---|
|  |  |  | o.postage, | 
|---|
|  |  |  | o.pay_method | 
|---|
|  |  |  | o.pay_method, | 
|---|
|  |  |  | s.shop_name, | 
|---|
|  |  |  | o.order_type | 
|---|
|  |  |  | from shop_order o | 
|---|
|  |  |  | 
|---|
|  |  |  | group by order_status | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectShopOrderByOrderNo"  resultType="com.matrix.system.shopXcx.bean.ShopOrder"  > | 
|---|
|  |  |  | select | 
|---|
|  |  |  | a.* | 
|---|
|  |  |  | from shop_order a | 
|---|
|  |  |  | where a.order_no=#{orderNo} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <update id="batchUpdateOrderStatus"> | 
|---|
|  |  |  | <foreach collection="list" index="index" item="item" separator=";"> | 
|---|
|  |  |  | update shop_order set order_status=#{item.orderStatus} | 
|---|