|  |  |  | @ -15,7 +15,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         (`action`, mainAction,code, corpOrderId, actor,actDate, | 
			
		
	
		
			
				
					|  |  |  |  |         fromCorpId, fromCorp, | 
			
		
	
		
			
				
					|  |  |  |  |         orderId,batchNo,produceDate,expireDate,serialNo, | 
			
		
	
		
			
				
					|  |  |  |  |         `count`,nameCode,supId,invStorageCode,invWarehouseCode,locStorageCode,relId) | 
			
		
	
		
			
				
					|  |  |  |  |         `count`, reCount, nameCode,supId,invStorageCode,invWarehouseCode,locStorageCode,relId) | 
			
		
	
		
			
				
					|  |  |  |  |         VALUES | 
			
		
	
		
			
				
					|  |  |  |  |         <foreach collection="codes" item="item" index="index" | 
			
		
	
		
			
				
					|  |  |  |  |                  separator=","> | 
			
		
	
	
		
			
				
					|  |  |  | @ -33,7 +33,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.produceDate} | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.expireDate} | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.serialNo} | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.count},#{item.nameCode},#{item.supId}, | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.count} | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.reCount} | 
			
		
	
		
			
				
					|  |  |  |  |             ,#{item.nameCode},#{item.supId}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.invStorageCode},#{item.invWarehouseCode},#{item.locStorageCode},#{item.relId} | 
			
		
	
		
			
				
					|  |  |  |  |             ) | 
			
		
	
		
			
				
					|  |  |  |  |         </foreach> | 
			
		
	
	
		
			
				
					|  |  |  | @ -43,7 +45,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertCodesTempSingle" keyProperty="id" parameterType="com.glxp.api.admin.entity.inout.WarehouseEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         INSERT INTO io_codes_temp(`action`, mainAction, code, corpOrderId, actor, actDate, | 
			
		
	
		
			
				
					|  |  |  |  |                                   fromCorpId, fromCorp, orderId, batchNo, produceDate, expireDate, serialNo, | 
			
		
	
		
			
				
					|  |  |  |  |                                   `count`, nameCode, supId, invStorageCode, invWarehouseCode, locStorageCode, relId) | 
			
		
	
		
			
				
					|  |  |  |  |                                   `count`, reCount, nameCode, supId, invStorageCode, invWarehouseCode, locStorageCode, relId) | 
			
		
	
		
			
				
					|  |  |  |  |         values (#{action}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{mainAction}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{code}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -57,7 +59,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 #{produceDate}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{expireDate}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{serialNo}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{count}, #{nameCode}, #{supId}, #{invStorageCode}, #{invWarehouseCode}, #{locStorageCode}, #{relId}) | 
			
		
	
		
			
				
					|  |  |  |  |                 #{count}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{reCount}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{nameCode}, #{supId}, #{invStorageCode}, #{invWarehouseCode}, #{locStorageCode}, #{relId}) | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -67,7 +71,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         ignore | 
			
		
	
		
			
				
					|  |  |  |  |         INTO io_codes_temp(`action`, mainAction, code, corpOrderId, actor, actDate, | 
			
		
	
		
			
				
					|  |  |  |  |                                   fromCorpId, fromCorp, orderId, batchNo, produceDate, expireDate, serialNo, | 
			
		
	
		
			
				
					|  |  |  |  |                                   `count`, nameCode, supId, invStorageCode, invWarehouseCode, locStorageCode, relId) | 
			
		
	
		
			
				
					|  |  |  |  |                                   `count`, reCount, nameCode, supId, invStorageCode, invWarehouseCode, locStorageCode, relId) | 
			
		
	
		
			
				
					|  |  |  |  |         values ( | 
			
		
	
		
			
				
					|  |  |  |  |         #{action}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{mainAction}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -83,6 +87,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         #{expireDate}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{serialNo}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{count}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{reCount}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{nameCode}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{supId}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{invStorageCode}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -131,6 +136,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         UPDATE io_codes_temp | 
			
		
	
		
			
				
					|  |  |  |  |         <set> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="count != null">`count`=#{count},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="reCount != null">`reCount`=#{reCount},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="action != null">`action`=#{action},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="mainAction != null">`mainAction`=#{mainAction},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="fromCorpId != null">`fromCorpId`=#{fromCorpId},</if> | 
			
		
	
	
		
			
				
					|  |  |  | @ -162,6 +168,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="serialNo != null">`serialNo`=#{serialNo},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="relId != null">`relId`=#{relId},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="count != null">`count`=#{count},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="reCount != null">`reCount`=#{reCount},</if> | 
			
		
	
		
			
				
					|  |  |  |  |         </set> | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE id=#{id} | 
			
		
	
		
			
				
					|  |  |  |  |     </update> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |