|  |  | @ -36,9 +36,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.bhxjcpbm,basic_products.bzcj,basic_products.addType,basic_products.deviceRecordKey, |  |  |  |         basic_products.bhxjcpbm,basic_products.bzcj,basic_products.addType,basic_products.deviceRecordKey, | 
			
		
	
		
		
			
				
					
					|  |  |  |         basic_products.cpmctymc,basic_products.cplb,basic_products.flbm,basic_products.ggxh,basic_products.qxlb, |  |  |  |         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.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.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 | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM (company_product_relevance |  |  |  |         FROM (company_product_relevance | 
			
		
	
		
		
			
				
					
					|  |  |  |         inner JOIN basic_udirel |  |  |  |         inner JOIN basic_udirel | 
			
		
	
		
		
			
				
					
					|  |  |  |         ON company_product_relevance.udiRlIdFk = basic_udirel.id) |  |  |  |         ON company_product_relevance.udiRlIdFk = basic_udirel.id) | 
			
		
	
	
		
		
			
				
					|  |  | @ -46,7 +48,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         ON basic_udirel.uuid = basic_products.uuid |  |  |  |         ON basic_udirel.uuid = basic_products.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},'%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -95,28 +96,35 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByUuid" parameterType="java.lang.String" |  |  |  |     <select id="findByUuid" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> |  |  |  |             resultType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT *   FROM  basic_products WHERE ( |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                   uuid = #{uuid}) limit 1 |  |  |  |                   uuid = #{uuid}) limit 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByUuids" parameterType="java.lang.String" |  |  |  |     <select id="findByUuids" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> |  |  |  |             resultType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT *   FROM  basic_products WHERE ( |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                   uuid = #{uuid}) |  |  |  |                   uuid = #{uuid}) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByNameCode" parameterType="java.lang.String" |  |  |  |     <select id="findByNameCode" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> |  |  |  |             resultType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT *   FROM  basic_products WHERE ( |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE ( | 
			
		
	
		
		
			
				
					
					|  |  |  |                   nameCode = #{nameCode}) limit 1 |  |  |  |                   nameCode = #{nameCode}) limit 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> |  |  |  |     <insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace INTO basic_products |  |  |  |         replace | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         INTO basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |         ( |  |  |  |         ( | 
			
		
	
		
		
			
				
					
					|  |  |  |         nameCode,packRatio,packLevel,bhxjsl, |  |  |  |         nameCode,packRatio,packLevel,bhxjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey, |  |  |  |         bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey, | 
			
		
	
		
		
			
				
					
					|  |  |  |         cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber |  |  |  |         cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber | 
			
		
	
		
		
			
				
					
					|  |  |  |         ,diType,productType) |  |  |  |         ,diType,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         values |  |  |  |         values | 
			
		
	
		
		
			
				
					
					|  |  |  |             ( |  |  |  |             ( | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{nameCode}, |  |  |  |         #{nameCode}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -141,7 +149,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{uuid}, |  |  |  |         #{uuid}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{sjcpbm}, |  |  |  |         #{sjcpbm}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{versionNumber}, |  |  |  |         #{versionNumber}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{diType},#{productType} |  |  |  |         #{diType}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         #{productType}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         #{scbssfbhph}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         #{scbssfbhxlh}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         #{scbssfbhscrq}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         #{scbssfbhsxrq} | 
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -151,7 +164,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         nameCode,packRatio,packLevel,bhxjsl, |  |  |  |         nameCode,packRatio,packLevel,bhxjsl, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey, |  |  |  |         bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey, | 
			
		
	
		
		
			
				
					
					|  |  |  |         cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber |  |  |  |         cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber | 
			
		
	
		
		
			
				
					
					|  |  |  |         ,diType,productType |  |  |  |         ,diType,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         values |  |  |  |         values | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -180,17 +193,24 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.uuid}, |  |  |  |             #{item.uuid}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.sjcpbm}, |  |  |  |             #{item.sjcpbm}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.versionNumber}, |  |  |  |             #{item.versionNumber}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.diType},#{item.productType} |  |  |  |             #{item.diType},#{item.productType}, #{item.scbssfbhph}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             #{item.scbssfbhxlh}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             #{item.scbssfbhscrq}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             #{item.scbssfbhsxrq} | 
			
		
	
		
		
			
				
					
					|  |  |  |             ) |  |  |  |             ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteById" parameterType="Map"> |  |  |  |     <delete id="deleteById" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE FROM basic_products  WHERE id =  #{id} |  |  |  |         DELETE | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE id = #{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteByUuid" parameterType="Map"> |  |  |  |     <delete id="deleteByUuid" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE FROM basic_products  WHERE uuid =  #{uuid} |  |  |  |         DELETE | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE uuid = #{uuid} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <update id="updateUdiInfo" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> |  |  |  |     <update id="updateUdiInfo" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -222,7 +242,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="measname != null">measname=#{measname},</if> |  |  |  |             <if test="measname != null">measname=#{measname},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="diType != null">diType=#{diType},</if> |  |  |  |             <if test="diType != null">diType=#{diType},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="productType != null">productType=#{productType},</if> |  |  |  |             <if test="productType != null">productType=#{productType},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |             <if test="scbssfbhph != null">scbssfbhph=#{scbssfbhph},</if> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="scbssfbhxlh != null">scbssfbhxlh=#{scbssfbhxlh},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="scbssfbhscrq != null">scbssfbhscrq=#{scbssfbhscrq},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="scbssfbhsxrq != null">scbssfbhsxrq=#{scbssfbhsxrq},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |         </trim> | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE nameCode = #{nameCode} |  |  |  |         WHERE nameCode = #{nameCode} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </update> | 
			
		
	
	
		
		
			
				
					|  |  | @ -240,7 +263,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         (id, nameCode, packRatio, packLevel, bhxjsl, bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, addType, |  |  |  |         (id, nameCode, packRatio, packLevel, bhxjsl, bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, addType, | 
			
		
	
		
		
			
				
					
					|  |  |  |         deviceRecordKey, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh, |  |  |  |         deviceRecordKey, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh, | 
			
		
	
		
		
			
				
					
					|  |  |  |         ylqxzcrbarywmc, sydycpbs, uuid, sjcpbm, versionNumber, diType, ybbm, sptm, manufactory, measname, |  |  |  |         ylqxzcrbarywmc, sydycpbs, uuid, sjcpbm, versionNumber, diType, ybbm, sptm, manufactory, measname, | 
			
		
	
		
		
			
				
					
					|  |  |  |         productType) values |  |  |  |         productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq) values | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="udiInfoEntities" item="item" index="index" separator=","> |  |  |  |         <foreach collection="udiInfoEntities" item="item" index="index" separator=","> | 
			
		
	
		
		
			
				
					
					|  |  |  |             (#{item.id}, |  |  |  |             (#{item.id}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.nameCode}, |  |  |  |             #{item.nameCode}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -271,7 +294,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.sptm}, |  |  |  |             #{item.sptm}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.manufactory}, |  |  |  |             #{item.manufactory}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.measname}, |  |  |  |             #{item.measname}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.productType}) |  |  |  |             #{item.productType}, #{item.scbssfbhph}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             #{item.scbssfbhxlh}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             #{item.scbssfbhscrq}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             #{item.scbssfbhsxrq}) | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> |