|  |  | @ -251,6 +251,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest" |  |  |  |     <select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> |  |  |  |             resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select basic_udirel.*, |  |  |  |         select basic_udirel.*, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         bht.name classifyName, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.originUuid, |  |  |  |         basic_products.originUuid, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.nameCode, |  |  |  |         basic_products.nameCode, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.deviceRecordKey, |  |  |  |         basic_products.deviceRecordKey, | 
			
		
	
	
		
		
			
				
					|  |  | @ -288,6 +289,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoBatch, |  |  |  |         basic_products.allowNoBatch, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoExpire, |  |  |  |         basic_products.allowNoExpire, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoProduct, |  |  |  |         basic_products.allowNoProduct, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         basic_products.allowNoSerial, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.spmc, |  |  |  |         basic_products.spmc, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplx, |  |  |  |         basic_products.cplx, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.hchzsb, |  |  |  |         basic_products.hchzsb, | 
			
		
	
	
		
		
			
				
					|  |  | @ -304,6 +306,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_products |  |  |  |         FROM basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |         inner JOIN basic_udirel |  |  |  |         inner JOIN basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |         ON basic_products.uuid = basic_udirel.uuid |  |  |  |         ON basic_products.uuid = basic_udirel.uuid | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         left join basic_hosp_type bht on basic_udirel.relCode = bht.code | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -312,8 +315,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND relCode = #{relCode} |  |  |  |                 AND relCode = #{relCode} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="bindType != '' and bindType != null"> |  |  |  |             <if test="bindType != '' and bindType != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND relCode is null |  |  |  |                 AND (relCode is null | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         or trim(relCode) = '' |  |  |  |                 or trim(relCode) = '') | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="supName != '' and supName != null"> |  |  |  |             <if test="supName != '' and supName != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND supName LIKE concat('%', #{supName}, '%') |  |  |  |                 AND supName LIKE concat('%', #{supName}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -398,6 +401,18 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="id != '' and id != null"> |  |  |  |             <if test="id != '' and id != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_udirel.id = #{id} |  |  |  |                 AND basic_udirel.id = #{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="originUuid != null and originUuid != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 and originUuid = #{originUuid} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="manufactory != null and manufactory != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 and manufactory LIKE concat('%',#{manufactory},'%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="dispatch != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 and basic_udirel.dispatch = #{dispatch} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="groupBuy != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 and basic_udirel.groupBuy = #{groupBuy} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         ORDER BY modifyTime DESC |  |  |  |         ORDER BY modifyTime DESC | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
	
		
		
			
				
					|  |  | @ -761,6 +776,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="relCode != '' and relCode != null"> |  |  |  |             <if test="relCode != '' and relCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 relCode=#{relCode}, |  |  |  |                 relCode=#{relCode}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="needCert != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 needCert=#{needCert}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |         </trim> | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE id = #{id} |  |  |  |         WHERE id = #{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </update> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |