PublicFundManagerMapper.xml 20.8 KB
Newer Older
张亚辉's avatar
张亚辉 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tanpu.fund.mapper.generator.PublicFundManagerMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    <!--@Table public_fund_manager-->
    <id column="ts_code" jdbcType="VARCHAR" property="tsCode" />
    <id column="ann_date" jdbcType="VARCHAR" property="annDate" />
    <id column="name" jdbcType="VARCHAR" property="name" />
    <id column="end_date" jdbcType="VARCHAR" property="endDate" />
    <result column="gender" jdbcType="VARCHAR" property="gender" />
    <result column="birth_year" jdbcType="VARCHAR" property="birthYear" />
    <result column="edu" jdbcType="VARCHAR" property="edu" />
    <result column="nationality" jdbcType="VARCHAR" property="nationality" />
    <result column="begin_date" jdbcType="VARCHAR" property="beginDate" />
    <result column="resume" jdbcType="VARCHAR" property="resume" />
zp's avatar
zp committed
17
    <result column="org_id" jdbcType="VARCHAR" property="orgId" />
张亚辉's avatar
张亚辉 committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--@mbg.generated-->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--@mbg.generated-->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    ts_code, ann_date, `name`, end_date, gender, birth_year, edu, nationality, begin_date, 
zp's avatar
zp committed
82
    resume, org_id
张亚辉's avatar
张亚辉 committed
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
  </sql>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.PublicFundManagerExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from public_fund_manager
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="map" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    from public_fund_manager
    where ts_code = #{tsCode,jdbcType=VARCHAR}
      and ann_date = #{annDate,jdbcType=VARCHAR}
      and `name` = #{name,jdbcType=VARCHAR}
      and end_date = #{endDate,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="map">
    <!--@mbg.generated-->
    delete from public_fund_manager
    where ts_code = #{tsCode,jdbcType=VARCHAR}
      and ann_date = #{annDate,jdbcType=VARCHAR}
      and `name` = #{name,jdbcType=VARCHAR}
      and end_date = #{endDate,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.PublicFundManagerExample">
    <!--@mbg.generated-->
    delete from public_fund_manager
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    insert into public_fund_manager (ts_code, ann_date, `name`, 
      end_date, gender, birth_year, 
      edu, nationality, begin_date, 
zp's avatar
zp committed
129
      resume, org_id)
张亚辉's avatar
张亚辉 committed
130 131 132
    values (#{tsCode,jdbcType=VARCHAR}, #{annDate,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
      #{endDate,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR}, #{birthYear,jdbcType=VARCHAR}, 
      #{edu,jdbcType=VARCHAR}, #{nationality,jdbcType=VARCHAR}, #{beginDate,jdbcType=VARCHAR}, 
zp's avatar
zp committed
133
      #{resume,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR})
张亚辉's avatar
张亚辉 committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    insert into public_fund_manager
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="tsCode != null">
        ts_code,
      </if>
      <if test="annDate != null">
        ann_date,
      </if>
      <if test="name != null">
        `name`,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="gender != null">
        gender,
      </if>
      <if test="birthYear != null">
        birth_year,
      </if>
      <if test="edu != null">
        edu,
      </if>
      <if test="nationality != null">
        nationality,
      </if>
      <if test="beginDate != null">
        begin_date,
      </if>
      <if test="resume != null">
        resume,
      </if>
zp's avatar
zp committed
169 170 171
      <if test="orgId != null">
        org_id,
      </if>
张亚辉's avatar
张亚辉 committed
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="tsCode != null">
        #{tsCode,jdbcType=VARCHAR},
      </if>
      <if test="annDate != null">
        #{annDate,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=VARCHAR},
      </if>
      <if test="gender != null">
        #{gender,jdbcType=VARCHAR},
      </if>
      <if test="birthYear != null">
        #{birthYear,jdbcType=VARCHAR},
      </if>
      <if test="edu != null">
        #{edu,jdbcType=VARCHAR},
      </if>
      <if test="nationality != null">
        #{nationality,jdbcType=VARCHAR},
      </if>
      <if test="beginDate != null">
        #{beginDate,jdbcType=VARCHAR},
      </if>
      <if test="resume != null">
        #{resume,jdbcType=VARCHAR},
      </if>
zp's avatar
zp committed
204 205 206
      <if test="orgId != null">
        #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.PublicFundManagerExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from public_fund_manager
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update public_fund_manager
    <set>
      <if test="record.tsCode != null">
        ts_code = #{record.tsCode,jdbcType=VARCHAR},
      </if>
      <if test="record.annDate != null">
        ann_date = #{record.annDate,jdbcType=VARCHAR},
      </if>
      <if test="record.name != null">
        `name` = #{record.name,jdbcType=VARCHAR},
      </if>
      <if test="record.endDate != null">
        end_date = #{record.endDate,jdbcType=VARCHAR},
      </if>
      <if test="record.gender != null">
        gender = #{record.gender,jdbcType=VARCHAR},
      </if>
      <if test="record.birthYear != null">
        birth_year = #{record.birthYear,jdbcType=VARCHAR},
      </if>
      <if test="record.edu != null">
        edu = #{record.edu,jdbcType=VARCHAR},
      </if>
      <if test="record.nationality != null">
        nationality = #{record.nationality,jdbcType=VARCHAR},
      </if>
      <if test="record.beginDate != null">
        begin_date = #{record.beginDate,jdbcType=VARCHAR},
      </if>
      <if test="record.resume != null">
        resume = #{record.resume,jdbcType=VARCHAR},
      </if>
zp's avatar
zp committed
250 251 252
      <if test="record.orgId != null">
        org_id = #{record.orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update public_fund_manager
    set ts_code = #{record.tsCode,jdbcType=VARCHAR},
      ann_date = #{record.annDate,jdbcType=VARCHAR},
      `name` = #{record.name,jdbcType=VARCHAR},
      end_date = #{record.endDate,jdbcType=VARCHAR},
      gender = #{record.gender,jdbcType=VARCHAR},
      birth_year = #{record.birthYear,jdbcType=VARCHAR},
      edu = #{record.edu,jdbcType=VARCHAR},
      nationality = #{record.nationality,jdbcType=VARCHAR},
      begin_date = #{record.beginDate,jdbcType=VARCHAR},
zp's avatar
zp committed
270 271
      resume = #{record.resume,jdbcType=VARCHAR},
      org_id = #{record.orgId,jdbcType=VARCHAR}
张亚辉's avatar
张亚辉 committed
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    update public_fund_manager
    <set>
      <if test="gender != null">
        gender = #{gender,jdbcType=VARCHAR},
      </if>
      <if test="birthYear != null">
        birth_year = #{birthYear,jdbcType=VARCHAR},
      </if>
      <if test="edu != null">
        edu = #{edu,jdbcType=VARCHAR},
      </if>
      <if test="nationality != null">
        nationality = #{nationality,jdbcType=VARCHAR},
      </if>
      <if test="beginDate != null">
        begin_date = #{beginDate,jdbcType=VARCHAR},
      </if>
      <if test="resume != null">
        resume = #{resume,jdbcType=VARCHAR},
      </if>
zp's avatar
zp committed
298 299 300
      <if test="orgId != null">
        org_id = #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
301 302 303 304 305 306 307 308 309 310 311 312 313 314
    </set>
    where ts_code = #{tsCode,jdbcType=VARCHAR}
      and ann_date = #{annDate,jdbcType=VARCHAR}
      and `name` = #{name,jdbcType=VARCHAR}
      and end_date = #{endDate,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    update public_fund_manager
    set gender = #{gender,jdbcType=VARCHAR},
      birth_year = #{birthYear,jdbcType=VARCHAR},
      edu = #{edu,jdbcType=VARCHAR},
      nationality = #{nationality,jdbcType=VARCHAR},
      begin_date = #{beginDate,jdbcType=VARCHAR},
zp's avatar
zp committed
315 316
      resume = #{resume,jdbcType=VARCHAR},
      org_id = #{orgId,jdbcType=VARCHAR}
张亚辉's avatar
张亚辉 committed
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
    where ts_code = #{tsCode,jdbcType=VARCHAR}
      and ann_date = #{annDate,jdbcType=VARCHAR}
      and `name` = #{name,jdbcType=VARCHAR}
      and end_date = #{endDate,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update public_fund_manager
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="gender = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.gender,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="birth_year = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.birthYear,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="edu = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.edu,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="nationality = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.nationality,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="begin_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.beginDate,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="resume = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.resume,jdbcType=VARCHAR}
        </foreach>
      </trim>
zp's avatar
zp committed
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
      <trim prefix="org_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.orgId,jdbcType=VARCHAR}
        </foreach>
      </trim>
    </trim>
    where ts_code in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.tsCode,jdbcType=VARCHAR}
    </foreach>
  </update>
  <update id="updateBatchSelective" parameterType="java.util.List">
    <!--@mbg.generated-->
    update public_fund_manager
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="gender = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.gender != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.gender,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="birth_year = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.birthYear != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.birthYear,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="edu = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.edu != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.edu,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="nationality = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.nationality != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.nationality,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="begin_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.beginDate != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.beginDate,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="resume = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.resume != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.resume,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="org_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.orgId != null">
            when ts_code = #{item.tsCode,jdbcType=VARCHAR} then #{item.orgId,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
张亚辉's avatar
张亚辉 committed
420 421 422 423 424 425 426 427 428 429
    </trim>
    where ts_code in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.tsCode,jdbcType=VARCHAR}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into public_fund_manager
    (ts_code, ann_date, `name`, end_date, gender, birth_year, edu, nationality, begin_date, 
zp's avatar
zp committed
430
      resume, org_id)
