| 
					
				 | 
			
			
				@@ -108,22 +108,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND s.third_party_merch_code = #{thirdPartyMerchCode} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="orderId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            AND o.id = #{orderId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="storeId != null and storeId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.store_id = #{storeId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="merchSn != null and merchSn.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.merch_sn = #{merchSn} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="shippingStatus != null and shippingStatus.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="orderId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AND o.id = #{orderId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="shippingStatus != null and shippingStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.shipping_status = #{shippingStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="payStatus != null and payStatus.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="payStatus != null and payStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.pay_status = #{payStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="orderStatus != null and orderStatus.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="orderStatus != null and orderStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.order_status = #{orderStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="noCancelStatus != null and noCancelStatus == 'true'"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -132,9 +132,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="refundStatus != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND r.refund_status = #{refundStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="orderType != null and orderType.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="orderType != null and orderType != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.order_type = #{orderType} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="isOnfflineOrder != null and isOnfflineOrder != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AND o.is_onffline_order = #{isOnfflineOrder} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <choose> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <when test="sidx != null and sidx.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 order by ${sidx} ${order} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -173,13 +176,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="orderId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.id = #{orderId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="shippingStatus != null and shippingStatus.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="shippingStatus != null and shippingStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.shipping_status = #{shippingStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="payStatus != null and payStatus.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="payStatus != null and payStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.pay_status = #{payStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="orderStatus != null and orderStatus.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="orderStatus != null and orderStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.order_status = #{orderStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="noCancelStatus != null and noCancelStatus == 'true'"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,9 +191,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="refundStatus != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND r.refund_status = #{refundStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <if test="orderType != null and orderType.trim() != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="orderType != null and orderType != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND o.order_type = #{orderType} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="isOnfflineOrder != null and isOnfflineOrder != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AND o.is_onffline_order = #{isOnfflineOrder} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <insert id="save" parameterType="com.kmall.admin.entity.OrderRefundEntity" useGeneratedKeys="true" keyProperty="id"> 
			 |