|  |  |  | @ -34,65 +34,65 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterUdiInfo2" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT basic_products.id, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.isUseDy, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId1, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId2, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId3, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId4, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.udplatCode, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.nameCode, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.packRatio, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.packLevel, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.packUnit, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bhxjsl, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.zxxsbzbhsydysl, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bhxjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bzcj, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.deviceRecordKey, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cpmctymc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cplb, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.flbm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.ggxh, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.qxlb, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.ylqxzcrbarmc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.zczbhhzbapzbh, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.ylqxzcrbarywmc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sydycpbs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.uuid, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.versionNumber, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.diType, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhph, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhxlh, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhscrq, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhsxrq, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cpms, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.originUuid, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoBatch, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoProduct, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoSerial, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.spmc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sfwblztlcp, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cgzmraqxgxx, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sfbjwycxsy, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.zdcfsycs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sfwwjbz, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.syqsfxyjxmj, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.mjfs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.categoryName, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cplx, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.hchzsb, | 
			
		
	
		
			
				
					|  |  |  |  |                company_product_relevance.customerId as unitFk | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.isUseDy, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId1, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId2, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId3, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId4, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.udplatCode, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.nameCode, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.packRatio, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.packLevel, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.packUnit, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bhxjsl, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.zxxsbzbhsydysl, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bhxjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bzcj, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.deviceRecordKey, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cpmctymc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cplb, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.flbm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.ggxh, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.qxlb, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.ylqxzcrbarmc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.zczbhhzbapzbh, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.ylqxzcrbarywmc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sydycpbs, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.uuid, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.versionNumber, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.diType, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhph, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhxlh, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhscrq, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhsxrq, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cpms, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.originUuid, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoBatch, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoProduct, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoSerial, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.spmc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sfwblztlcp, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cgzmraqxgxx, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sfbjwycxsy, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.zdcfsycs, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sfwwjbz, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.syqsfxyjxmj, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.mjfs, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.categoryName, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cplx, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.hchzsb, | 
			
		
	
		
			
				
					|  |  |  |  |         company_product_relevance.customerId as unitFk | 
			
		
	
		
			
				
					|  |  |  |  |         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 | 
			
		
	
		
			
				
					|  |  |  |  |         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="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc}, '%') | 
			
		
	
	
		
			
				
					|  |  |  | @ -167,181 +167,182 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="findByNameCode" parameterType="java.lang.String" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.entity.basic.UdiProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT basic_products.*,basic_udirel.purType,basic_udirel.hcType,basic_udirel.id as relId | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT basic_products.*, basic_udirel.purType, basic_udirel.hcType, basic_udirel.id as relId | 
			
		
	
		
			
				
					|  |  |  |  |         FROM basic_products | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN basic_udirel ON basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE (basic_products.nameCode = #{nameCode}) | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE (basic_products.nameCode = #{nameCode} or basic_products.ybbm = #{nameCode}) | 
			
		
	
		
			
				
					|  |  |  |  |         limit 1 | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         replace | 
			
		
	
		
			
				
					|  |  |  |  |                 INTO basic_products | 
			
		
	
		
			
				
					|  |  |  |  |                 (id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |                  zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |                  ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, diType, ybbm, sptm, | 
			
		
	
		
			
				
					|  |  |  |  |                  manufactory, measname, productType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq, cpms, | 
			
		
	
		
			
				
					|  |  |  |  |                  allowNoBatch, allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |                  allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, | 
			
		
	
		
			
				
					|  |  |  |  |                  basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, | 
			
		
	
		
			
				
					|  |  |  |  |                  basicPrductRemak8, updateTime | 
			
		
	
		
			
				
					|  |  |  |  |                         , sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, mjfs, categoryName, | 
			
		
	
		
			
				
					|  |  |  |  |                  pinyinInitial, | 
			
		
	
		
			
				
					|  |  |  |  |                  updateUser, | 
			
		
	
		
			
				
					|  |  |  |  |                  createTime, | 
			
		
	
		
			
				
					|  |  |  |  |                  createUser, | 
			
		
	
		
			
				
					|  |  |  |  |                 catalogname1, | 
			
		
	
		
			
				
					|  |  |  |  |                 catalogname2, | 
			
		
	
		
			
				
					|  |  |  |  |                 catalogname3, | 
			
		
	
		
			
				
					|  |  |  |  |                 matrial, | 
			
		
	
		
			
				
					|  |  |  |  |                 destinyType, | 
			
		
	
		
			
				
					|  |  |  |  |                 productsType,prepnUnit,prepnSpec,storageCondition,transportCondition,indate,packMatrial,majorType,majorStatus,physicType,medicareType,bzgg, | 
			
		
	
		
			
				
					|  |  |  |  |         INTO basic_products | 
			
		
	
		
			
				
					|  |  |  |  |         (id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |         zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |         ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, diType, ybbm, sptm, | 
			
		
	
		
			
				
					|  |  |  |  |         manufactory, measname, productType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq, cpms, | 
			
		
	
		
			
				
					|  |  |  |  |         allowNoBatch, allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |         allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, | 
			
		
	
		
			
				
					|  |  |  |  |         basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, | 
			
		
	
		
			
				
					|  |  |  |  |         basicPrductRemak8, updateTime | 
			
		
	
		
			
				
					|  |  |  |  |         , sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, mjfs, categoryName, | 
			
		
	
		
			
				
					|  |  |  |  |         pinyinInitial, | 
			
		
	
		
			
				
					|  |  |  |  |         updateUser, | 
			
		
	
		
			
				
					|  |  |  |  |         createTime, | 
			
		
	
		
			
				
					|  |  |  |  |         createUser, | 
			
		
	
		
			
				
					|  |  |  |  |         catalogname1, | 
			
		
	
		
			
				
					|  |  |  |  |         catalogname2, | 
			
		
	
		
			
				
					|  |  |  |  |         catalogname3, | 
			
		
	
		
			
				
					|  |  |  |  |         matrial, | 
			
		
	
		
			
				
					|  |  |  |  |         destinyType, | 
			
		
	
		
			
				
					|  |  |  |  |         productsType, prepnUnit, prepnSpec, storageCondition, transportCondition, indate, packMatrial, majorType, | 
			
		
	
		
			
				
					|  |  |  |  |         majorStatus, physicType, medicareType, bzgg, | 
			
		
	
		
			
				
					|  |  |  |  |         requireScanCode) | 
			
		
	
		
			
				
					|  |  |  |  |         values (#{id}, #{uuid}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{originUuid}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{nameCode}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{deviceRecordKey}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{packRatio}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{packLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{packUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{bhxjsl}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{bhzxxsbzsl }, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{zxxsbzbhsydysl}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{bhxjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{bzcj}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{cpmctymc}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{cplb}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{flbm}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{ggxh}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{qxlb}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{tyshxydm}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{ylqxzcrbarmc}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{zczbhhzbapzbh}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{ylqxzcrbarywmc}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{sydycpbs}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{sjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{versionNumber}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{diType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{ybbm}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{sptm}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{manufactory}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{measname}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{productType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{scbssfbhph}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{scbssfbhxlh}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{scbssfbhscrq}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{scbssfbhsxrq}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{cpms}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{allowNoBatch}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{allowNoExpire}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{allowNoProduct}, #{allowNoSerial}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{spmc}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{cplx}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{hchzsb}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{cpdls}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{price}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak1}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak2}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak3}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak4}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak5}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak6}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak7}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{basicPrductRemak8}, #{updateTime} | 
			
		
	
		
			
				
					|  |  |  |  |                        , #{sfwblztlcp}, #{cgzmraqxgxx}, #{sfbjwycxsy}, #{zdcfsycs}, #{sfwwjbz}, #{syqsfxyjxmj}, #{mjfs}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{categoryName}, #{pinyinInitial}, | 
			
		
	
		
			
				
					|  |  |  |  |                    #{updateUser}, | 
			
		
	
		
			
				
					|  |  |  |  |                    #{createTime}, | 
			
		
	
		
			
				
					|  |  |  |  |                    #{createUser}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{originUuid}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{nameCode}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{deviceRecordKey}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{packRatio}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{packLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{packUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{bhxjsl}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{bhzxxsbzsl }, | 
			
		
	
		
			
				
					|  |  |  |  |         #{zxxsbzbhsydysl}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{bhxjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{bzcj}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{cpmctymc}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{cplb}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{flbm}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{ggxh}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{qxlb}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{tyshxydm}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{ylqxzcrbarmc}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{zczbhhzbapzbh}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{ylqxzcrbarywmc}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{sydycpbs}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{sjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{versionNumber}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{diType}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{ybbm}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{sptm}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{manufactory}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{measname}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{productType}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{scbssfbhph}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{scbssfbhxlh}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{scbssfbhscrq}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{scbssfbhsxrq}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{cpms}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{allowNoBatch}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{allowNoExpire}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{allowNoProduct}, #{allowNoSerial}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{spmc}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{cplx}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{hchzsb}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{cpdls}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{price}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak1}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak2}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak3}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak4}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak5}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak6}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak7}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{basicPrductRemak8}, #{updateTime} | 
			
		
	
		
			
				
					|  |  |  |  |         , #{sfwblztlcp}, #{cgzmraqxgxx}, #{sfbjwycxsy}, #{zdcfsycs}, #{sfwwjbz}, #{syqsfxyjxmj}, #{mjfs}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{categoryName}, #{pinyinInitial}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{updateUser}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{createTime}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{createUser}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{catalogname1}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{catalogname2}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{catalogname3}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{matrial}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{destinyType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{productsType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{prepnUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{prepnSpec}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{storageCondition}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{transportCondition}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{indate}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{packMatrial}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{majorType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{majorStatus}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{physicType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{medicareType}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{bzgg}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{productsType}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{prepnUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{prepnSpec}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{storageCondition}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{transportCondition}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{indate}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{packMatrial}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{majorType}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{majorStatus}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{physicType}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{medicareType}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{bzgg}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{requireScanCode}) | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertUdiInfos" parameterType="java.util.List"> | 
			
		
	
		
			
				
					|  |  |  |  |         replace INTO basic_products | 
			
		
	
		
			
				
					|  |  |  |  |                 (id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |                  zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |                  ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, diType, ybbm, sptm, | 
			
		
	
		
			
				
					|  |  |  |  |                  manufactory, measname, productType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq, cpms, | 
			
		
	
		
			
				
					|  |  |  |  |                  allowNoBatch, allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |                  allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, | 
			
		
	
		
			
				
					|  |  |  |  |                  basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, | 
			
		
	
		
			
				
					|  |  |  |  |                  basicPrductRemak8, updateTime, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, | 
			
		
	
		
			
				
					|  |  |  |  |                  mjfs, categoryName, pinyinInitial) | 
			
		
	
		
			
				
					|  |  |  |  |                 values | 
			
		
	
		
			
				
					|  |  |  |  |         (id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |         zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |         ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, diType, ybbm, sptm, | 
			
		
	
		
			
				
					|  |  |  |  |         manufactory, measname, productType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq, cpms, | 
			
		
	
		
			
				
					|  |  |  |  |         allowNoBatch, allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |         allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, | 
			
		
	
		
			
				
					|  |  |  |  |         basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, | 
			
		
	
		
			
				
					|  |  |  |  |         basicPrductRemak8, updateTime, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, | 
			
		
	
		
			
				
					|  |  |  |  |         mjfs, categoryName, pinyinInitial) | 
			
		
	
		
			
				
					|  |  |  |  |         values | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <foreach collection="udiInfoEntities" item="item" index="index" | 
			
		
	
		
			
				
					|  |  |  |  |                  separator=","> | 
			
		
	
		
			
				
					|  |  |  |  |             (#{item.id}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.uuid}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.originUuid}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.nameCode}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.deviceRecordKey}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.packRatio}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.packLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.packUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.bhxjsl}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.bhzxxsbzsl}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.zxxsbzbhsydysl}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.bhxjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.bzcj}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.cpmctymc}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.cplb}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.flbm}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.ggxh}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.qxlb}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.tyshxydm}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.ylqxzcrbarmc}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.zczbhhzbapzbh}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.ylqxzcrbarywmc}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.sydycpbs}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.sjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.versionNumber}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.diType}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.ybbm}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.sptm}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.manufactory}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.measname}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.productType}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.scbssfbhph}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.scbssfbhxlh}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.scbssfbhscrq}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.scbssfbhsxrq}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.cpms}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.allowNoBatch}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.allowNoExpire}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.allowNoProduct}, #{item.allowNoSerial}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.spmc}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.cplx}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.hchzsb}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.cpdls}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.price}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak1}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak2}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak3}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak4}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak5}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak6}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak7}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.basicPrductRemak8}, #{item.updateTime}, #{item.sfwblztlcp}, #{item.cgzmraqxgxx}, #{item.sfbjwycxsy}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.zdcfsycs}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.sfwwjbz}, #{item.syqsfxyjxmj}, #{item.mjfs}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.categoryName}, #{item.pinyinInitial}) | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.uuid}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.originUuid}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.nameCode}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.deviceRecordKey}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.packRatio}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.packLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.packUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.bhxjsl}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.bhzxxsbzsl}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.zxxsbzbhsydysl}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.bhxjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.bzcj}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.cpmctymc}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.cplb}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.flbm}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.ggxh}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.qxlb}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.tyshxydm}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.ylqxzcrbarmc}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.zczbhhzbapzbh}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.ylqxzcrbarywmc}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.sydycpbs}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.sjcpbm}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.versionNumber}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.diType}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.ybbm}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.sptm}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.manufactory}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.measname}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.productType}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.scbssfbhph}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.scbssfbhxlh}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.scbssfbhscrq}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.scbssfbhsxrq}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.cpms}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.allowNoBatch}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.allowNoExpire}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.allowNoProduct}, #{item.allowNoSerial}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.spmc}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.cplx}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.hchzsb}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.cpdls}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.price}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak1}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak2}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak3}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak4}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak5}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak6}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak7}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.basicPrductRemak8}, #{item.updateTime}, #{item.sfwblztlcp}, #{item.cgzmraqxgxx}, #{item.sfbjwycxsy}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.zdcfsycs}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.sfwwjbz}, #{item.syqsfxyjxmj}, #{item.mjfs}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.categoryName}, #{item.pinyinInitial}) | 
			
		
	
		
			
				
					|  |  |  |  |         </foreach> | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -566,7 +567,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 transportCondition=#{transportCondition}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="indate != null"> | 
			
		
	
		
			
				
					|  |  |  |  |             indate=#{indate}, | 
			
		
	
		
			
				
					|  |  |  |  |                 indate=#{indate}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="useAttribute != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 useAttribute=#{useAttribute}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -588,7 +589,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </trim> | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE nameCode = #{nameCode} | 
			
		
	
		
			
				
					|  |  |  |  |           and uuid = #{uuid} | 
			
		
	
		
			
				
					|  |  |  |  |         and uuid = #{uuid} | 
			
		
	
		
			
				
					|  |  |  |  |     </update> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <update id="updateUdiInfoByUuid" parameterType="com.glxp.api.entity.basic.UdiProductEntity"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -1002,7 +1003,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="matrial != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 matrial=#{matrial}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </trim> | 
			
		
	
		
			
				
					|  |  |  |  |         where id = #{id} | 
			
		
	
		
			
				
					|  |  |  |  |     </update> | 
			
		
	
	
		
			
				
					|  |  |  | @ -1034,7 +1034,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectGgxhList" resultType="java.lang.String"> | 
			
		
	
		
			
				
					|  |  |  |  |         select distinct ggxh | 
			
		
	
		
			
				
					|  |  |  |  |         from basic_products | 
			
		
	
		
			
				
					|  |  |  |  |                      left join basic_udirel on basic_products.uuid = basic_udirel.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         left join basic_udirel on basic_products.uuid = basic_udirel.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         where basic_udirel.id = #{relId} | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -1209,13 +1209,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectUdiByName" resultType="com.glxp.api.entity.basic.UdiProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT b1.*, | 
			
		
	
		
			
				
					|  |  |  |  |                b2.useMuti    as useMuti, | 
			
		
	
		
			
				
					|  |  |  |  |                b2.useNum     as useNum, | 
			
		
	
		
			
				
					|  |  |  |  |                b2.id         as relId, | 
			
		
	
		
			
				
					|  |  |  |  |                c1.customerId as supId | 
			
		
	
		
			
				
					|  |  |  |  |         b2.useMuti as useMuti, | 
			
		
	
		
			
				
					|  |  |  |  |         b2.useNum as useNum, | 
			
		
	
		
			
				
					|  |  |  |  |         b2.id as relId, | 
			
		
	
		
			
				
					|  |  |  |  |         c1.customerId as supId | 
			
		
	
		
			
				
					|  |  |  |  |         FROM basic_products b1 | 
			
		
	
		
			
				
					|  |  |  |  |                      LEFT JOIN basic_udirel b2 ON b1.uuid = b2.uuid | 
			
		
	
		
			
				
					|  |  |  |  |                      LEFT JOIN company_product_relevance c1 ON c1.udiRlIdFk = b2.id | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN basic_udirel b2 ON b1.uuid = b2.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN company_product_relevance c1 ON c1.udiRlIdFk = b2.id | 
			
		
	
		
			
				
					|  |  |  |  |         where nameCode = #{nameCode} | 
			
		
	
		
			
				
					|  |  |  |  |         limit 1 | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
	
		
			
				
					|  |  |  | @ -1224,64 +1224,64 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterUdiInfoById" parameterType="string" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT basic_products.id, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.id                      as relId, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.isUseDy, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId1, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId2, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId3, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.thirdId4, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_udirel.udplatCode, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.nameCode, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.packRatio, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.packLevel, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.packUnit, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bhxjsl, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.zxxsbzbhsydysl, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bhxjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.bzcj, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.deviceRecordKey, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cpmctymc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cplb, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.flbm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.ggxh, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.qxlb, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.ylqxzcrbarmc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.zczbhhzbapzbh, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.ylqxzcrbarywmc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sydycpbs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.uuid, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.versionNumber, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.diType, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhph, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhxlh, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhscrq, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.scbssfbhsxrq, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cpms, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.originUuid, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoBatch, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoProduct, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.allowNoSerial, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.spmc, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sfwblztlcp, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cgzmraqxgxx, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sfbjwycxsy, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.zdcfsycs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.sfwwjbz, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.syqsfxyjxmj, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.mjfs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.categoryName, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.cplx, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.hchzsb, | 
			
		
	
		
			
				
					|  |  |  |  |                company_product_relevance.customerId as unitFk | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.id as relId, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.isUseDy, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId1, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId2, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId3, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.thirdId4, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_udirel.udplatCode, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.nameCode, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.packRatio, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.packLevel, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.packUnit, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bhxjsl, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bhzxxsbzsl, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.zxxsbzbhsydysl, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bhxjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.bzcj, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.deviceRecordKey, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cpmctymc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cplb, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.flbm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.ggxh, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.qxlb, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.tyshxydm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.ylqxzcrbarmc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.zczbhhzbapzbh, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.ylqxzcrbarywmc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sydycpbs, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.uuid, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sjcpbm, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.versionNumber, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.diType, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhph, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhxlh, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhscrq, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.scbssfbhsxrq, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cpms, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.originUuid, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoBatch, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoExpire, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoProduct, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.allowNoSerial, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.spmc, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sfwblztlcp, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cgzmraqxgxx, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sfbjwycxsy, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.zdcfsycs, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.sfwwjbz, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.syqsfxyjxmj, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.mjfs, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.categoryName, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.cplx, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_products.hchzsb, | 
			
		
	
		
			
				
					|  |  |  |  |         company_product_relevance.customerId as unitFk | 
			
		
	
		
			
				
					|  |  |  |  |         FROM basic_udirel | 
			
		
	
		
			
				
					|  |  |  |  |                      left JOIN company_product_relevance ON company_product_relevance.udiRlIdFk = basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |                      left JOIN basic_products ON basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN company_product_relevance ON company_product_relevance.udiRlIdFk = basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN basic_products ON basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="id != '' and id != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND basic_udirel.id = #{id} | 
			
		
	
	
		
			
				
					|  |  |  | @ -1291,6 +1291,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectListByUuid" resultType="com.glxp.api.entity.basic.UdiProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         select * | 
			
		
	
		
			
				
					|  |  |  |  |         from basic_products where uuid = #{uuid} | 
			
		
	
		
			
				
					|  |  |  |  |         from basic_products | 
			
		
	
		
			
				
					|  |  |  |  |         where uuid = #{uuid} | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |