From ba3c255cbfc3fd6ff0708dca96c9e256c690e370 Mon Sep 17 00:00:00 2001
From: jyy <935090232@qq.com>
Date: Tue, 13 Apr 2021 13:28:36 +0800
Subject: [PATCH] 修改订单物流查询信息

---
 zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderDao.xml |   71 +++++++----------------------------
 1 files changed, 14 insertions(+), 57 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderDao.xml b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderDao.xml
index c584cfa..d475c2d 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderDao.xml
@@ -34,6 +34,7 @@
 			<result property="orderType" column="order_type" />
 			<result property="applyStatus" column="apply_status" />
 			<result property="scorePay" column="score_pay" />
+			<result property="payMethod" column="pay_method" />
 			<result property="companyId" column="company_id" />
 	</resultMap>
 
@@ -45,6 +46,7 @@
 		<result property="createTime" column="create_time" />
 		<result property="updateBy" column="update_by" />
 		<result property="updateTime" column="update_time" />
+		<result property="payMethod" column="pay_method" />
 			<result property="orderNo" column="order_no" />
 			<result property="orderMoney" column="order_money" />
 			<result property="commodityPrice" column="commodity_price" />
@@ -130,6 +132,8 @@
 			order_type,
 			activity_type,
 score_pay,
+
+		pay_method,
 			company_id
 	</sql>
 	
@@ -163,6 +167,7 @@
 			#{item.orderType},
 			#{item.activityType},
 			#{item.scorePay},
+			#{item.payMethod},
 			#{item.companyId}
 	</sql>
 	
@@ -239,6 +244,7 @@
 			 <if test="(record.companyId!=null and record.companyId!='') or  (record.companyId!='' and record.companyId==0)  ">
 				 and company_id  = #{record.companyId}
 			 </if>
+
 		</if>
 		 
 	</sql>
@@ -541,35 +547,8 @@
 	<!-- 分页查询 -->
 	<select id="selectInPageByQuery" resultMap="ShopOrderMap">
 		select
-		o.create_by,
-		o.create_time,
-		o.update_by,
-		o.update_time,
-		o.id,
-		o.order_no,
-		o.order_money,
-		o.commodity_price,
-		o.user_id,
-		o.order_time,
-		o.pay_status,
-		o.discount_explain,
-		o.discount_amount,
-		o.order_status,
-		o.refund_charge,
-		o.user_name,
-		o.user_tel,
-		o.remarks,
-		o.shipping_method,
-		o.store_id,
-		o.purchase_quantity,
-		o.del_flag,
-		o.wx_order_no,
-		o.pay_result,
-		o.postage,
-		s.shop_name,
-		o.order_type,
-		o.score_pay,
-		o.apply_status
+		o.*,
+		s.shop_name
 		from shop_order o
 		INNER JOIN sys_shop_info s on o.store_id = s.ID
 		where del_flag = 2 and o.company_id  = #{record.companyId}
@@ -598,6 +577,10 @@
 			<if test="(record.shopId!=null and record.shopId!='')">
 				and o.store_id=#{record.shopId}
 			</if>
+			<if test="(record.payMethod!=null and record.payMethod!='') ">
+				and o.pay_method  = #{record.payMethod}
+			</if>
+
 		</if>
 		<if test="pageVo !=null"><!-- 判断pageVo对象是否为空 -->
 			<if test="pageVo.sort !=null  and pageVo.order !=null">
@@ -614,34 +597,8 @@
 	<!-- 导出Excel -->
 	<select id="selectInPageByQueryOfExcel" resultMap="ShopOrderComplexMap">
 		select
-		o.create_by,
-		o.create_time,
-		o.update_by,
-		o.update_time,
-		o.id,
-		o.order_no,
-		o.order_money,
-		o.commodity_price,
-		o.user_id,
-		o.order_time,
-		o.pay_status,
-		o.discount_explain,
-		o.discount_amount,
-		o.order_status,
-		o.refund_charge,
-		o.user_name,
-		o.user_tel,
-		o.remarks,
-		o.shipping_method,
-		o.store_id,
-		o.purchase_quantity,
-		o.del_flag,
-		o.wx_order_no,
-		o.pay_result,
-		o.postage,
-		s.store_name,
-		s.score_pay,
-		o.order_type
+		o.*,
+		s.store_name
 		from shop_order o
 		LEFT JOIN shop_store s on o.store_id = s.store_id
 		where del_flag = 2 and o.company_id  = #{record.companyId}

--
Gitblit v1.9.1