|  |  | @ -7,11 +7,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select * from io_order_detail |  |  |  |         select * from io_order_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="docid != '' and docid!=null"> |  |  |  |             <if test="erpOrderId != '' and erpOrderId!=null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 and docid = #{docid} |  |  |  |                 and erpOrderId = #{erpOrderId} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="goodsname != '' and goodsname!=null"> |  |  |  |             <if test="goodsname != '' and goodsname!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and GOODSNAME = #{goodsname} |  |  |  |                 and goodsname = #{goodsname} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="orderId != '' and orderId!=null"> |  |  |  |             <if test="orderId != '' and orderId!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and orderIdFk = #{orderId} |  |  |  |                 and orderIdFk = #{orderId} | 
			
		
	
	
		
		
			
				
					|  |  | @ -32,14 +32,14 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select * from io_order_detail |  |  |  |         select * from io_order_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="docid != '' and docid!=null"> |  |  |  |             <if test="erpOrderId != '' and erpOrderId!=null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 and docid = #{docid} |  |  |  |                 and erpOrderId = #{erpOrderId} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="goodsname != '' and goodsname!=null"> |  |  |  |             <if test="goodsname != '' and goodsname!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and GOODSNAME = #{goodsname} |  |  |  |                 and goodsname = #{goodsname} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         group by orderIdFk,docid |  |  |  |         group by orderIdFk,erpOrderId | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -47,11 +47,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select * from io_order_detail |  |  |  |         select * from io_order_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="docid != '' and docid!=null"> |  |  |  |             <if test="erpOrderId != '' and erpOrderId!=null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 and docid = #{docid} |  |  |  |                 and erpOrderId = #{erpOrderId} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="goodsname != '' and goodsname!=null"> |  |  |  |             <if test="goodsname != '' and goodsname!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and GOODSNAME = #{goodsname} |  |  |  |                 and goodsname = #{goodsname} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="orderIdFk != '' and orderIdFk!=null"> |  |  |  |             <if test="orderIdFk != '' and orderIdFk!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and orderIdFk = #{orderIdFk} |  |  |  |                 and orderIdFk = #{orderIdFk} | 
			
		
	
	
		
		
			
				
					|  |  | @ -63,7 +63,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findAllByDocids" parameterType="java.util.List" |  |  |  |     <select id="findAllByDocids" parameterType="java.util.List" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         select * from io_order_detail where docid in |  |  |  |         select * from io_order_detail where erpOrderId in | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <foreach item="item" index="index" collection="docids" open="(" separator="," close=")"> |  |  |  |         <foreach item="item" index="index" collection="docids" open="(" separator="," close=")"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item} |  |  |  |             #{item} | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
	
		
		
			
				
					|  |  | @ -71,30 +71,30 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectAllIds" parameterType="java.util.List" |  |  |  |     <select id="selectAllIds" parameterType="java.util.List" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="java.lang.String"> |  |  |  |             resultType="java.lang.String"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select docid from io_order_detail where |  |  |  |         select erpOrderId from io_order_detail where | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         docid in ( |  |  |  |         erpOrderId in ( | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="docids" item="item" index="index" |  |  |  |         <foreach collection="docids" item="item" index="index" | 
			
		
	
		
		
			
				
					
					|  |  |  |                  separator=","> |  |  |  |                  separator=","> | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item} |  |  |  |             #{item} | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         GROUP BY docid |  |  |  |         GROUP BY erpOrderId | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterAllDocid" parameterType="com.glxp.api.admin.entity.inout.FilterErpOrderRequest" |  |  |  |     <select id="filterAllDocid" parameterType="com.glxp.api.admin.entity.inout.FilterErpOrderRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="java.lang.String"> |  |  |  |             resultType="java.lang.String"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select docid from io_order_detail |  |  |  |         select erpOrderId from io_order_detail | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="orderId != '' and orderId!=null"> |  |  |  |             <if test="orderId != '' and orderId!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and orderIdFk = #{orderId} |  |  |  |                 and orderIdFk = #{orderId} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         group by docid |  |  |  |         group by erpOrderId | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <!-- and dtlgoodsqty=count--> |  |  |  |     <!-- and dtlgoodsqty=count--> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterAllDocidE" parameterType="com.glxp.api.admin.entity.inout.FilterErpOrderRequest" |  |  |  |     <select id="filterAllDocidE" parameterType="com.glxp.api.admin.entity.inout.FilterErpOrderRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select docid,orderIdFk from io_order_detail |  |  |  |         select erpOrderId,orderIdFk from io_order_detail | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="orderId != '' and orderId!=null"> |  |  |  |             <if test="orderId != '' and orderId!=null"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -102,7 +102,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         group by docid |  |  |  |         group by erpOrderId | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertErpOrder" keyProperty="id" parameterType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> |  |  |  |     <insert id="insertErpOrder" keyProperty="id" parameterType="com.glxp.api.admin.entity.inout.ErpOrderEntity"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -168,7 +168,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE id = #{id} |  |  |  |         WHERE id = #{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </update> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteById" parameterType="Map"> |  |  |  |     <delete id="deleteById" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE FROM io_order_detail  WHERE docid =  #{id} |  |  |  |         DELETE FROM io_order_detail  WHERE erpOrderId =  #{id} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteByPrimiyId" parameterType="Map"> |  |  |  |     <delete id="deleteByPrimiyId" parameterType="Map"> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |