| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -2,22 +2,24 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<!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.dao.thrsys.ThrCorpDao">
 | 
					 | 
					 | 
					 | 
					<mapper namespace="com.glxp.api.dao.thrsys.ThrCorpDao">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <select id="filterThrCorps" parameterType="com.glxp.api.req.thrsys.FilterThrCorpRequest"
 | 
					 | 
					 | 
					 | 
					    <select id="filterThrCorps" parameterType="com.glxp.api.req.thrsys.FilterThrCorpRequest"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            resultType="com.glxp.api.res.thrsys.ThrCorpsResponse">
 | 
					 | 
					 | 
					 | 
					            resultType="com.glxp.api.res.thrsys.ThrCorpsResponse">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        SELECT * FROM thr_corp
 | 
					 | 
					 | 
					 | 
					        SELECT *
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        FROM thr_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <where>
 | 
					 | 
					 | 
					 | 
					        <where>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="unitId != '' and unitId != null">
 | 
					 | 
					 | 
					 | 
					            <if test="unitId != '' and unitId != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                AND unitId like concat('%',#{unitId},'%')
 | 
					 | 
					 | 
					 | 
					                AND unitId like concat('%', #{unitId}, '%')
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            </if>
 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="name != '' and name != null">
 | 
					 | 
					 | 
					 | 
					            <if test="name != '' and name != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                AND ( name LIKE concat('%',#{name},'%') or spell LIKE concat('%',#{name},'%') )
 | 
					 | 
					 | 
					 | 
					                AND (name LIKE concat('%', #{name}, '%') or spell LIKE concat('%', #{name}, '%'))
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            </if>
 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="thirdSysFk != '' and thirdSysFk != null">
 | 
					 | 
					 | 
					 | 
					            <if test="thirdSysFk != '' and thirdSysFk != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                AND thirdSysFk = #{thirdSysFk}
 | 
					 | 
					 | 
					 | 
					                AND thirdSysFk = #{thirdSysFk}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            </if>
 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="lastUpdateTime!=null and lastUpdateTime!=''">
 | 
					 | 
					 | 
					 | 
					            <if test="lastUpdateTime != null and lastUpdateTime != ''">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                <![CDATA[   and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>=  DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')   ]]>
 | 
					 | 
					 | 
					 | 
					                <![CDATA[
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                ]]>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            </if>
 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </where>
 | 
					 | 
					 | 
					 | 
					        </where>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ORDER BY updateTime DESC
 | 
					 | 
					 | 
					 | 
					        ORDER BY updateTime DESC
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -27,13 +29,9 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <insert id="insertThrCorps" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
					 | 
					 | 
					 | 
					    <insert id="insertThrCorps" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        replace
 | 
					 | 
					 | 
					 | 
					        replace
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            INTO thr_corp
 | 
					 | 
					 | 
					 | 
					            INTO thr_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        (
 | 
					 | 
					 | 
					 | 
					        (unitId, name, spell, addr, creditNo,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        unitId,name,spell,addr,creditNo,
 | 
					 | 
					 | 
					 | 
					         contact, mobile, thirdSysFk, updateTime, createUser, createTime, updateUser, remark)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        contact,mobile,thirdSysFk,updateTime,createUser,createTime,updateUser,remark
 | 
					 | 
					 | 
					 | 
					        values (#{unitId},
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        )
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        values
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            (
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{unitId},
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{name},
 | 
					 | 
					 | 
					 | 
					                #{name},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{spell},
 | 
					 | 
					 | 
					 | 
					                #{spell},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{addr},
 | 
					 | 
					 | 
					 | 
					                #{addr},
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -45,22 +43,18 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{createUser},
 | 
					 | 
					 | 
					 | 
					                #{createUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{createTime},
 | 
					 | 
					 | 
					 | 
					                #{createTime},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{updateUser},
 | 
					 | 
					 | 
					 | 
					                #{updateUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{remark}
 | 
					 | 
					 | 
					 | 
					                #{remark})
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        )
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </insert>
 | 
					 | 
					 | 
					 | 
					    </insert>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <insert id="insertThrCorpss" keyProperty="id" parameterType="java.util.List">
 | 
					 | 
					 | 
					 | 
					    <insert id="insertThrCorpss" keyProperty="id" parameterType="java.util.List">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        replace INTO thr_corp
 | 
					 | 
					 | 
					 | 
					        replace INTO thr_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        (
 | 
					 | 
					 | 
					 | 
					        (unitId, name, spell, addr, creditNo,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        unitId,name,spell,addr,creditNo,
 | 
					 | 
					 | 
					 | 
					         contact, mobile, thirdSysFk, updateTime, createUser, createTime, updateUser, remark)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        contact,mobile,thirdSysFk,updateTime,createUser,createTime,updateUser,remark
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        )
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        values
 | 
					 | 
					 | 
					 | 
					        values
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <foreach collection="thrCorpEntitys" item="item" index="index"
 | 
					 | 
					 | 
					 | 
					        <foreach collection="thrCorpEntitys" item="item" index="index"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                 separator=",">
 | 
					 | 
					 | 
					 | 
					                 separator=",">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            (
 | 
					 | 
					 | 
					 | 
					            (#{item.unitId},
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            #{item.unitId},
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					             #{item.name},
 | 
					 | 
					 | 
					 | 
					             #{item.name},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					             #{item.spell},
 | 
					 | 
					 | 
					 | 
					             #{item.spell},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					             #{item.addr},
 | 
					 | 
					 | 
					 | 
					             #{item.addr},
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -72,8 +66,7 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					             #{item.createUser},
 | 
					 | 
					 | 
					 | 
					             #{item.createUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					             #{item.createTime},
 | 
					 | 
					 | 
					 | 
					             #{item.createTime},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					             #{item.updateUser},
 | 
					 | 
					 | 
					 | 
					             #{item.updateUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            #{item.remark}
 | 
					 | 
					 | 
					 | 
					             #{item.remark})
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            )
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </foreach>
 | 
					 | 
					 | 
					 | 
					        </foreach>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </insert>
 | 
					 | 
					 | 
					 | 
					    </insert>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -96,29 +89,54 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <update id="updateThrCorps" parameterType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
					 | 
					 | 
					 | 
					    <update id="updateThrCorps" parameterType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        UPDATE thr_corp
 | 
					 | 
					 | 
					 | 
					        UPDATE thr_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <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="createUser != null">createUser=#{createUser},</if>
 | 
					 | 
					 | 
					 | 
					            <if test="addr != null">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="createTime != null">createTime=#{createTime},</if>
 | 
					 | 
					 | 
					 | 
					                addr=#{addr},
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="updateUser != null">updateUser=#{updateUser},</if>
 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="remark != null">remark=#{remark},</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="createUser != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                createUser=#{createUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <if test="createTime != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                createTime=#{createTime},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <if test="updateUser != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                updateUser=#{updateUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <if test="remark != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                remark=#{remark},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </trim>
 | 
					 | 
					 | 
					 | 
					        </trim>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        WHERE id = #{id}
 | 
					 | 
					 | 
					 | 
					        WHERE id = #{id}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </update>
 | 
					 | 
					 | 
					 | 
					    </update>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <insert id="importThrCorp" parameterType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
					 | 
					 | 
					 | 
					    <insert id="importThrCorp" parameterType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        replace
 | 
					 | 
					 | 
					 | 
					        replace
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        into thr_corp (unitId, spell, addr, creditNo, contact, mobile, thirdSysFk, name, updateTime,createUser,createTime,updateUser,remark)
 | 
					 | 
					 | 
					 | 
					            into thr_corp (unitId, spell, addr, creditNo, contact, mobile, thirdSysFk, name, updateTime, createUser,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        values (
 | 
					 | 
					 | 
					 | 
					                           createTime, updateUser, remark)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{unitId},
 | 
					 | 
					 | 
					 | 
					        values (#{unitId},
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{spell},
 | 
					 | 
					 | 
					 | 
					                #{spell},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{addr},
 | 
					 | 
					 | 
					 | 
					                #{addr},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{creditNo},
 | 
					 | 
					 | 
					 | 
					                #{creditNo},
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -130,13 +148,13 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{item.createUser},
 | 
					 | 
					 | 
					 | 
					                #{item.createUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{item.createTime},
 | 
					 | 
					 | 
					 | 
					                #{item.createTime},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                #{item.updateUser},
 | 
					 | 
					 | 
					 | 
					                #{item.updateUser},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{item.remark}
 | 
					 | 
					 | 
					 | 
					                #{item.remark})
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        )
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </insert>
 | 
					 | 
					 | 
					 | 
					    </insert>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <select id="selectByThirdId" parameterType="com.glxp.api.req.thrsys.ThrUnitMaintainFilterRequest"
 | 
					 | 
					 | 
					 | 
					    <select id="selectByThirdId" parameterType="com.glxp.api.req.thrsys.ThrUnitMaintainFilterRequest"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            resultType="com.glxp.api.res.thrsys.ThrUnitMaintainResponse">
 | 
					 | 
					 | 
					 | 
					            resultType="com.glxp.api.res.thrsys.ThrUnitMaintainResponse">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        select * FROM basic_corp
 | 
					 | 
					 | 
					 | 
					        select *
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        FROM basic_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <where>
 | 
					 | 
					 | 
					 | 
					        <where>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="thirdId != '' and thirdId != null">
 | 
					 | 
					 | 
					 | 
					            <if test="thirdId != '' and thirdId != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                AND thirdId = #{thirdId}
 | 
					 | 
					 | 
					 | 
					                AND thirdId = #{thirdId}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -172,6 +190,28 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </select>
 | 
					 | 
					 | 
					 | 
					    </select>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <select id="selectByLastTime" resultType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
					 | 
					 | 
					 | 
					    <select id="selectByLastTime" resultType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        select * from thr_corp where updateTime >= #{lastUpdateTime}
 | 
					 | 
					 | 
					 | 
					        select *
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        from thr_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        where updateTime >= #{lastUpdateTime}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    </select>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    <select id="selectByUnitIdAndThirdId" resultType="com.glxp.api.entity.thrsys.ThrCorpEntity">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        select id,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               spell,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               addr,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               creditNo,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               contact,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               mobile,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               name,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					               remark
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        from thr_corp
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <where>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <if test="unitId != null and unitId != ''">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                AND unitId = #{unitId}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <if test="thirdId != null and thirdId != ''">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                AND thirdSysFk = #{thirdId}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        </where>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </select>
 | 
					 | 
					 | 
					 | 
					    </select>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					</mapper>
 | 
					 | 
					 | 
					 | 
					</mapper>
 |