|  |  |  | @ -13,8 +13,17 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="inventoryName != '' and inventoryName != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND inventoryName LIKE concat(#{inventoryName},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdSysFk != '' and thirdSysFk != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND thirdSysFk = #{thirdSysFk} | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="inventoryName != '' and inventoryName != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND inventoryName LIKE concat(#{inventoryName},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="spec != '' and spec != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND spec LIKE concat(#{spec},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="registerCertNo != '' and registerCertNo != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND registerCertNo LIKE concat(#{registerCertNo},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="manufactory != '' and manufactory != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND manufactory = #{manufactory} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  |         ORDER BY updateTime DESC | 
			
		
	
	
		
			
				
					|  |  |  | @ -29,14 +38,14 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         ( | 
			
		
	
		
			
				
					|  |  |  |  |         inventoryCode,inventoryName,count,spec, | 
			
		
	
		
			
				
					|  |  |  |  |         warehouseName,warehouseCode,registerCertNo,manufacturingDate, | 
			
		
	
		
			
				
					|  |  |  |  |         expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime | 
			
		
	
		
			
				
					|  |  |  |  |         expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime,manufactory | 
			
		
	
		
			
				
					|  |  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  |  |         values | 
			
		
	
		
			
				
					|  |  |  |  |             ( | 
			
		
	
		
			
				
					|  |  |  |  |             #{inventoryCode},  #{inventoryName},  #{count},  #{spec}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{warehouseName},  #{warehouseCode},  #{registerCertNo},  #{manufacturingDate}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{expirationDate}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{thirdSysFk},#{batchNo},#{spaceCode},#{spaceName},#{updateTime} | 
			
		
	
		
			
				
					|  |  |  |  |             #{thirdSysFk},#{batchNo},#{spaceCode},#{spaceName},#{updateTime},#{manufactory} | 
			
		
	
		
			
				
					|  |  |  |  |             ) | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -45,7 +54,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         ( | 
			
		
	
		
			
				
					|  |  |  |  |         inventoryCode,inventoryName,count,spec, | 
			
		
	
		
			
				
					|  |  |  |  |         warehouseName,warehouseCode,registerCertNo,manufacturingDate, | 
			
		
	
		
			
				
					|  |  |  |  |         expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime | 
			
		
	
		
			
				
					|  |  |  |  |         expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime,manufactory | 
			
		
	
		
			
				
					|  |  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  |  |         values | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -55,7 +64,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.inventoryCode}, #{item.inventoryName}, #{item.count}, #{item.spec}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.warehouseName}, #{item.warehouseCode}, #{item.registerCertNo}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.manufacturingDate}, #{item.expirationDate}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.thirdSysFk},#{item.batchNo},#{item.spaceCode},#{item.spaceName},#{item.updateTime} | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.thirdSysFk},#{item.batchNo},#{item.spaceCode},#{item.spaceName},#{item.updateTime},#{item.manufactory} | 
			
		
	
		
			
				
					|  |  |  |  |             ) | 
			
		
	
		
			
				
					|  |  |  |  |         </foreach> | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
	
		
			
				
					|  |  |  | @ -86,7 +95,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="spaceName != null">spaceName=#{spaceName},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="updateTime != null">updateTime=#{updateTime},</if> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="manufactory != null">manufactory=#{manufactory},</if> | 
			
		
	
		
			
				
					|  |  |  |  |         </trim> | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE id = #{id} | 
			
		
	
		
			
				
					|  |  |  |  |     </update> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |