|  |  | @ -106,12 +106,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.basicPrductRemak8, |  |  |  |                basic_products.basicPrductRemak8, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_corp.name      companyName |  |  |  |                basic_corp.name      companyName | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM company_product_relevance |  |  |  |         FROM company_product_relevance | 
			
		
	
		
		
			
				
					
					|  |  |  |                      inner JOIN basic_udirel |  |  |  |                  inner JOIN basic_udirel | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 ON company_product_relevance.udiRlIdFk = basic_udirel.id |  |  |  |                             ON company_product_relevance.udiRlIdFk = basic_udirel.id | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      inner JOIN basic_products |  |  |  |                  inner JOIN basic_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 ON basic_udirel.uuid = basic_products.uuid |  |  |  |                             ON basic_udirel.uuid = basic_products.uuid | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId |  |  |  |                  left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      left join basic_hosp_type bht on basic_udirel.relCode = bht.code |  |  |  |                  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}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -127,19 +127,19 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="unionCode != '' and unionCode != null"> |  |  |  |             <if test="unionCode != '' and unionCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and ( |  |  |  |                 and ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                         nameCode LIKE concat('%', #{unionCode}, '%') |  |  |  |                             nameCode LIKE concat('%', #{unionCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                 or basic_products.ybbm LIKE concat('%', #{unionCode}, '%') |  |  |  |                         or basic_products.ybbm LIKE concat('%', #{unionCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                 or basic_products.sptm LIKE concat('%', #{unionCode}, '%') |  |  |  |                         or basic_products.sptm LIKE concat('%', #{unionCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         ) |  |  |  |                     ) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thrPiId != '' and thrPiId != null"> |  |  |  |             <if test="thrPiId != '' and thrPiId != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and ( |  |  |  |                 and ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                         basic_udirel.thirdId LIKE concat('%', #{thrPiId}, '%') |  |  |  |                             basic_udirel.thirdId LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                 or basic_udirel.thirdId1 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                         or basic_udirel.thirdId1 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                 or basic_udirel.thirdId2 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                         or basic_udirel.thirdId2 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                 or basic_udirel.thirdId3 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                         or basic_udirel.thirdId3 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                 or basic_udirel.thirdId4 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                         or basic_udirel.thirdId4 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         ) |  |  |  |                     ) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="uuid != '' and uuid != null"> |  |  |  |             <if test="uuid != '' and uuid != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_udirel.uuid = #{uuid} |  |  |  |                 AND basic_udirel.uuid = #{uuid} | 
			
		
	
	
		
		
			
				
					|  |  | @ -284,9 +284,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertCompanyProductRelevance" |  |  |  |     <insert id="insertCompanyProductRelevance" | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRlSupEntity"> |  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRlSupEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace |  |  |  |         replace | 
			
		
	
		
		
			
				
					
					|  |  |  |                 INTO company_product_relevance(customerId, productId, enterpriseId, registrationId, |  |  |  |             INTO company_product_relevance(customerId, productId, enterpriseId, registrationId, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                                createTime, updateTime, auditStatus, productUuid, udiRlIdFk, unitFk, |  |  |  |                                            createTime, updateTime, auditStatus, productUuid, udiRlIdFk, unitFk, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                                price, createUser, updateUser) |  |  |  |                                            price, createUser, updateUser) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         values (#{customerId}, |  |  |  |         values (#{customerId}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{productId}, |  |  |  |                 #{productId}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{enterpriseId}, |  |  |  |                 #{enterpriseId}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -306,9 +306,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="importCompanyProductRelevance" |  |  |  |     <insert id="importCompanyProductRelevance" | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRlSupEntity"> |  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRlSupEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace |  |  |  |         replace | 
			
		
	
		
		
			
				
					
					|  |  |  |                 INTO company_product_relevance(id, customerId, productId, enterpriseId, registrationId, |  |  |  |             INTO company_product_relevance(id, customerId, productId, enterpriseId, registrationId, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                                createTime, updateTime, auditStatus, productUuid, udiRlIdFk, unitFk, |  |  |  |                                            createTime, updateTime, auditStatus, productUuid, udiRlIdFk, unitFk, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                                price, createUser, updateUser) |  |  |  |                                            price, createUser, updateUser) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         values (#{id}, |  |  |  |         values (#{id}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{customerId}, |  |  |  |                 #{customerId}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{productId}, |  |  |  |                 #{productId}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -349,4 +349,20 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         from company_product_relevance |  |  |  |         from company_product_relevance | 
			
		
	
		
		
			
				
					
					|  |  |  |         where udiRlIdFk = #{relId} |  |  |  |         where udiRlIdFk = #{relId} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <select id="selectSupRlCount" resultType="java.lang.Long"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         select count(*) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM company_product_relevance | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                  inner JOIN basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             ON company_product_relevance.udiRlIdFk = basic_udirel.id | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                  inner JOIN basic_products ON basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="nameCode != '' and nameCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND nameCode LIKE concat(#{nameCode}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="unitFk != null and unitFk != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 and unitFk = #{unitFk} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |