|  |  | @ -25,56 +25,64 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByUuid" parameterType="java.lang.String" |  |  |  |     <select id="findByUuid" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT *   FROM  basic_products WHERE ( |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         uuid = #{uuid} ) limit 1 |  |  |  |         FROM basic_products | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE ( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                   uuid = #{uuid}) limit 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByUuids" parameterType="java.lang.String" |  |  |  |     <select id="findByUuids" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT *   FROM  basic_products WHERE ( |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         uuid = #{uuid} ) |  |  |  |         FROM basic_products | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE ( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                   uuid = #{uuid}) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByNameCode" parameterType="java.lang.String" |  |  |  |     <select id="findByNameCode" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT *   FROM  basic_products WHERE ( |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         nameCode = #{nameCode} ) limit 1 |  |  |  |         FROM basic_products | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE ( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                   nameCode = #{nameCode}) limit 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> |  |  |  |     <insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace INTO basic_products |  |  |  |         replace | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         INTO basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |         ( |  |  |  |         ( | 
			
		
	
		
		
			
				
					
					|  |  |  |         nameCode,packRatio,packLevel,bhxjsl, |  |  |  |         id,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 | 
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         values |  |  |  |         values | 
			
		
	
		
		
			
				
					
					|  |  |  |             ( |  |  |  |             ( | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{nameCode}, |  |  |  |         #{id}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{packRatio}, |  |  |  |         #{nameCode}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{packLevel}, |  |  |  |         #{packRatio}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{bhxjsl}, |  |  |  |         #{packLevel}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{bhzxxsbzsl}, |  |  |  |         #{bhxjsl}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{zxxsbzbhsydysl}, |  |  |  |         #{bhzxxsbzsl}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{bhxjcpbm}, |  |  |  |         #{zxxsbzbhsydysl}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{bzcj}, |  |  |  |         #{bhxjcpbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{addType}, |  |  |  |         #{bzcj}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{deviceRecordKey}, |  |  |  |         #{addType}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{cpmctymc}, |  |  |  |         #{deviceRecordKey}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{cplb}, |  |  |  |         #{cpmctymc}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{flbm}, |  |  |  |         #{cplb}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{ggxh}, |  |  |  |         #{flbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{qxlb}, |  |  |  |         #{ggxh}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{tyshxydm}, |  |  |  |         #{qxlb}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{ylqxzcrbarmc}, |  |  |  |         #{tyshxydm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{zczbhhzbapzbh}, |  |  |  |         #{ylqxzcrbarmc}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{ylqxzcrbarywmc}, |  |  |  |         #{zczbhhzbapzbh}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{uuid}, |  |  |  |         #{ylqxzcrbarywmc}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{sjcpbm}, |  |  |  |         #{uuid}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{versionNumber}, |  |  |  |         #{sjcpbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{diType}, |  |  |  |         #{versionNumber}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{productType} |  |  |  |         #{diType}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             ) |  |  |  |         #{productType} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertUdiInfos" keyProperty="id" parameterType="java.util.List"> |  |  |  |     <insert id="insertUdiInfos" keyProperty="id" parameterType="java.util.List"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -119,11 +127,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </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.api.admin.entity.basic.UdiInfoEntity"> |  |  |  |     <update id="updateUdiInfo" parameterType="com.glxp.api.admin.entity.basic.UdiInfoEntity"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -170,41 +182,41 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="importUdiInfo" parameterType="java.util.List"> |  |  |  |     <insert id="importUdiInfo" parameterType="java.util.List"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace into basic_products |  |  |  |         replace into basic_products | 
			
		
	
		
		
			
				
					
					|  |  |  |                 (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) 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}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.packRatio}, |  |  |  |             #{item.packRatio}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.packLevel}, |  |  |  |             #{item.packLevel}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.bhxjsl}, |  |  |  |             #{item.bhxjsl}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.bhzxxsbzsl}, |  |  |  |             #{item.bhzxxsbzsl}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.zxxsbzbhsydysl}, |  |  |  |             #{item.zxxsbzbhsydysl}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.bhxjcpbm}, |  |  |  |             #{item.bhxjcpbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.bzcj}, |  |  |  |             #{item.bzcj}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.addType}, |  |  |  |             #{item.addType}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.deviceRecordKey}, |  |  |  |             #{item.deviceRecordKey}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.cpmctymc}, |  |  |  |             #{item.cpmctymc}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.cplb}, |  |  |  |             #{item.cplb}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.flbm}, |  |  |  |             #{item.flbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.ggxh}, |  |  |  |             #{item.ggxh}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.qxlb}, |  |  |  |             #{item.qxlb}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.tyshxydm}, |  |  |  |             #{item.tyshxydm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.ylqxzcrbarmc}, |  |  |  |             #{item.ylqxzcrbarmc}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.zczbhhzbapzbh}, |  |  |  |             #{item.zczbhhzbapzbh}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.ylqxzcrbarywmc}, |  |  |  |             #{item.ylqxzcrbarywmc}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.sydycpbs}, |  |  |  |             #{item.sydycpbs}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.uuid}, |  |  |  |             #{item.uuid}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.sjcpbm}, |  |  |  |             #{item.sjcpbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.versionNumber}, |  |  |  |             #{item.versionNumber}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.diType}, |  |  |  |             #{item.diType}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.ybbm}, |  |  |  |             #{item.ybbm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.sptm}, |  |  |  |             #{item.sptm}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.manufactory}, |  |  |  |             #{item.manufactory}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.measname}, |  |  |  |             #{item.measname}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.productType}) |  |  |  |             #{item.productType}) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> |