张亚辉's avatar
张亚辉 committed
431 432 433 434 435
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.tsCode,jdbcType=VARCHAR}, #{item.annDate,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, 
        #{item.endDate,jdbcType=VARCHAR}, #{item.gender,jdbcType=VARCHAR}, #{item.birthYear,jdbcType=VARCHAR}, 
        #{item.edu,jdbcType=VARCHAR}, #{item.nationality,jdbcType=VARCHAR}, #{item.beginDate,jdbcType=VARCHAR}, 
zp's avatar
zp committed
436
        #{item.resume,jdbcType=VARCHAR}, #{item.orgId,jdbcType=VARCHAR})
张亚辉's avatar
张亚辉 committed
437 438 439 440 441 442
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    insert into public_fund_manager
    (ts_code, ann_date, `name`, end_date, gender, birth_year, edu, nationality, begin_date, 
zp's avatar
zp committed
443
      resume, org_id)
张亚辉's avatar
张亚辉 committed
444 445 446 447
    values
    (#{tsCode,jdbcType=VARCHAR}, #{annDate,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
      #{endDate,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR}, #{birthYear,jdbcType=VARCHAR}, 
      #{edu,jdbcType=VARCHAR}, #{nationality,jdbcType=VARCHAR}, #{beginDate,jdbcType=VARCHAR}, 
zp's avatar
zp committed
448
      #{resume,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR})
张亚辉's avatar
张亚辉 committed
449 450 451 452 453 454 455 456 457 458
    on duplicate key update 
    ts_code = #{tsCode,jdbcType=VARCHAR}, 
    ann_date = #{annDate,jdbcType=VARCHAR}, 
    `name` = #{name,jdbcType=VARCHAR}, 
    end_date = #{endDate,jdbcType=VARCHAR}, 
    gender = #{gender,jdbcType=VARCHAR}, 
    birth_year = #{birthYear,jdbcType=VARCHAR}, 
    edu = #{edu,jdbcType=VARCHAR}, 
    nationality = #{nationality,jdbcType=VARCHAR}, 
    begin_date = #{beginDate,jdbcType=VARCHAR}, 
zp's avatar
zp committed
459 460
    resume = #{resume,jdbcType=VARCHAR}, 
    org_id = #{orgId,jdbcType=VARCHAR}
张亚辉's avatar
张亚辉 committed
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.PublicFundManager">
    <!--@mbg.generated-->
    insert into public_fund_manager
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="tsCode != null">
        ts_code,
      </if>
      <if test="annDate != null">
        ann_date,
      </if>
      <if test="name != null">
        `name`,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="gender != null">
        gender,
      </if>
      <if test="birthYear != null">
        birth_year,
      </if>
      <if test="edu != null">
        edu,
      </if>
      <if test="nationality != null">
        nationality,
      </if>
      <if test="beginDate != null">
        begin_date,
      </if>
      <if test="resume != null">
        resume,
      </if>
zp's avatar
zp committed
496 497 498
      <if test="orgId != null">
        org_id,
      </if>
张亚辉's avatar
张亚辉 committed
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="tsCode != null">
        #{tsCode,jdbcType=VARCHAR},
      </if>
      <if test="annDate != null">
        #{annDate,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=VARCHAR},
      </if>
      <if test="gender != null">
        #{gender,jdbcType=VARCHAR},
      </if>
      <if test="birthYear != null">
        #{birthYear,jdbcType=VARCHAR},
      </if>
      <if test="edu != null">
        #{edu,jdbcType=VARCHAR},
      </if>
      <if test="nationality != null">
        #{nationality,jdbcType=VARCHAR},
      </if>
      <if test="beginDate != null">
        #{beginDate,jdbcType=VARCHAR},
      </if>
      <if test="resume != null">
        #{resume,jdbcType=VARCHAR},
      </if>
zp's avatar
zp committed
532 533 534
      <if test="orgId != null">
        #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="tsCode != null">
        ts_code = #{tsCode,jdbcType=VARCHAR},
      </if>
      <if test="annDate != null">
        ann_date = #{annDate,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        `name` = #{name,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=VARCHAR},
      </if>
      <if test="gender != null">
        gender = #{gender,jdbcType=VARCHAR},
      </if>
      <if test="birthYear != null">
        birth_year = #{birthYear,jdbcType=VARCHAR},
      </if>
      <if test="edu != null">
        edu = #{edu,jdbcType=VARCHAR},
      </if>
      <if test="nationality != null">
        nationality = #{nationality,jdbcType=VARCHAR},
      </if>
      <if test="beginDate != null">
        begin_date = #{beginDate,jdbcType=VARCHAR},
      </if>
      <if test="resume != null">
        resume = #{resume,jdbcType=VARCHAR},
      </if>
zp's avatar
zp committed
568 569 570
      <if test="orgId != null">
        org_id = #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
571 572 573
    </trim>
  </insert>
</mapper>