|  |  | @ -23,45 +23,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertProductsDetailImport" keyProperty="id" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.thrsys.ThrProductsImportDetailEntity"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert INTO thr_products_import_detail |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         (code, name, measname, spec, registerNo, manufactory, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |          cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |          thirdSysFk, updateTime, genKeyFk, supName, price) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         values (#{code}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{name}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{measname}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{spec}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{registerNo}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{manufactory}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{cplb}, #{flbm}, #{qxlb}, #{ybbm}, #{sptm}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{tyshxydm}, #{zczbhhzbapzbh}, #{ylqxzcrbarmc}, #{ylqxzcrbarywmc}, #{cpms} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{thirdSysFk}, #{updateTime}, #{genKeyFk}, #{supName}, #{price}) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertProductsDetailImports" keyProperty="id" parameterType="java.util.List"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert INTO thr_products_import_detail |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         ( |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         code,name,measname,spec,registerNo,manufactory, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         thirdSysFk ,updateTime ,genKeyFk,supName,price ) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         values |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="products" item="item" index="index" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                  separator=","> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ( |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.code}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.name}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.measname}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.spec}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.registerNo}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.manufactory}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm},#{item.sptm}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc},#{item.cpms}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.thirdSysFk} ,#{item.updateTime},#{item.genKeyFk} ,#{item.supName} ,#{item.price} ) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteById" parameterType="Map"> |  |  |  |     <delete id="deleteById" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE |  |  |  |         DELETE | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM thr_products_import_detail |  |  |  |         FROM thr_products_import_detail | 
			
		
	
	
		
		
			
				
					|  |  | @ -73,35 +34,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE genKeyFk = #{genKey} |  |  |  |         WHERE genKeyFk = #{genKey} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <update id="updateProductsDetailImport" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.thrsys.ThrProductsImportDetailEntity"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         UPDATE thr_products_import_detail |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <trim prefix="set" suffixOverrides=","> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="code != null">code=#{code},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="name != null">name=#{name},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="measname != null">measname=#{measname},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="spec != null">spec=#{spec},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="registerNo != null">registerNo=#{registerNo},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="cplb != null">cplb=#{cplb},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="flbm != null">flbm=#{flbm},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="qxlb != null">qxlb=#{qxlb},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ybbm != null">ybbm=#{ybbm},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="sptm != null">sptm=#{sptm},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="tyshxydm != null">tyshxydm=#{tyshxydm},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="zczbhhzbapzbh != null">zczbhhzbapzbh=#{zczbhhzbapzbh},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != null">ylqxzcrbarmc=#{ylqxzcrbarmc},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarywmc != null">ylqxzcrbarywmc=#{ylqxzcrbarywmc},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="manufactory != null">manufactory=#{manufactory},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="cpms != null">cpms=#{cpms},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateTime != null">updateTime=#{updateTime},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="genKeyFk != null">genKeyFk=#{genKeyFk},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="supName != null">supName=#{supName},</if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE id = #{id} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteByTime"> |  |  |  |     <delete id="deleteByTime"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         Delete From thr_products_import_detail |  |  |  |         Delete From thr_products_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         where date(updateTime) <= date(DATE_SUB(NOW(),INTERVAL 30 day)) |  |  |  |         where date(updateTime) <= date(DATE_SUB(NOW(),INTERVAL 30 day)) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |