IfaImportedFundRankMapper.xml 38 KB
Newer Older
张亚辉's avatar
张亚辉 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?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.IfaImportedFundRankMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    <!--@Table ifa_imported_fund_rank-->
    <id column="fund_id" jdbcType="VARCHAR" property="fundId" />
    <result column="index" jdbcType="BIGINT" property="index" />
    <result column="range_return" jdbcType="DOUBLE" property="rangeReturn" />
    <result column="annual_return" jdbcType="DOUBLE" property="annualReturn" />
    <result column="max_drawdown" jdbcType="DOUBLE" property="maxDrawdown" />
    <result column="volatility" jdbcType="DOUBLE" property="volatility" />
    <result column="sortino_ratio" jdbcType="DOUBLE" property="sortinoRatio" />
    <result column="downside_risk" jdbcType="DOUBLE" property="downsideRisk" />
    <result column="substrategy" jdbcType="BIGINT" property="substrategy" />
    <result column="annual_return_rank" jdbcType="DOUBLE" property="annualReturnRank" />
    <result column="downside_risk_rank" jdbcType="DOUBLE" property="downsideRiskRank" />
    <result column="max_drawdown_rank" jdbcType="DOUBLE" property="maxDrawdownRank" />
    <result column="sharp_ratio_rank" jdbcType="DOUBLE" property="sharpRatioRank" />
    <result column="z_score" jdbcType="DOUBLE" property="zScore" />
zp's avatar
zp committed
21
    <result column="org_id" jdbcType="VARCHAR" property="orgId" />
张亚辉's avatar
张亚辉 committed
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 82 83 84 85 86 87 88 89 90 91 92
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    <!--@Table ifa_imported_fund_rank-->
    <result column="sharp_ratio" jdbcType="LONGVARCHAR" property="sharpRatio" />
    <result column="manager" jdbcType="LONGVARCHAR" property="manager" />
  </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-->
    fund_id, `index`, range_return, annual_return, max_drawdown, volatility, sortino_ratio, 
    downside_risk, substrategy, annual_return_rank, downside_risk_rank, max_drawdown_rank, 
zp's avatar
zp committed
93
    sharp_ratio_rank, z_score, org_id
张亚辉's avatar
张亚辉 committed
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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
  </sql>
  <sql id="Blob_Column_List">
    <!--@mbg.generated-->
    sharp_ratio, manager
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRankExample" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from ifa_imported_fund_rank
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRankExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from ifa_imported_fund_rank
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from ifa_imported_fund_rank
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from ifa_imported_fund_rank
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRankExample">
    <!--@mbg.generated-->
    delete from ifa_imported_fund_rank
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_rank (fund_id, `index`, range_return, 
      annual_return, max_drawdown, volatility, 
      sortino_ratio, downside_risk, substrategy, 
      annual_return_rank, downside_risk_rank, max_drawdown_rank, 
zp's avatar
zp committed
158 159
      sharp_ratio_rank, z_score, org_id, 
      sharp_ratio, manager)
张亚辉's avatar
张亚辉 committed
160 161 162 163
    values (#{fundId,jdbcType=VARCHAR}, #{index,jdbcType=BIGINT}, #{rangeReturn,jdbcType=DOUBLE}, 
      #{annualReturn,jdbcType=DOUBLE}, #{maxDrawdown,jdbcType=DOUBLE}, #{volatility,jdbcType=DOUBLE}, 
      #{sortinoRatio,jdbcType=DOUBLE}, #{downsideRisk,jdbcType=DOUBLE}, #{substrategy,jdbcType=BIGINT}, 
      #{annualReturnRank,jdbcType=DOUBLE}, #{downsideRiskRank,jdbcType=DOUBLE}, #{maxDrawdownRank,jdbcType=DOUBLE}, 
zp's avatar
zp committed
164 165
      #{sharpRatioRank,jdbcType=DOUBLE}, #{zScore,jdbcType=DOUBLE}, #{orgId,jdbcType=VARCHAR}, 
      #{sharpRatio,jdbcType=LONGVARCHAR}, #{manager,jdbcType=LONGVARCHAR})
张亚辉's avatar
张亚辉 committed
166 167 168 169 170 171 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 204 205 206 207 208 209 210 211 212
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_rank
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="index != null">
        `index`,
      </if>
      <if test="rangeReturn != null">
        range_return,
      </if>
      <if test="annualReturn != null">
        annual_return,
      </if>
      <if test="maxDrawdown != null">
        max_drawdown,
      </if>
      <if test="volatility != null">
        volatility,
      </if>
      <if test="sortinoRatio != null">
        sortino_ratio,
      </if>
      <if test="downsideRisk != null">
        downside_risk,
      </if>
      <if test="substrategy != null">
        substrategy,
      </if>
      <if test="annualReturnRank != null">
        annual_return_rank,
      </if>
      <if test="downsideRiskRank != null">
        downside_risk_rank,
      </if>
      <if test="maxDrawdownRank != null">
        max_drawdown_rank,
      </if>
      <if test="sharpRatioRank != null">
        sharp_ratio_rank,
      </if>
      <if test="zScore != null">
        z_score,
      </if>
zp's avatar
zp committed
213 214 215
      <if test="orgId != null">
        org_id,
      </if>
张亚辉's avatar
张亚辉 committed
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 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
      <if test="sharpRatio != null">
        sharp_ratio,
      </if>
      <if test="manager != null">
        manager,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="index != null">
        #{index,jdbcType=BIGINT},
      </if>
      <if test="rangeReturn != null">
        #{rangeReturn,jdbcType=DOUBLE},
      </if>
      <if test="annualReturn != null">
        #{annualReturn,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdown != null">
        #{maxDrawdown,jdbcType=DOUBLE},
      </if>
      <if test="volatility != null">
        #{volatility,jdbcType=DOUBLE},
      </if>
      <if test="sortinoRatio != null">
        #{sortinoRatio,jdbcType=DOUBLE},
      </if>
      <if test="downsideRisk != null">
        #{downsideRisk,jdbcType=DOUBLE},
      </if>
      <if test="substrategy != null">
        #{substrategy,jdbcType=BIGINT},
      </if>
      <if test="annualReturnRank != null">
        #{annualReturnRank,jdbcType=DOUBLE},
      </if>
      <if test="downsideRiskRank != null">
        #{downsideRiskRank,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdownRank != null">
        #{maxDrawdownRank,jdbcType=DOUBLE},
      </if>
      <if test="sharpRatioRank != null">
        #{sharpRatioRank,jdbcType=DOUBLE},
      </if>
      <if test="zScore != null">
        #{zScore,jdbcType=DOUBLE},
      </if>
zp's avatar
zp committed
266 267 268
      <if test="orgId != null">
        #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
269 270 271 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 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
      <if test="sharpRatio != null">
        #{sharpRatio,jdbcType=LONGVARCHAR},
      </if>
      <if test="manager != null">
        #{manager,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRankExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from ifa_imported_fund_rank
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    <set>
      <if test="record.fundId != null">
        fund_id = #{record.fundId,jdbcType=VARCHAR},
      </if>
      <if test="record.index != null">
        `index` = #{record.index,jdbcType=BIGINT},
      </if>
      <if test="record.rangeReturn != null">
        range_return = #{record.rangeReturn,jdbcType=DOUBLE},
      </if>
      <if test="record.annualReturn != null">
        annual_return = #{record.annualReturn,jdbcType=DOUBLE},
      </if>
      <if test="record.maxDrawdown != null">
        max_drawdown = #{record.maxDrawdown,jdbcType=DOUBLE},
      </if>
      <if test="record.volatility != null">
        volatility = #{record.volatility,jdbcType=DOUBLE},
      </if>
      <if test="record.sortinoRatio != null">
        sortino_ratio = #{record.sortinoRatio,jdbcType=DOUBLE},
      </if>
      <if test="record.downsideRisk != null">
        downside_risk = #{record.downsideRisk,jdbcType=DOUBLE},
      </if>
      <if test="record.substrategy != null">
        substrategy = #{record.substrategy,jdbcType=BIGINT},
      </if>
      <if test="record.annualReturnRank != null">
        annual_return_rank = #{record.annualReturnRank,jdbcType=DOUBLE},
      </if>
      <if test="record.downsideRiskRank != null">
        downside_risk_rank = #{record.downsideRiskRank,jdbcType=DOUBLE},
      </if>
      <if test="record.maxDrawdownRank != null">
        max_drawdown_rank = #{record.maxDrawdownRank,jdbcType=DOUBLE},
      </if>
      <if test="record.sharpRatioRank != null">
        sharp_ratio_rank = #{record.sharpRatioRank,jdbcType=DOUBLE},
      </if>
      <if test="record.zScore != null">
        z_score = #{record.zScore,jdbcType=DOUBLE},
      </if>
zp's avatar
zp committed
330 331 332
      <if test="record.orgId != null">
        org_id = #{record.orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360
      <if test="record.sharpRatio != null">
        sharp_ratio = #{record.sharpRatio,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.manager != null">
        manager = #{record.manager,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    set fund_id = #{record.fundId,jdbcType=VARCHAR},
      `index` = #{record.index,jdbcType=BIGINT},
      range_return = #{record.rangeReturn,jdbcType=DOUBLE},
      annual_return = #{record.annualReturn,jdbcType=DOUBLE},
      max_drawdown = #{record.maxDrawdown,jdbcType=DOUBLE},
      volatility = #{record.volatility,jdbcType=DOUBLE},
      sortino_ratio = #{record.sortinoRatio,jdbcType=DOUBLE},
      downside_risk = #{record.downsideRisk,jdbcType=DOUBLE},
      substrategy = #{record.substrategy,jdbcType=BIGINT},
      annual_return_rank = #{record.annualReturnRank,jdbcType=DOUBLE},
      downside_risk_rank = #{record.downsideRiskRank,jdbcType=DOUBLE},
      max_drawdown_rank = #{record.maxDrawdownRank,jdbcType=DOUBLE},
      sharp_ratio_rank = #{record.sharpRatioRank,jdbcType=DOUBLE},
      z_score = #{record.zScore,jdbcType=DOUBLE},
zp's avatar
zp committed
361
      org_id = #{record.orgId,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
      sharp_ratio = #{record.sharpRatio,jdbcType=LONGVARCHAR},
      manager = #{record.manager,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    set fund_id = #{record.fundId,jdbcType=VARCHAR},
      `index` = #{record.index,jdbcType=BIGINT},
      range_return = #{record.rangeReturn,jdbcType=DOUBLE},
      annual_return = #{record.annualReturn,jdbcType=DOUBLE},
      max_drawdown = #{record.maxDrawdown,jdbcType=DOUBLE},
      volatility = #{record.volatility,jdbcType=DOUBLE},
      sortino_ratio = #{record.sortinoRatio,jdbcType=DOUBLE},
      downside_risk = #{record.downsideRisk,jdbcType=DOUBLE},
      substrategy = #{record.substrategy,jdbcType=BIGINT},
      annual_return_rank = #{record.annualReturnRank,jdbcType=DOUBLE},
      downside_risk_rank = #{record.downsideRiskRank,jdbcType=DOUBLE},
      max_drawdown_rank = #{record.maxDrawdownRank,jdbcType=DOUBLE},
      sharp_ratio_rank = #{record.sharpRatioRank,jdbcType=DOUBLE},
zp's avatar
zp committed
384 385
      z_score = #{record.zScore,jdbcType=DOUBLE},
      org_id = #{record.orgId,jdbcType=VARCHAR}
张亚辉's avatar
张亚辉 committed
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 420 421 422 423 424 425 426 427 428 429 430 431 432
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    <set>
      <if test="index != null">
        `index` = #{index,jdbcType=BIGINT},
      </if>
      <if test="rangeReturn != null">
        range_return = #{rangeReturn,jdbcType=DOUBLE},
      </if>
      <if test="annualReturn != null">
        annual_return = #{annualReturn,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdown != null">
        max_drawdown = #{maxDrawdown,jdbcType=DOUBLE},
      </if>
      <if test="volatility != null">
        volatility = #{volatility,jdbcType=DOUBLE},
      </if>
      <if test="sortinoRatio != null">
        sortino_ratio = #{sortinoRatio,jdbcType=DOUBLE},
      </if>
      <if test="downsideRisk != null">
        downside_risk = #{downsideRisk,jdbcType=DOUBLE},
      </if>
      <if test="substrategy != null">
        substrategy = #{substrategy,jdbcType=BIGINT},
      </if>
      <if test="annualReturnRank != null">
        annual_return_rank = #{annualReturnRank,jdbcType=DOUBLE},
      </if>
      <if test="downsideRiskRank != null">
        downside_risk_rank = #{downsideRiskRank,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdownRank != null">
        max_drawdown_rank = #{maxDrawdownRank,jdbcType=DOUBLE},
      </if>
      <if test="sharpRatioRank != null">
        sharp_ratio_rank = #{sharpRatioRank,jdbcType=DOUBLE},
      </if>
      <if test="zScore != null">
        z_score = #{zScore,jdbcType=DOUBLE},
      </if>
zp's avatar
zp committed
433 434 435
      <if test="orgId != null">
        org_id = #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
      <if test="sharpRatio != null">
        sharp_ratio = #{sharpRatio,jdbcType=LONGVARCHAR},
      </if>
      <if test="manager != null">
        manager = #{manager,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    set `index` = #{index,jdbcType=BIGINT},
      range_return = #{rangeReturn,jdbcType=DOUBLE},
      annual_return = #{annualReturn,jdbcType=DOUBLE},
      max_drawdown = #{maxDrawdown,jdbcType=DOUBLE},
      volatility = #{volatility,jdbcType=DOUBLE},
      sortino_ratio = #{sortinoRatio,jdbcType=DOUBLE},
      downside_risk = #{downsideRisk,jdbcType=DOUBLE},
      substrategy = #{substrategy,jdbcType=BIGINT},
      annual_return_rank = #{annualReturnRank,jdbcType=DOUBLE},
      downside_risk_rank = #{downsideRiskRank,jdbcType=DOUBLE},
      max_drawdown_rank = #{maxDrawdownRank,jdbcType=DOUBLE},
      sharp_ratio_rank = #{sharpRatioRank,jdbcType=DOUBLE},
      z_score = #{zScore,jdbcType=DOUBLE},
zp's avatar
zp committed
461
      org_id = #{orgId,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
      sharp_ratio = #{sharpRatio,jdbcType=LONGVARCHAR},
      manager = #{manager,jdbcType=LONGVARCHAR}
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    set `index` = #{index,jdbcType=BIGINT},
      range_return = #{rangeReturn,jdbcType=DOUBLE},
      annual_return = #{annualReturn,jdbcType=DOUBLE},
      max_drawdown = #{maxDrawdown,jdbcType=DOUBLE},
      volatility = #{volatility,jdbcType=DOUBLE},
      sortino_ratio = #{sortinoRatio,jdbcType=DOUBLE},
      downside_risk = #{downsideRisk,jdbcType=DOUBLE},
      substrategy = #{substrategy,jdbcType=BIGINT},
      annual_return_rank = #{annualReturnRank,jdbcType=DOUBLE},
      downside_risk_rank = #{downsideRiskRank,jdbcType=DOUBLE},
      max_drawdown_rank = #{maxDrawdownRank,jdbcType=DOUBLE},
      sharp_ratio_rank = #{sharpRatioRank,jdbcType=DOUBLE},
zp's avatar
zp committed
481 482
      z_score = #{zScore,jdbcType=DOUBLE},
      org_id = #{orgId,jdbcType=VARCHAR}
张亚辉's avatar
张亚辉 committed
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 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 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="`index` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.index,jdbcType=BIGINT}
        </foreach>
      </trim>
      <trim prefix="range_return = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.rangeReturn,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="annual_return = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.annualReturn,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="max_drawdown = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.maxDrawdown,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="volatility = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.volatility,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="sortino_ratio = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.sortinoRatio,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="downside_risk = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.downsideRisk,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="substrategy = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=BIGINT}
        </foreach>
      </trim>
      <trim prefix="annual_return_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.annualReturnRank,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="downside_risk_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.downsideRiskRank,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="max_drawdown_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.maxDrawdownRank,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="sharp_ratio_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.sharpRatioRank,jdbcType=DOUBLE}
        </foreach>
      </trim>
      <trim prefix="z_score = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.zScore,jdbcType=DOUBLE}
        </foreach>
      </trim>
zp's avatar
zp committed
554 555 556 557 558
      <trim prefix="org_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.orgId,jdbcType=VARCHAR}
        </foreach>
      </trim>
张亚辉's avatar
张亚辉 committed
559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574
      <trim prefix="sharp_ratio = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.sharpRatio,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
      <trim prefix="manager = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.manager,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
    </trim>
    where fund_id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.fundId,jdbcType=VARCHAR}
    </foreach>
  </update>
zp's avatar
zp committed
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696
  <update id="updateBatchSelective" parameterType="java.util.List">
    <!--@mbg.generated-->
    update ifa_imported_fund_rank
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="`index` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.index != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.index,jdbcType=BIGINT}
          </if>
        </foreach>
      </trim>
      <trim prefix="range_return = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.rangeReturn != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.rangeReturn,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="annual_return = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.annualReturn != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.annualReturn,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="max_drawdown = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.maxDrawdown != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.maxDrawdown,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="volatility = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.volatility != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.volatility,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="sortino_ratio = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.sortinoRatio != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.sortinoRatio,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="downside_risk = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.downsideRisk != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.downsideRisk,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="substrategy = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.substrategy != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=BIGINT}
          </if>
        </foreach>
      </trim>
      <trim prefix="annual_return_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.annualReturnRank != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.annualReturnRank,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="downside_risk_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.downsideRiskRank != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.downsideRiskRank,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="max_drawdown_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.maxDrawdownRank != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.maxDrawdownRank,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="sharp_ratio_rank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.sharpRatioRank != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.sharpRatioRank,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="z_score = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.zScore != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.zScore,jdbcType=DOUBLE}
          </if>
        </foreach>
      </trim>
      <trim prefix="org_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.orgId != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.orgId,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="sharp_ratio = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.sharpRatio != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.sharpRatio,jdbcType=LONGVARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="manager = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.manager != null">
            when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.manager,jdbcType=LONGVARCHAR}
          </if>
        </foreach>
      </trim>
    </trim>
    where fund_id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.fundId,jdbcType=VARCHAR}
    </foreach>
  </update>
张亚辉's avatar
张亚辉 committed
697 698 699 700 701
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_rank
    (fund_id, `index`, range_return, annual_return, max_drawdown, volatility, sortino_ratio, 
      downside_risk, substrategy, annual_return_rank, downside_risk_rank, max_drawdown_rank, 
zp's avatar
zp committed
702
      sharp_ratio_rank, z_score, org_id, sharp_ratio, manager)
张亚辉's avatar
张亚辉 committed
703 704 705 706 707 708 709
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.fundId,jdbcType=VARCHAR}, #{item.index,jdbcType=BIGINT}, #{item.rangeReturn,jdbcType=DOUBLE}, 
        #{item.annualReturn,jdbcType=DOUBLE}, #{item.maxDrawdown,jdbcType=DOUBLE}, #{item.volatility,jdbcType=DOUBLE}, 
        #{item.sortinoRatio,jdbcType=DOUBLE}, #{item.downsideRisk,jdbcType=DOUBLE}, #{item.substrategy,jdbcType=BIGINT}, 
        #{item.annualReturnRank,jdbcType=DOUBLE}, #{item.downsideRiskRank,jdbcType=DOUBLE}, 
        #{item.maxDrawdownRank,jdbcType=DOUBLE}, #{item.sharpRatioRank,jdbcType=DOUBLE}, 
zp's avatar
zp committed
710 711
        #{item.zScore,jdbcType=DOUBLE}, #{item.orgId,jdbcType=VARCHAR}, #{item.sharpRatio,jdbcType=LONGVARCHAR}, 
        #{item.manager,jdbcType=LONGVARCHAR})
张亚辉's avatar
张亚辉 committed
712 713 714 715 716 717 718
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_rank
    (fund_id, `index`, range_return, annual_return, max_drawdown, volatility, sortino_ratio, 
      downside_risk, substrategy, annual_return_rank, downside_risk_rank, max_drawdown_rank, 
zp's avatar
zp committed
719
      sharp_ratio_rank, z_score, org_id)
张亚辉's avatar
张亚辉 committed
720 721 722 723 724
    values
    (#{fundId,jdbcType=VARCHAR}, #{index,jdbcType=BIGINT}, #{rangeReturn,jdbcType=DOUBLE}, 
      #{annualReturn,jdbcType=DOUBLE}, #{maxDrawdown,jdbcType=DOUBLE}, #{volatility,jdbcType=DOUBLE}, 
      #{sortinoRatio,jdbcType=DOUBLE}, #{downsideRisk,jdbcType=DOUBLE}, #{substrategy,jdbcType=BIGINT}, 
      #{annualReturnRank,jdbcType=DOUBLE}, #{downsideRiskRank,jdbcType=DOUBLE}, #{maxDrawdownRank,jdbcType=DOUBLE}, 
zp's avatar
zp committed
725 726
      #{sharpRatioRank,jdbcType=DOUBLE}, #{zScore,jdbcType=DOUBLE}, #{orgId,jdbcType=VARCHAR}
      )
张亚辉's avatar
张亚辉 committed
727 728 729 730 731 732 733 734 735 736 737 738 739 740
    on duplicate key update 
    fund_id = #{fundId,jdbcType=VARCHAR}, 
    `index` = #{index,jdbcType=BIGINT}, 
    range_return = #{rangeReturn,jdbcType=DOUBLE}, 
    annual_return = #{annualReturn,jdbcType=DOUBLE}, 
    max_drawdown = #{maxDrawdown,jdbcType=DOUBLE}, 
    volatility = #{volatility,jdbcType=DOUBLE}, 
    sortino_ratio = #{sortinoRatio,jdbcType=DOUBLE}, 
    downside_risk = #{downsideRisk,jdbcType=DOUBLE}, 
    substrategy = #{substrategy,jdbcType=BIGINT}, 
    annual_return_rank = #{annualReturnRank,jdbcType=DOUBLE}, 
    downside_risk_rank = #{downsideRiskRank,jdbcType=DOUBLE}, 
    max_drawdown_rank = #{maxDrawdownRank,jdbcType=DOUBLE}, 
    sharp_ratio_rank = #{sharpRatioRank,jdbcType=DOUBLE}, 
zp's avatar
zp committed
741 742
    z_score = #{zScore,jdbcType=DOUBLE}, 
    org_id = #{orgId,jdbcType=VARCHAR}
张亚辉's avatar
张亚辉 committed
743 744 745 746 747 748
  </insert>
  <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_rank
    (fund_id, `index`, range_return, annual_return, max_drawdown, volatility, sortino_ratio, 
      downside_risk, substrategy, annual_return_rank, downside_risk_rank, max_drawdown_rank, 
zp's avatar
zp committed
749
      sharp_ratio_rank, z_score, org_id, sharp_ratio, manager)
张亚辉's avatar
张亚辉 committed
750 751 752 753 754
    values
    (#{fundId,jdbcType=VARCHAR}, #{index,jdbcType=BIGINT}, #{rangeReturn,jdbcType=DOUBLE}, 
      #{annualReturn,jdbcType=DOUBLE}, #{maxDrawdown,jdbcType=DOUBLE}, #{volatility,jdbcType=DOUBLE}, 
      #{sortinoRatio,jdbcType=DOUBLE}, #{downsideRisk,jdbcType=DOUBLE}, #{substrategy,jdbcType=BIGINT}, 
      #{annualReturnRank,jdbcType=DOUBLE}, #{downsideRiskRank,jdbcType=DOUBLE}, #{maxDrawdownRank,jdbcType=DOUBLE}, 
zp's avatar
zp committed
755 756
      #{sharpRatioRank,jdbcType=DOUBLE}, #{zScore,jdbcType=DOUBLE}, #{orgId,jdbcType=VARCHAR}, 
      #{sharpRatio,jdbcType=LONGVARCHAR}, #{manager,jdbcType=LONGVARCHAR})
张亚辉's avatar
张亚辉 committed
757 758 759 760 761 762 763 764 765 766 767 768 769 770 771
    on duplicate key update 
    fund_id = #{fundId,jdbcType=VARCHAR}, 
    `index` = #{index,jdbcType=BIGINT}, 
    range_return = #{rangeReturn,jdbcType=DOUBLE}, 
    annual_return = #{annualReturn,jdbcType=DOUBLE}, 
    max_drawdown = #{maxDrawdown,jdbcType=DOUBLE}, 
    volatility = #{volatility,jdbcType=DOUBLE}, 
    sortino_ratio = #{sortinoRatio,jdbcType=DOUBLE}, 
    downside_risk = #{downsideRisk,jdbcType=DOUBLE}, 
    substrategy = #{substrategy,jdbcType=BIGINT}, 
    annual_return_rank = #{annualReturnRank,jdbcType=DOUBLE}, 
    downside_risk_rank = #{downsideRiskRank,jdbcType=DOUBLE}, 
    max_drawdown_rank = #{maxDrawdownRank,jdbcType=DOUBLE}, 
    sharp_ratio_rank = #{sharpRatioRank,jdbcType=DOUBLE}, 
    z_score = #{zScore,jdbcType=DOUBLE}, 
zp's avatar
zp committed
772
    org_id = #{orgId,jdbcType=VARCHAR}, 
张亚辉's avatar
张亚辉 committed
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821
    sharp_ratio = #{sharpRatio,jdbcType=LONGVARCHAR}, 
    manager = #{manager,jdbcType=LONGVARCHAR}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundRank">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_rank
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="index != null">
        `index`,
      </if>
      <if test="rangeReturn != null">
        range_return,
      </if>
      <if test="annualReturn != null">
        annual_return,
      </if>
      <if test="maxDrawdown != null">
        max_drawdown,
      </if>
      <if test="volatility != null">
        volatility,
      </if>
      <if test="sortinoRatio != null">
        sortino_ratio,
      </if>
      <if test="downsideRisk != null">
        downside_risk,
      </if>
      <if test="substrategy != null">
        substrategy,
      </if>
      <if test="annualReturnRank != null">
        annual_return_rank,
      </if>
      <if test="downsideRiskRank != null">
        downside_risk_rank,
      </if>
      <if test="maxDrawdownRank != null">
        max_drawdown_rank,
      </if>
      <if test="sharpRatioRank != null">
        sharp_ratio_rank,
      </if>
      <if test="zScore != null">
        z_score,
      </if>
zp's avatar
zp committed
822 823 824
      <if test="orgId != null">
        org_id,
      </if>
张亚辉's avatar
张亚辉 committed
825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875
      <if test="sharpRatio != null">
        sharp_ratio,
      </if>
      <if test="manager != null">
        manager,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="index != null">
        #{index,jdbcType=BIGINT},
      </if>
      <if test="rangeReturn != null">
        #{rangeReturn,jdbcType=DOUBLE},
      </if>
      <if test="annualReturn != null">
        #{annualReturn,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdown != null">
        #{maxDrawdown,jdbcType=DOUBLE},
      </if>
      <if test="volatility != null">
        #{volatility,jdbcType=DOUBLE},
      </if>
      <if test="sortinoRatio != null">
        #{sortinoRatio,jdbcType=DOUBLE},
      </if>
      <if test="downsideRisk != null">
        #{downsideRisk,jdbcType=DOUBLE},
      </if>
      <if test="substrategy != null">
        #{substrategy,jdbcType=BIGINT},
      </if>
      <if test="annualReturnRank != null">
        #{annualReturnRank,jdbcType=DOUBLE},
      </if>
      <if test="downsideRiskRank != null">
        #{downsideRiskRank,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdownRank != null">
        #{maxDrawdownRank,jdbcType=DOUBLE},
      </if>
      <if test="sharpRatioRank != null">
        #{sharpRatioRank,jdbcType=DOUBLE},
      </if>
      <if test="zScore != null">
        #{zScore,jdbcType=DOUBLE},
      </if>
zp's avatar
zp committed
876 877 878
      <if test="orgId != null">
        #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
      <if test="sharpRatio != null">
        #{sharpRatio,jdbcType=LONGVARCHAR},
      </if>
      <if test="manager != null">
        #{manager,jdbcType=LONGVARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="index != null">
        `index` = #{index,jdbcType=BIGINT},
      </if>
      <if test="rangeReturn != null">
        range_return = #{rangeReturn,jdbcType=DOUBLE},
      </if>
      <if test="annualReturn != null">
        annual_return = #{annualReturn,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdown != null">
        max_drawdown = #{maxDrawdown,jdbcType=DOUBLE},
      </if>
      <if test="volatility != null">
        volatility = #{volatility,jdbcType=DOUBLE},
      </if>
      <if test="sortinoRatio != null">
        sortino_ratio = #{sortinoRatio,jdbcType=DOUBLE},
      </if>
      <if test="downsideRisk != null">
        downside_risk = #{downsideRisk,jdbcType=DOUBLE},
      </if>
      <if test="substrategy != null">
        substrategy = #{substrategy,jdbcType=BIGINT},
      </if>
      <if test="annualReturnRank != null">
        annual_return_rank = #{annualReturnRank,jdbcType=DOUBLE},
      </if>
      <if test="downsideRiskRank != null">
        downside_risk_rank = #{downsideRiskRank,jdbcType=DOUBLE},
      </if>
      <if test="maxDrawdownRank != null">
        max_drawdown_rank = #{maxDrawdownRank,jdbcType=DOUBLE},
      </if>
      <if test="sharpRatioRank != null">
        sharp_ratio_rank = #{sharpRatioRank,jdbcType=DOUBLE},
      </if>
      <if test="zScore != null">
        z_score = #{zScore,jdbcType=DOUBLE},
      </if>
zp's avatar
zp committed
930 931 932
      <if test="orgId != null">
        org_id = #{orgId,jdbcType=VARCHAR},
      </if>
张亚辉's avatar
张亚辉 committed
933 934 935 936 937 938 939 940 941
      <if test="sharpRatio != null">
        sharp_ratio = #{sharpRatio,jdbcType=LONGVARCHAR},
      </if>
      <if test="manager != null">
        manager = #{manager,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
</mapper>