|  |  | @ -67,10 +67,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.categoryName, |  |  |  |                basic_products.categoryName, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.cphhhbh, |  |  |  |                basic_products.cphhhbh, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhltcjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhsycjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.bzgg |  |  |  |                basic_products.bzgg | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_udirel |  |  |  |         FROM basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |                      inner JOIN basic_products |  |  |  |                  inner JOIN basic_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 ON basic_products.uuid = basic_udirel.uuid |  |  |  |                             ON basic_products.uuid = basic_udirel.uuid | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -135,8 +137,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="java.lang.String"> |  |  |  |             resultType="java.lang.String"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select basic_products.packLevel |  |  |  |         select basic_products.packLevel | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_udirel |  |  |  |         FROM basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |                      inner JOIN basic_products |  |  |  |                  inner JOIN basic_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 ON basic_products.uuid = basic_udirel.uuid |  |  |  |                             ON basic_products.uuid = basic_udirel.uuid | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="nameCode != '' and nameCode != null"> |  |  |  |             <if test="nameCode != '' and nameCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_products.nameCode = #{nameCode} |  |  |  |                 AND basic_products.nameCode = #{nameCode} | 
			
		
	
	
		
		
			
				
					|  |  | @ -192,6 +194,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.hchzsb, |  |  |  |                basic_products.hchzsb, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.cpdls, |  |  |  |                basic_products.cpdls, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.price, |  |  |  |                basic_products.price, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhltcjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhsycjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.basicPrductRemak1, |  |  |  |                basic_products.basicPrductRemak1, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.basicPrductRemak2, |  |  |  |                basic_products.basicPrductRemak2, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.basicPrductRemak3, |  |  |  |                basic_products.basicPrductRemak3, | 
			
		
	
	
		
		
			
				
					|  |  | @ -201,7 +205,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.basicPrductRemak7, |  |  |  |                basic_products.basicPrductRemak7, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.basicPrductRemak8 |  |  |  |                basic_products.basicPrductRemak8 | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_udirel |  |  |  |         FROM basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |                      inner JOIN basic_products ON basic_products.uuid = basic_udirel.uuid |  |  |  |                  inner JOIN basic_products ON basic_products.uuid = basic_udirel.uuid | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -328,15 +332,17 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.syqsfxyjxmj, |  |  |  |                basic_products.syqsfxyjxmj, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.categoryName, |  |  |  |                basic_products.categoryName, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhltcjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhsycjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.cphhhbh, |  |  |  |                basic_products.cphhhbh, | 
			
		
	
		
		
			
				
					
					|  |  |  |                company_product_relevance.unitFk, |  |  |  |                company_product_relevance.unitFk, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_corp.name companyName |  |  |  |                basic_corp.name companyName | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_udirel |  |  |  |         FROM basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |                      inner JOIN basic_products |  |  |  |                  inner JOIN basic_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 ON basic_products.uuid = basic_udirel.uuid |  |  |  |                             ON basic_products.uuid = basic_udirel.uuid | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      left join company_product_relevance |  |  |  |                  left join company_product_relevance | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 on basic_udirel.id = company_product_relevance.udiRlIdFk |  |  |  |                            on basic_udirel.id = company_product_relevance.udiRlIdFk | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId |  |  |  |                  left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -406,91 +412,93 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <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, |  |  |  |                bht.name             classifyName, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.originUuid, |  |  |  |                basic_products.originUuid, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.nameCode, |  |  |  |                basic_products.nameCode, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.deviceRecordKey, |  |  |  |                basic_products.deviceRecordKey, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packRatio, |  |  |  |                basic_products.packRatio, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packUnit, |  |  |  |                basic_products.packUnit, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packLevel, |  |  |  |                basic_products.packLevel, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjsl, |  |  |  |                basic_products.bhxjsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhzxxsbzsl, |  |  |  |                basic_products.bhzxxsbzsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zxxsbzbhsydysl, |  |  |  |                basic_products.zxxsbzbhsydysl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjcpbm, |  |  |  |                basic_products.bhxjcpbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bzcj, |  |  |  |                basic_products.bzcj, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpmctymc, |  |  |  |                basic_products.cpmctymc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplb, |  |  |  |                basic_products.cplb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.flbm, |  |  |  |                basic_products.flbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ggxh, |  |  |  |                basic_products.ggxh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.qxlb, |  |  |  |                basic_products.qxlb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.tyshxydm, |  |  |  |                basic_products.tyshxydm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ylqxzcrbarmc, |  |  |  |                basic_products.ylqxzcrbarmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zczbhhzbapzbh, |  |  |  |                basic_products.zczbhhzbapzbh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ylqxzcrbarywmc, |  |  |  |                basic_products.ylqxzcrbarywmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sydycpbs, |  |  |  |                basic_products.sydycpbs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sjcpbm, |  |  |  |                basic_products.sjcpbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.versionNumber, |  |  |  |                basic_products.versionNumber, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.diType, |  |  |  |                basic_products.diType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ybbm, |  |  |  |                basic_products.ybbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sptm, |  |  |  |                basic_products.sptm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.manufactory, |  |  |  |                basic_products.manufactory, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.measname, |  |  |  |                basic_products.measname, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.productType, |  |  |  |                basic_products.productType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhph, |  |  |  |                basic_products.scbssfbhph, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhxlh, |  |  |  |                basic_products.scbssfbhxlh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhscrq, |  |  |  |                basic_products.scbssfbhscrq, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhsxrq, |  |  |  |                basic_products.scbssfbhsxrq, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpms, |  |  |  |                basic_products.cpms, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoBatch, |  |  |  |                basic_products.allowNoBatch, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoExpire, |  |  |  |                basic_products.allowNoExpire, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoProduct, |  |  |  |                basic_products.allowNoProduct, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoSerial, |  |  |  |                basic_products.allowNoSerial, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.spmc, |  |  |  |                basic_products.spmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplx, |  |  |  |                basic_products.cplx, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.hchzsb, |  |  |  |                basic_products.hchzsb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpdls, |  |  |  |                basic_products.cpdls, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.price, |  |  |  |                basic_products.price, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak1, |  |  |  |                basic_products.basicPrductRemak1, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak2, |  |  |  |                basic_products.basicPrductRemak2, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak3, |  |  |  |                basic_products.basicPrductRemak3, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak4, |  |  |  |                basic_products.basicPrductRemak4, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak5, |  |  |  |                basic_products.basicPrductRemak5, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak6, |  |  |  |                basic_products.basicPrductRemak6, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak7, |  |  |  |                basic_products.basicPrductRemak7, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak8, |  |  |  |                basic_products.basicPrductRemak8, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfwblztlcp, |  |  |  |                basic_products.sfwblztlcp, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cgzmraqxgxx, |  |  |  |                basic_products.cgzmraqxgxx, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfbjwycxsy, |  |  |  |                basic_products.sfbjwycxsy, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zdcfsycs, |  |  |  |                basic_products.zdcfsycs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfwwjbz, |  |  |  |                basic_products.sfwwjbz, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.syqsfxyjxmj, |  |  |  |                basic_products.syqsfxyjxmj, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bzgg, |  |  |  |                basic_products.bzgg, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.id as productId, |  |  |  |                basic_products.id as productId, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.categoryName, |  |  |  |                basic_products.categoryName, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.catalogname1, |  |  |  |                basic_products.catalogname1, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.catalogname2, |  |  |  |                basic_products.catalogname2, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.catalogname3, |  |  |  |                basic_products.catalogname3, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.matrial, |  |  |  |                basic_products.matrial, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.requireScanCode, |  |  |  |                basic_products.requireScanCode, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.prepnSpec, |  |  |  |                basic_products.prepnSpec, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.levelUnit, |  |  |  |                basic_products.levelUnit, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.prepnUnit, |  |  |  |                basic_products.prepnUnit, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.majorStatus, |  |  |  |                basic_products.majorStatus, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.physicType, |  |  |  |                basic_products.physicType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packMatrial, |  |  |  |                basic_products.packMatrial, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.storageCondition, |  |  |  |                basic_products.storageCondition, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.transportCondition, |  |  |  |                basic_products.transportCondition, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.indate, |  |  |  |                basic_products.indate, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.majorType, |  |  |  |                basic_products.majorType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.medicareType, |  |  |  |                basic_products.medicareType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.workPlaceCount, |  |  |  |                basic_products.workPlaceCount, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         th.hsmc hslbName |  |  |  |                basic_products.bhltcjsl, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhsycjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                th.hsmc              hslbName | 
			
		
	
		
		
			
				
					
					|  |  |  |         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 |  |  |  |                  left join basic_hosp_type bht on basic_udirel.relCode = bht.code | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left join thr_hslb th on basic_products.basicPrductRemak8 = th.hsbm |  |  |  |                  left join thr_hslb th on basic_products.basicPrductRemak8 = th.hsbm | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -503,22 +511,22 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </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}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="nameCode != '' and nameCode != null"> |  |  |  |             <if test="nameCode != '' and nameCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ( |  |  |  |                 AND ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                 nameCode LIKE concat('%', #{nameCode}, '%') |  |  |  |                         nameCode LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or ybbm LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or ybbm LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or sptm LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or sptm LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or basic_udirel.mainId LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or basic_udirel.mainId LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or basic_udirel.thirdId LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or basic_udirel.thirdId LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or basic_udirel.thirdId1 LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or basic_udirel.thirdId1 LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or basic_udirel.thirdId2 LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or basic_udirel.thirdId2 LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or basic_udirel.thirdId3 LIKE concat('%', #{nameCode}, '%') |  |  |  |                         or basic_udirel.thirdId3 LIKE concat('%', #{nameCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or basic_udirel.thirdId4 LIKE concat('%', #{nameCode}, '%')) |  |  |  |                         or basic_udirel.thirdId4 LIKE concat('%', #{nameCode}, '%')) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="cpmctymc != '' and cpmctymc != null"> |  |  |  |             <if test="cpmctymc != '' and cpmctymc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_products.cpmctymc LIKE concat('%', #{cpmctymc}, '%') |  |  |  |                 AND basic_products.cpmctymc LIKE concat('%', #{cpmctymc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -531,9 +539,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </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 ybbm LIKE concat('%', #{unionCode}, '%') |  |  |  |                         or ybbm LIKE concat('%', #{unionCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or sptm LIKE concat('%', #{unionCode}, '%')) |  |  |  |                         or sptm LIKE concat('%', #{unionCode}, '%')) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="isDisable == false"> |  |  |  |             <if test="isDisable == false"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false) |  |  |  |                 AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false) | 
			
		
	
	
		
		
			
				
					|  |  | @ -543,10 +551,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thrPiId != '' and thrPiId != null"> |  |  |  |             <if test="thrPiId != '' and thrPiId != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and (thirdId LIKE concat('%', #{thrPiId}, '%') |  |  |  |                 and (thirdId LIKE concat('%', #{thrPiId}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |                 or thirdId1 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                     or thirdId1 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or thirdId2 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                     or thirdId2 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or thirdId3 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                     or thirdId3 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or thirdId4 LIKE concat('%', #{thrPiId}, '%')) |  |  |  |                     or 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} | 
			
		
	
	
		
		
			
				
					|  |  | @ -565,7 +573,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 1"> |  |  |  |             <if test="filterType != null and filterType == 1"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or |  |  |  |                 AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or | 
			
		
	
		
		
			
				
					
					|  |  |  |                 thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '') |  |  |  |                      thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 <if test="productsType == 1"> |  |  |  |                 <if test="productsType == 1"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </if> |  |  |  |                 </if> | 
			
		
	
	
		
		
			
				
					|  |  | @ -693,13 +701,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.sfwwjbz, |  |  |  |                basic_products.sfwwjbz, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.syqsfxyjxmj, |  |  |  |                basic_products.syqsfxyjxmj, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhltcjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhsycjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.categoryName, |  |  |  |                basic_products.categoryName, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.cphhhbh |  |  |  |                basic_products.cphhhbh | 
			
		
	
		
		
			
				
					
					|  |  |  |         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 |  |  |  |                  left join basic_hosp_type bht on basic_udirel.relCode = bht.code | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      inner join company_product_relevance on company_product_relevance.udiRlIdFk = basic_udirel.id |  |  |  |                  inner join company_product_relevance on company_product_relevance.udiRlIdFk = basic_udirel.id | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -712,7 +722,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </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}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -729,18 +739,18 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="unionCode != '' and unionCode != null"> |  |  |  |             <if test="unionCode != '' and unionCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and ( |  |  |  |                 and ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                             nameCode LIKE concat('%', #{unionCode}, '%') |  |  |  |                             nameCode LIKE concat('%', #{unionCode}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |                                     or ybbm LIKE concat('%', #{unionCode}, '%') |  |  |  |                             or ybbm LIKE concat('%', #{unionCode}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                     or sptm LIKE concat('%', #{unionCode}, '%')) |  |  |  |                             or sptm LIKE concat('%', #{unionCode}, '%')) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="isDisable == false"> |  |  |  |             <if test="isDisable == false"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false) |  |  |  |                 AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false) | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thrPiId != '' and thrPiId != null"> |  |  |  |             <if test="thrPiId != '' and thrPiId != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and (thirdId LIKE concat('%', #{thrPiId}, '%') |  |  |  |                 and (thirdId LIKE concat('%', #{thrPiId}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |                         or thirdId1 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                     or thirdId1 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         or thirdId2 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                     or thirdId2 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         or thirdId3 LIKE concat('%', #{thrPiId}, '%') |  |  |  |                     or thirdId3 LIKE concat('%', #{thrPiId}, '%') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         or thirdId4 LIKE concat('%', #{thrPiId}, '%')) |  |  |  |                     or 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} | 
			
		
	
	
		
		
			
				
					|  |  | @ -760,30 +770,30 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 1"> |  |  |  |             <if test="filterType != null and filterType == 1"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or |  |  |  |                 AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or | 
			
		
	
		
		
			
				
					
					|  |  |  |                      thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '') |  |  |  |                      thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '') | 
			
		
	
		
		
			
				
					
					|  |  |  |                         and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 2"> |  |  |  |             <if test="filterType != null and filterType == 2"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_products.originUuid is NULL |  |  |  |                 AND basic_products.originUuid is NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 3"> |  |  |  |             <if test="filterType != null and filterType == 3"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND (mainId is NULL or mainId = '') |  |  |  |                 AND (mainId is NULL or mainId = '') | 
			
		
	
		
		
			
				
					
					|  |  |  |                         and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 4"> |  |  |  |             <if test="filterType != null and filterType == 4"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdId1 is NULL |  |  |  |                 AND thirdId1 is NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |                         and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 5"> |  |  |  |             <if test="filterType != null and filterType == 5"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdId2 is NULL |  |  |  |                 AND thirdId2 is NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |                         and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 6"> |  |  |  |             <if test="filterType != null and filterType == 6"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdId3 is NULL |  |  |  |                 AND thirdId3 is NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |                         and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 7"> |  |  |  |             <if test="filterType != null and filterType == 7"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdId4 is NULL |  |  |  |                 AND thirdId4 is NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |                         and basic_products.originUuid <![CDATA[<>]]> '' |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="filterType != null and filterType == 10"> |  |  |  |             <if test="filterType != null and filterType == 10"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_udirel.updateTime is NULL |  |  |  |                 AND basic_udirel.updateTime is NULL | 
			
		
	
	
		
		
			
				
					|  |  | @ -869,10 +879,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.sfwwjbz, |  |  |  |                basic_products.sfwwjbz, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.syqsfxyjxmj, |  |  |  |                basic_products.syqsfxyjxmj, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhltcjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.bhsycjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.categoryName, |  |  |  |                basic_products.categoryName, | 
			
		
	
		
		
			
				
					
					|  |  |  |                basic_products.cphhhbh |  |  |  |                basic_products.cphhhbh | 
			
		
	
		
		
			
				
					
					|  |  |  |         from basic_udirel |  |  |  |         from basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |                      INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid |  |  |  |                  INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="uuid != '' and uuid != null"> |  |  |  |             <if test="uuid != '' and uuid != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_udirel.uuid = #{uuid} |  |  |  |                 AND basic_udirel.uuid = #{uuid} | 
			
		
	
	
		
		
			
				
					|  |  | @ -1057,15 +1069,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertUdiRelevanceignore" keyProperty="id" |  |  |  |     <insert id="insertUdiRelevanceignore" keyProperty="id" | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity"> |  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert |  |  |  |         insert | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ignore |  |  |  |             ignore | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         INTO basic_udirel |  |  |  |         INTO basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |                 (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, |  |  |  |         (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  isLock, |  |  |  |          isLock, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, |  |  |  |          lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  updateTime, modifyTime, |  |  |  |          updateTime, modifyTime, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  createUser, |  |  |  |          createUser, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  updateUser, |  |  |  |          updateUser, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  remark, useExpireTime, dispatch, groupBuy, needCert,isStack) |  |  |  |          remark, useExpireTime, dispatch, groupBuy, needCert, isStack) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         values (#{id}, |  |  |  |         values (#{id}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{uuid}, |  |  |  |                 #{uuid}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{mainId}, |  |  |  |                 #{mainId}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -1088,7 +1100,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{modifyTime}, |  |  |  |                 #{modifyTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{createUser}, |  |  |  |                 #{createUser}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{updateUser}, |  |  |  |                 #{updateUser}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert},#{isStack}) |  |  |  |                 #{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert}, #{isStack}) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteById" parameterType="Map"> |  |  |  |     <delete id="deleteById" parameterType="Map"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -1268,15 +1280,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="importUdiRelevance" parameterType="java.util.List"> |  |  |  |     <insert id="importUdiRelevance" parameterType="java.util.List"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace |  |  |  |         replace | 
			
		
	
		
		
			
				
					
					|  |  |  |                 into basic_udirel |  |  |  |             into basic_udirel | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, |  |  |  |         (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  isLock, |  |  |  |          isLock, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, |  |  |  |          lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  updateTime, modifyTime, |  |  |  |          updateTime, modifyTime, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  createUser, |  |  |  |          createUser, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  updateUser, |  |  |  |          updateUser, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  remark, useExpireTime, dispatch, groupBuy, needCert,isStack) |  |  |  |          remark, useExpireTime, dispatch, groupBuy, needCert, isStack) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 values |  |  |  |         values | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="udiRelevanceEntities" item="item" index="index" separator=","> |  |  |  |         <foreach collection="udiRelevanceEntities" item="item" index="index" separator=","> | 
			
		
	
		
		
			
				
					
					|  |  |  |             (#{item.id}, |  |  |  |             (#{item.id}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -1301,76 +1313,79 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.modifyTime}, |  |  |  |              #{item.modifyTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.createUser}, |  |  |  |              #{item.createUser}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.updateUser}, |  |  |  |              #{item.updateUser}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy}, #{item.needCert},#{item.isStack}) |  |  |  |              #{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy}, #{item.needCert}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |              #{item.isStack}) | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectGroupByNameCode" parameterType="java.lang.String" |  |  |  |     <select id="selectGroupByNameCode" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> |  |  |  |             resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select basic_udirel.*, |  |  |  |         select basic_udirel.*, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.originUuid, |  |  |  |                basic_products.originUuid, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.nameCode, |  |  |  |                basic_products.nameCode, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.deviceRecordKey, |  |  |  |                basic_products.deviceRecordKey, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packRatio, |  |  |  |                basic_products.packRatio, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packUnit, |  |  |  |                basic_products.packUnit, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packLevel, |  |  |  |                basic_products.packLevel, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjsl, |  |  |  |                basic_products.bhxjsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhzxxsbzsl, |  |  |  |                basic_products.bhzxxsbzsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zxxsbzbhsydysl, |  |  |  |                basic_products.zxxsbzbhsydysl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjcpbm, |  |  |  |                basic_products.bhxjcpbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bzcj, |  |  |  |                basic_products.bzcj, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpmctymc, |  |  |  |                basic_products.cpmctymc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplb, |  |  |  |                basic_products.cplb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.flbm, |  |  |  |                basic_products.flbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ggxh, |  |  |  |                basic_products.ggxh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.qxlb, |  |  |  |                basic_products.qxlb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.tyshxydm, |  |  |  |                basic_products.tyshxydm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ylqxzcrbarmc, |  |  |  |                basic_products.ylqxzcrbarmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zczbhhzbapzbh, |  |  |  |                basic_products.zczbhhzbapzbh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ylqxzcrbarywmc, |  |  |  |                basic_products.ylqxzcrbarywmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sydycpbs, |  |  |  |                basic_products.sydycpbs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sjcpbm, |  |  |  |                basic_products.sjcpbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.versionNumber, |  |  |  |                basic_products.versionNumber, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.diType, |  |  |  |                basic_products.diType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ybbm, |  |  |  |                basic_products.ybbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sptm, |  |  |  |                basic_products.sptm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.manufactory, |  |  |  |                basic_products.manufactory, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.measname, |  |  |  |                basic_products.measname, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.productType, |  |  |  |                basic_products.productType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhph, |  |  |  |                basic_products.scbssfbhph, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhxlh, |  |  |  |                basic_products.scbssfbhxlh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhscrq, |  |  |  |                basic_products.scbssfbhscrq, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhsxrq, |  |  |  |                basic_products.scbssfbhsxrq, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpms, |  |  |  |                basic_products.cpms, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoBatch, |  |  |  |                basic_products.allowNoBatch, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoExpire, |  |  |  |                basic_products.allowNoExpire, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoProduct, |  |  |  |                basic_products.allowNoProduct, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoSerial, |  |  |  |                basic_products.allowNoSerial, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.spmc, |  |  |  |                basic_products.spmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplx, |  |  |  |                basic_products.cplx, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.hchzsb, |  |  |  |                basic_products.hchzsb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpdls, |  |  |  |                basic_products.cpdls, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.price, |  |  |  |                basic_products.price, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak1, |  |  |  |                basic_products.basicPrductRemak1, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak2, |  |  |  |                basic_products.basicPrductRemak2, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak3, |  |  |  |                basic_products.basicPrductRemak3, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak4, |  |  |  |                basic_products.basicPrductRemak4, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak5, |  |  |  |                basic_products.basicPrductRemak5, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak6, |  |  |  |                basic_products.basicPrductRemak6, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak7, |  |  |  |                basic_products.basicPrductRemak7, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak8, |  |  |  |                basic_products.basicPrductRemak8, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfwblztlcp, |  |  |  |                basic_products.sfwblztlcp, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cgzmraqxgxx, |  |  |  |                basic_products.cgzmraqxgxx, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfbjwycxsy, |  |  |  |                basic_products.sfbjwycxsy, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zdcfsycs, |  |  |  |                basic_products.zdcfsycs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfwwjbz, |  |  |  |                basic_products.sfwwjbz, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.syqsfxyjxmj, |  |  |  |                basic_products.syqsfxyjxmj, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.categoryName, |  |  |  |                basic_products.bhltcjsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cphhhbh |  |  |  |                basic_products.bhsycjsl, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.categoryName, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.cphhhbh | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_udirel |  |  |  |         FROM basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |         INNER JOIN basic_products |  |  |  |                  INNER JOIN basic_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         on basic_udirel.uuid = basic_products.uuid |  |  |  |                             on basic_udirel.uuid = basic_products.uuid | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="nameCode != null"> |  |  |  |             <if test="nameCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND nameCode = #{nameCode} |  |  |  |                 AND nameCode = #{nameCode} | 
			
		
	
	
		
		
			
				
					|  |  | @ -1392,14 +1407,14 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectProductNameByRelId" resultType="java.lang.String"> |  |  |  |     <select id="selectProductNameByRelId" resultType="java.lang.String"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select basic_products.cpmctymc |  |  |  |         select basic_products.cpmctymc | 
			
		
	
		
		
			
				
					
					|  |  |  |         from basic_udirel |  |  |  |         from basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join basic_products on basic_udirel.uuid = basic_products.uuid |  |  |  |                  left join basic_products on basic_udirel.uuid = basic_products.uuid | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         where basic_udirel.id = #{relId} |  |  |  |         where basic_udirel.id = #{relId} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <update id="updateBatchById" parameterType="java.util.List"> |  |  |  |     <update id="updateBatchById" parameterType="java.util.List"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="list" item="item" separator=";"> |  |  |  |         <foreach collection="list" item="item" separator=";"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             update |  |  |  |             update | 
			
		
	
		
		
			
				
					
					|  |  |  |             basic_udirel |  |  |  |                 basic_udirel | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             set `relCode` = #{item.relCode} |  |  |  |             set `relCode` = #{item.relCode} | 
			
		
	
		
		
			
				
					
					|  |  |  |             where id = #{item.id} |  |  |  |             where id = #{item.id} | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
	
		
		
			
				
					|  |  | @ -1421,82 +1436,84 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectRelIdByNameCode" resultType="java.lang.String"> |  |  |  |     <select id="selectRelIdByNameCode" resultType="java.lang.String"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select basic_udirel.id |  |  |  |         select basic_udirel.id | 
			
		
	
		
		
			
				
					
					|  |  |  |         from basic_udirel |  |  |  |         from basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |         inner join basic_products on basic_udirel.uuid = basic_products.uuid |  |  |  |                  inner join basic_products on basic_udirel.uuid = basic_products.uuid | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         where basic_products.nameCode = #{nameCode} |  |  |  |         where basic_products.nameCode = #{nameCode} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectOneUdiJoinSup" resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> |  |  |  |     <select id="selectOneUdiJoinSup" resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select basic_udirel.*, |  |  |  |         select basic_udirel.*, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.originUuid, |  |  |  |                basic_products.originUuid, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.nameCode, |  |  |  |                basic_products.nameCode, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.deviceRecordKey, |  |  |  |                basic_products.deviceRecordKey, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packRatio, |  |  |  |                basic_products.packRatio, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packUnit, |  |  |  |                basic_products.packUnit, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.packLevel, |  |  |  |                basic_products.packLevel, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjsl, |  |  |  |                basic_products.bhxjsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhzxxsbzsl, |  |  |  |                basic_products.bhzxxsbzsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zxxsbzbhsydysl, |  |  |  |                basic_products.zxxsbzbhsydysl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjcpbm, |  |  |  |                basic_products.bhxjcpbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bzcj, |  |  |  |                basic_products.bzcj, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpmctymc, |  |  |  |                basic_products.cpmctymc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplb, |  |  |  |                basic_products.cplb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.flbm, |  |  |  |                basic_products.flbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ggxh, |  |  |  |                basic_products.ggxh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.qxlb, |  |  |  |                basic_products.qxlb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.tyshxydm, |  |  |  |                basic_products.tyshxydm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ylqxzcrbarmc, |  |  |  |                basic_products.ylqxzcrbarmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zczbhhzbapzbh, |  |  |  |                basic_products.zczbhhzbapzbh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ylqxzcrbarywmc, |  |  |  |                basic_products.ylqxzcrbarywmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sydycpbs, |  |  |  |                basic_products.sydycpbs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sjcpbm, |  |  |  |                basic_products.sjcpbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.versionNumber, |  |  |  |                basic_products.versionNumber, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.diType, |  |  |  |                basic_products.diType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.ybbm, |  |  |  |                basic_products.ybbm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sptm, |  |  |  |                basic_products.sptm, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.manufactory, |  |  |  |                basic_products.manufactory, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.measname, |  |  |  |                basic_products.measname, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.productType, |  |  |  |                basic_products.productType, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhph, |  |  |  |                basic_products.scbssfbhph, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhxlh, |  |  |  |                basic_products.scbssfbhxlh, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhscrq, |  |  |  |                basic_products.scbssfbhscrq, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.scbssfbhsxrq, |  |  |  |                basic_products.scbssfbhsxrq, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpms, |  |  |  |                basic_products.cpms, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoBatch, |  |  |  |                basic_products.allowNoBatch, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoExpire, |  |  |  |                basic_products.allowNoExpire, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoProduct, |  |  |  |                basic_products.allowNoProduct, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.allowNoSerial, |  |  |  |                basic_products.allowNoSerial, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.spmc, |  |  |  |                basic_products.spmc, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cplx, |  |  |  |                basic_products.cplx, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.hchzsb, |  |  |  |                basic_products.hchzsb, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpdls, |  |  |  |                basic_products.cpdls, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         company_product_relevance.price, |  |  |  |                company_product_relevance.price, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak1, |  |  |  |                basic_products.basicPrductRemak1, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak2, |  |  |  |                basic_products.basicPrductRemak2, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak3, |  |  |  |                basic_products.basicPrductRemak3, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak4, |  |  |  |                basic_products.basicPrductRemak4, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak5, |  |  |  |                basic_products.basicPrductRemak5, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak6, |  |  |  |                basic_products.basicPrductRemak6, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak7, |  |  |  |                basic_products.basicPrductRemak7, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.basicPrductRemak8, |  |  |  |                basic_products.basicPrductRemak8, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfwblztlcp, |  |  |  |                basic_products.sfwblztlcp, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cgzmraqxgxx, |  |  |  |                basic_products.cgzmraqxgxx, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfbjwycxsy, |  |  |  |                basic_products.sfbjwycxsy, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.zdcfsycs, |  |  |  |                basic_products.zdcfsycs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.sfwwjbz, |  |  |  |                basic_products.sfwwjbz, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.syqsfxyjxmj, |  |  |  |                basic_products.syqsfxyjxmj, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.mjfs, |  |  |  |                basic_products.mjfs, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.categoryName, |  |  |  |                basic_products.categoryName, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.requireScanCode, |  |  |  |                basic_products.requireScanCode, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         company_product_relevance.unitFk, |  |  |  |                basic_products.bhltcjsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_corp.name companyName, |  |  |  |                basic_products.bhsycjsl, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cphhhbh |  |  |  |                company_product_relevance.unitFk, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_corp.name companyName, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                basic_products.cphhhbh | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM basic_udirel |  |  |  |         FROM basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |         inner JOIN basic_products |  |  |  |                  inner JOIN basic_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ON basic_products.uuid = basic_udirel.uuid |  |  |  |                             ON basic_products.uuid = basic_udirel.uuid | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left join company_product_relevance |  |  |  |                  left join company_product_relevance | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         on basic_udirel.id = company_product_relevance.udiRlIdFk |  |  |  |                            on basic_udirel.id = company_product_relevance.udiRlIdFk | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left JOIN basic_corp |  |  |  |                  left JOIN basic_corp | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         on basic_corp.erpId = company_product_relevance.customerId |  |  |  |                            on basic_corp.erpId = company_product_relevance.customerId | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> |  |  |  |             <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |