|  |  | @ -2,10 +2,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <mapper namespace="com.glxp.api.admin.dao.thrsys.ThrCorpImportDetailDao"> |  |  |  | <mapper namespace="com.glxp.api.admin.dao.thrsys.ThrCorpImportDetailDao"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterCorpDetailImport" parameterType="com.glxp.api.admin.req.basic.FilterUdiIpLogRequest" |  |  |  |     <select id="filterCorpDetailImport" parameterType="com.glxp.api.admin.req.basic.FilterUdiIpLogRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> |  |  |  |             resultType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT * FROM thr_corp_import_detail |  |  |  |         SELECT * | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="genKey != '' and genKey != null"> |  |  |  |             <if test="genKey != '' and genKey != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND genKeyFk = #{genKey} |  |  |  |                 AND genKeyFk = #{genKey} | 
			
		
	
	
		
		
			
				
					|  |  | @ -20,20 +20,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdSysFk = #{thirdSysFk} |  |  |  |                 AND thirdSysFk = #{thirdSysFk} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertCorpDetailImport" keyProperty="id" |  |  |  |     <insert id="insertCorpDetailImport" keyProperty="id" | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> |  |  |  |             parameterType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert INTO thr_corp_import_detail |  |  |  |         insert INTO thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         ( |  |  |  |                 (unitId, name, spell, addr, creditNo, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |            unitId,name,spell,addr,creditNo, |  |  |  |                  contact, mobile, thirdSysFk, updateTime, genKeyFk, kfdm) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         contact,mobile,thirdSysFk,updateTime ,genKeyFk |  |  |  |         values (#{unitId}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         values |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ( |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |            #{unitId}, |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 #{name}, |  |  |  |                 #{name}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{spell}, |  |  |  |                 #{spell}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{addr}, |  |  |  |                 #{addr}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -42,55 +37,80 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{mobile}, |  |  |  |                 #{mobile}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{thirdSysFk}, |  |  |  |                 #{thirdSysFk}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{updateTime}, |  |  |  |                 #{updateTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |               #{genKeyFk} |  |  |  |                 #{genKeyFk}, #{kfdm}) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  ) |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertCorpDetailImports" keyProperty="id" parameterType="java.util.List"> |  |  |  |     <insert id="insertCorpDetailImports" keyProperty="id" parameterType="java.util.List"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert INTO thr_corp_import_detail |  |  |  |         insert INTO thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         ( |  |  |  |                 (unitId, name, spell, addr, creditNo, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         unitId,name,spell,addr,creditNo, |  |  |  |                  contact, mobile, thirdSysFk, updateTime, genKeyFk, kfdm) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         contact,mobile,thirdSysFk ,updateTime ,genKeyFk ) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 values |  |  |  |                 values | 
			
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="corps" item="item" index="index" |  |  |  |         <foreach collection="corps" item="item" index="index" | 
			
		
	
		
		
			
				
					
					|  |  |  |                  separator=","> |  |  |  |                  separator=","> | 
			
		
	
		
		
			
				
					
					|  |  |  |             ( |  |  |  |             (#{item.unitId}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.unitId}, |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |              #{item.name}, |  |  |  |              #{item.name}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.spell}, |  |  |  |              #{item.spell}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.addr}, |  |  |  |              #{item.addr}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.creditNo}, |  |  |  |              #{item.creditNo}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.contact}, |  |  |  |              #{item.contact}, | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.mobile}, |  |  |  |              #{item.mobile}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             #{item.thirdSysFk} ,#{item.updateTime},#{item.genKeyFk} ) |  |  |  |              #{item.thirdSysFk}, #{item.updateTime}, #{item.genKeyFk}, #{item.kfdm}) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteById" parameterType="Map"> |  |  |  |     <delete id="deleteById" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE FROM thr_corp_import_detail  WHERE id =  #{id} |  |  |  |         DELETE | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE id = #{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteByGenkey" parameterType="Map"> |  |  |  |     <delete id="deleteByGenkey" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE FROM thr_corp_import_detail  WHERE genKeyFk =  #{genKey} |  |  |  |         DELETE | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         FROM thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE genKeyFk = #{genKey} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <update id="updateCorpDetailImport" parameterType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> |  |  |  |     <update id="updateCorpDetailImport" parameterType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         UPDATE thr_corp_import_detail |  |  |  |         UPDATE thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         <trim prefix="set" suffixOverrides=","> |  |  |  |         <trim prefix="set" suffixOverrides=","> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="unitId != null">unitId=#{unitId},</if> |  |  |  |             <if test="unitId != null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="name != null">name=#{name},</if> |  |  |  |                 unitId=#{unitId}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="spell != null">spell=#{spell},</if> |  |  |  |             </if> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="addr != null">addr=#{addr},</if> |  |  |  |             <if test="name != null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="creditNo != null">creditNo=#{creditNo},</if> |  |  |  |                 name=#{name}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="contact != null">contact=#{contact},</if> |  |  |  |             </if> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="mobile != null">mobile=#{mobile},</if> |  |  |  |             <if test="spell != null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if> |  |  |  |                 spell=#{spell}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateTime != null">updateTime=#{updateTime},</if> |  |  |  |             </if> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="genKeyFk != null">genKeyFk=#{genKeyFk},</if> |  |  |  |             <if test="addr != null"> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 addr=#{addr}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="creditNo != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 creditNo=#{creditNo}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="contact != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 contact=#{contact}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="mobile != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 mobile=#{mobile}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="thirdSysFk != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thirdSysFk=#{thirdSysFk}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="updateTime != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 updateTime=#{updateTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="genKeyFk != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 genKeyFk=#{genKeyFk}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="kfdm != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 kfdm=#{kfdm}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |         </trim> | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE id = #{id} |  |  |  |         WHERE id = #{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </update> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteByTime"> |  |  |  |     <delete id="deleteByTime"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         Delete From thr_corp_import_detail |  |  |  |         Delete | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         From thr_corp_import_detail | 
			
		
	
		
		
			
				
					
					|  |  |  |         where date(updateTime) <= date(DATE_SUB(NOW(), INTERVAL 30 day)) |  |  |  |         where date(updateTime) <= date(DATE_SUB(NOW(), INTERVAL 30 day)) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> |