FundPerformanceMapper.xml 81.3 KB
Newer Older
张亚辉's avatar
张亚辉 committed
1 2 3 4 5 6
<?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.FundPerformanceMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
    <!--@Table fund_performance-->
张亚辉's avatar
张亚辉 committed
7
    <id column="id" jdbcType="VARCHAR" property="id" />
张亚辉's avatar
张亚辉 committed
8
    <result column="fund_id" jdbcType="VARCHAR" property="fundId" />
张亚辉's avatar
张亚辉 committed
9 10 11 12 13 14 15 16 17 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
    <result column="end_date" jdbcType="DATE" property="endDate" />
    <result column="price_date" jdbcType="DATE" property="priceDate" />
    <result column="cumulative_nav" jdbcType="DECIMAL" property="cumulativeNav" />
    <result column="ret_1day" jdbcType="DECIMAL" property="ret1day" />
    <result column="ret_1day_bm1" jdbcType="DECIMAL" property="ret1dayBm1" />
    <result column="ret_1w" jdbcType="DECIMAL" property="ret1w" />
    <result column="ret_1w_bm1" jdbcType="DECIMAL" property="ret1wBm1" />
    <result column="ret_1m" jdbcType="DECIMAL" property="ret1m" />
    <result column="ret_cum_1m" jdbcType="DECIMAL" property="retCum1m" />
    <result column="ret_1m_bm1" jdbcType="DECIMAL" property="ret1mBm1" />
    <result column="ret_cum_1m_bm1" jdbcType="DECIMAL" property="retCum1mBm1" />
    <result column="ret_3m" jdbcType="DECIMAL" property="ret3m" />
    <result column="ret_3m_bm1" jdbcType="DECIMAL" property="ret3mBm1" />
    <result column="ret_cum_3m" jdbcType="DECIMAL" property="retCum3m" />
    <result column="ret_cum_3m_bm1" jdbcType="DECIMAL" property="retCum3mBm1" />
    <result column="ret_6m" jdbcType="DECIMAL" property="ret6m" />
    <result column="ret_cum_6m" jdbcType="DECIMAL" property="retCum6m" />
    <result column="ret_6m_bm1" jdbcType="DECIMAL" property="ret6mBm1" />
    <result column="ret_cum_6m_bm1" jdbcType="DECIMAL" property="retCum6mBm1" />
    <result column="ret_1y" jdbcType="DECIMAL" property="ret1y" />
    <result column="ret_cum_1y" jdbcType="DECIMAL" property="retCum1y" />
    <result column="ret_1y_bm1" jdbcType="DECIMAL" property="ret1yBm1" />
    <result column="ret_cum_1y_bm1" jdbcType="DECIMAL" property="retCum1yBm1" />
    <result column="ret_2y" jdbcType="DECIMAL" property="ret2y" />
    <result column="ret_cum_2y" jdbcType="DECIMAL" property="retCum2y" />
    <result column="ret_2y_bm1" jdbcType="DECIMAL" property="ret2yBm1" />
    <result column="ret_cum_2y_bm1" jdbcType="DECIMAL" property="retCum2yBm1" />
    <result column="ret_2y_a" jdbcType="DECIMAL" property="ret2yA" />
    <result column="ret_2y_bm1_a" jdbcType="DECIMAL" property="ret2yBm1A" />
    <result column="ret_3y" jdbcType="DECIMAL" property="ret3y" />
    <result column="ret_cum_3y" jdbcType="DECIMAL" property="retCum3y" />
    <result column="ret_3y_bm1" jdbcType="DECIMAL" property="ret3yBm1" />
    <result column="ret_cum_3y_bm1" jdbcType="DECIMAL" property="retCum3yBm1" />
    <result column="ret_3y_a" jdbcType="DECIMAL" property="ret3yA" />
    <result column="ret_3y_bm1_a" jdbcType="DECIMAL" property="ret3yBm1A" />
    <result column="ret_4y" jdbcType="DECIMAL" property="ret4y" />
    <result column="ret_cum_4y" jdbcType="DECIMAL" property="retCum4y" />
    <result column="ret_4y_bm1" jdbcType="DECIMAL" property="ret4yBm1" />
    <result column="ret_cum_4y_bm1" jdbcType="DECIMAL" property="retCum4yBm1" />
    <result column="ret_4y_a" jdbcType="DECIMAL" property="ret4yA" />
    <result column="ret_4y_bm1_a" jdbcType="DECIMAL" property="ret4yBm1A" />
    <result column="ret_5y" jdbcType="DECIMAL" property="ret5y" />
    <result column="ret_cum_5y" jdbcType="DECIMAL" property="retCum5y" />
    <result column="ret_5y_bm1" jdbcType="DECIMAL" property="ret5yBm1" />
    <result column="ret_cum_5y_bm1" jdbcType="DECIMAL" property="retCum5yBm1" />
    <result column="ret_5y_a" jdbcType="DECIMAL" property="ret5yA" />
    <result column="ret_5y_bm1_a" jdbcType="DECIMAL" property="ret5yBm1A" />
    <result column="ret_ytd" jdbcType="DECIMAL" property="retYtd" />
    <result column="ret_cum_ytd" jdbcType="DECIMAL" property="retCumYtd" />
    <result column="ret_ytd_bm1" jdbcType="DECIMAL" property="retYtdBm1" />
    <result column="ret_cum_ytd_bm1" jdbcType="DECIMAL" property="retCumYtdBm1" />
    <result column="ret_incep" jdbcType="DECIMAL" property="retIncep" />
    <result column="ret_cum_incep" jdbcType="DECIMAL" property="retCumIncep" />
    <result column="ret_incep_bm1" jdbcType="DECIMAL" property="retIncepBm1" />
    <result column="ret_cum_incep_bm1" jdbcType="DECIMAL" property="retCumIncepBm1" />
    <result column="ret_incep_a" jdbcType="DECIMAL" property="retIncepA" />
    <result column="ret_incep_bm1_a" jdbcType="DECIMAL" property="retIncepBm1A" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
张亚辉's avatar
张亚辉 committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 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 129 130 131
  </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-->
张亚辉's avatar
张亚辉 committed
132 133 134 135 136 137 138 139 140
    id, fund_id, end_date, price_date, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, 
    ret_1w_bm1, ret_1m, ret_cum_1m, ret_1m_bm1, ret_cum_1m_bm1, ret_3m, ret_3m_bm1, ret_cum_3m, 
    ret_cum_3m_bm1, ret_6m, ret_cum_6m, ret_6m_bm1, ret_cum_6m_bm1, ret_1y, ret_cum_1y, 
    ret_1y_bm1, ret_cum_1y_bm1, ret_2y, ret_cum_2y, ret_2y_bm1, ret_cum_2y_bm1, ret_2y_a, 
    ret_2y_bm1_a, ret_3y, ret_cum_3y, ret_3y_bm1, ret_cum_3y_bm1, ret_3y_a, ret_3y_bm1_a, 
    ret_4y, ret_cum_4y, ret_4y_bm1, ret_cum_4y_bm1, ret_4y_a, ret_4y_bm1_a, ret_5y, ret_cum_5y, 
    ret_5y_bm1, ret_cum_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_cum_ytd, ret_ytd_bm1, 
    ret_cum_ytd_bm1, ret_incep, ret_cum_incep, ret_incep_bm1, ret_cum_incep_bm1, ret_incep_a, 
    ret_incep_bm1_a, update_time, create_time, delete_tag
张亚辉's avatar
张亚辉 committed
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
  </sql>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.FundPerformanceExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from fund_performance
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
张亚辉's avatar
张亚辉 committed
157 158 159 160 161 162 163 164 165 166 167 168
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    from fund_performance
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from fund_performance
    where id = #{id,jdbcType=VARCHAR}
  </delete>
张亚辉's avatar
张亚辉 committed
169 170 171 172 173 174 175 176 177
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.FundPerformanceExample">
    <!--@mbg.generated-->
    delete from fund_performance
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
张亚辉's avatar
张亚辉 committed
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 213 214 215 216 217 218 219
    insert into fund_performance (id, fund_id, end_date, 
      price_date, cumulative_nav, ret_1day, 
      ret_1day_bm1, ret_1w, ret_1w_bm1, 
      ret_1m, ret_cum_1m, ret_1m_bm1, 
      ret_cum_1m_bm1, ret_3m, ret_3m_bm1, 
      ret_cum_3m, ret_cum_3m_bm1, ret_6m, 
      ret_cum_6m, ret_6m_bm1, ret_cum_6m_bm1, 
      ret_1y, ret_cum_1y, ret_1y_bm1, 
      ret_cum_1y_bm1, ret_2y, ret_cum_2y, 
      ret_2y_bm1, ret_cum_2y_bm1, ret_2y_a, 
      ret_2y_bm1_a, ret_3y, ret_cum_3y, 
      ret_3y_bm1, ret_cum_3y_bm1, ret_3y_a, 
      ret_3y_bm1_a, ret_4y, ret_cum_4y, 
      ret_4y_bm1, ret_cum_4y_bm1, ret_4y_a, 
      ret_4y_bm1_a, ret_5y, ret_cum_5y, 
      ret_5y_bm1, ret_cum_5y_bm1, ret_5y_a, 
      ret_5y_bm1_a, ret_ytd, ret_cum_ytd, 
      ret_ytd_bm1, ret_cum_ytd_bm1, ret_incep, 
      ret_cum_incep, ret_incep_bm1, ret_cum_incep_bm1, 
      ret_incep_a, ret_incep_bm1_a, update_time, 
      create_time, delete_tag)
    values (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{endDate,jdbcType=DATE}, 
      #{priceDate,jdbcType=DATE}, #{cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, 
      #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, 
      #{ret1m,jdbcType=DECIMAL}, #{retCum1m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, 
      #{retCum1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, 
      #{retCum3m,jdbcType=DECIMAL}, #{retCum3mBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, 
      #{retCum6m,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{retCum6mBm1,jdbcType=DECIMAL}, 
      #{ret1y,jdbcType=DECIMAL}, #{retCum1y,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, 
      #{retCum1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{retCum2y,jdbcType=DECIMAL}, 
      #{ret2yBm1,jdbcType=DECIMAL}, #{retCum2yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, 
      #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{retCum3y,jdbcType=DECIMAL}, 
      #{ret3yBm1,jdbcType=DECIMAL}, #{retCum3yBm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, 
      #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, #{retCum4y,jdbcType=DECIMAL}, 
      #{ret4yBm1,jdbcType=DECIMAL}, #{retCum4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, 
      #{ret4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{retCum5y,jdbcType=DECIMAL}, 
      #{ret5yBm1,jdbcType=DECIMAL}, #{retCum5yBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, 
      #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retCumYtd,jdbcType=DECIMAL}, 
      #{retYtdBm1,jdbcType=DECIMAL}, #{retCumYtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, 
      #{retCumIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retCumIncepBm1,jdbcType=DECIMAL}, 
      #{retIncepA,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{createTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER})
张亚辉's avatar
张亚辉 committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
    insert into fund_performance
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
张亚辉's avatar
张亚辉 committed
234 235 236
      <if test="priceDate != null">
        price_date,
      </if>
张亚辉's avatar
张亚辉 committed
237 238 239
      <if test="cumulativeNav != null">
        cumulative_nav,
      </if>
张亚辉's avatar
张亚辉 committed
240 241 242 243 244 245 246 247 248 249 250 251
      <if test="ret1day != null">
        ret_1day,
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1,
      </if>
      <if test="ret1w != null">
        ret_1w,
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
252 253 254
      <if test="ret1m != null">
        ret_1m,
      </if>
张亚辉's avatar
张亚辉 committed
255 256 257
      <if test="retCum1m != null">
        ret_cum_1m,
      </if>
张亚辉's avatar
张亚辉 committed
258 259 260
      <if test="ret1mBm1 != null">
        ret_1m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
261 262 263
      <if test="retCum1mBm1 != null">
        ret_cum_1m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
264 265 266 267 268 269
      <if test="ret3m != null">
        ret_3m,
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
270 271 272 273 274 275
      <if test="retCum3m != null">
        ret_cum_3m,
      </if>
      <if test="retCum3mBm1 != null">
        ret_cum_3m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
276 277 278
      <if test="ret6m != null">
        ret_6m,
      </if>
张亚辉's avatar
张亚辉 committed
279 280 281
      <if test="retCum6m != null">
        ret_cum_6m,
      </if>
张亚辉's avatar
张亚辉 committed
282 283 284
      <if test="ret6mBm1 != null">
        ret_6m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
285 286 287
      <if test="retCum6mBm1 != null">
        ret_cum_6m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
288 289 290
      <if test="ret1y != null">
        ret_1y,
      </if>
张亚辉's avatar
张亚辉 committed
291 292 293
      <if test="retCum1y != null">
        ret_cum_1y,
      </if>
张亚辉's avatar
张亚辉 committed
294 295 296
      <if test="ret1yBm1 != null">
        ret_1y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
297 298 299
      <if test="retCum1yBm1 != null">
        ret_cum_1y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
300 301 302
      <if test="ret2y != null">
        ret_2y,
      </if>
张亚辉's avatar
张亚辉 committed
303 304 305
      <if test="retCum2y != null">
        ret_cum_2y,
      </if>
张亚辉's avatar
张亚辉 committed
306 307 308
      <if test="ret2yBm1 != null">
        ret_2y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
309 310 311
      <if test="retCum2yBm1 != null">
        ret_cum_2y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
312 313 314
      <if test="ret2yA != null">
        ret_2y_a,
      </if>
张亚辉's avatar
张亚辉 committed
315 316
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a,
张亚辉's avatar
张亚辉 committed
317 318 319 320
      </if>
      <if test="ret3y != null">
        ret_3y,
      </if>
张亚辉's avatar
张亚辉 committed
321 322 323
      <if test="retCum3y != null">
        ret_cum_3y,
      </if>
张亚辉's avatar
张亚辉 committed
324 325 326
      <if test="ret3yBm1 != null">
        ret_3y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
327 328 329
      <if test="retCum3yBm1 != null">
        ret_cum_3y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
330 331 332
      <if test="ret3yA != null">
        ret_3y_a,
      </if>
张亚辉's avatar
张亚辉 committed
333 334
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a,
张亚辉's avatar
张亚辉 committed
335 336 337 338
      </if>
      <if test="ret4y != null">
        ret_4y,
      </if>
张亚辉's avatar
张亚辉 committed
339 340 341
      <if test="retCum4y != null">
        ret_cum_4y,
      </if>
张亚辉's avatar
张亚辉 committed
342 343 344
      <if test="ret4yBm1 != null">
        ret_4y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
345 346 347
      <if test="retCum4yBm1 != null">
        ret_cum_4y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
348 349 350
      <if test="ret4yA != null">
        ret_4y_a,
      </if>
张亚辉's avatar
张亚辉 committed
351 352
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a,
张亚辉's avatar
张亚辉 committed
353 354 355 356
      </if>
      <if test="ret5y != null">
        ret_5y,
      </if>
张亚辉's avatar
张亚辉 committed
357 358 359
      <if test="retCum5y != null">
        ret_cum_5y,
      </if>
张亚辉's avatar
张亚辉 committed
360 361 362
      <if test="ret5yBm1 != null">
        ret_5y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
363 364 365
      <if test="retCum5yBm1 != null">
        ret_cum_5y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
366 367 368
      <if test="ret5yA != null">
        ret_5y_a,
      </if>
张亚辉's avatar
张亚辉 committed
369 370
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a,
张亚辉's avatar
张亚辉 committed
371 372 373 374
      </if>
      <if test="retYtd != null">
        ret_ytd,
      </if>
张亚辉's avatar
张亚辉 committed
375 376 377
      <if test="retCumYtd != null">
        ret_cum_ytd,
      </if>
张亚辉's avatar
张亚辉 committed
378 379 380
      <if test="retYtdBm1 != null">
        ret_ytd_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
381 382 383
      <if test="retCumYtdBm1 != null">
        ret_cum_ytd_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
384 385 386
      <if test="retIncep != null">
        ret_incep,
      </if>
张亚辉's avatar
张亚辉 committed
387 388 389 390 391 392 393 394
      <if test="retCumIncep != null">
        ret_cum_incep,
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1,
      </if>
      <if test="retCumIncepBm1 != null">
        ret_cum_incep_bm1,
张亚辉's avatar
张亚辉 committed
395 396 397 398
      </if>
      <if test="retIncepA != null">
        ret_incep_a,
      </if>
张亚辉's avatar
张亚辉 committed
399 400
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a,
张亚辉's avatar
张亚辉 committed
401
      </if>
张亚辉's avatar
张亚辉 committed
402 403
      <if test="updateTime != null">
        update_time,
张亚辉's avatar
张亚辉 committed
404
      </if>
张亚辉's avatar
张亚辉 committed
405 406
      <if test="createTime != null">
        create_time,
张亚辉's avatar
张亚辉 committed
407
      </if>
张亚辉's avatar
张亚辉 committed
408 409
      <if test="deleteTag != null">
        delete_tag,
张亚辉's avatar
张亚辉 committed
410 411 412 413
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
张亚辉's avatar
张亚辉 committed
414
        #{id,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
415 416 417 418 419
      </if>
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
张亚辉's avatar
张亚辉 committed
420 421 422 423
        #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        #{priceDate,jdbcType=DATE},
张亚辉's avatar
张亚辉 committed
424 425
      </if>
      <if test="cumulativeNav != null">
张亚辉's avatar
张亚辉 committed
426 427 428 429 430 431 432 433 434 435 436 437 438
        #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        #{ret1wBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
439 440
      </if>
      <if test="ret1m != null">
张亚辉's avatar
张亚辉 committed
441 442 443 444
        #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="retCum1m != null">
        #{retCum1m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
445 446
      </if>
      <if test="ret1mBm1 != null">
张亚辉's avatar
张亚辉 committed
447 448 449 450
        #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1mBm1 != null">
        #{retCum1mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
451 452
      </if>
      <if test="ret3m != null">
张亚辉's avatar
张亚辉 committed
453
        #{ret3m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
454 455
      </if>
      <if test="ret3mBm1 != null">
张亚辉's avatar
张亚辉 committed
456 457 458 459 460 461 462
        #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3m != null">
        #{retCum3m,jdbcType=DECIMAL},
      </if>
      <if test="retCum3mBm1 != null">
        #{retCum3mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
463 464
      </if>
      <if test="ret6m != null">
张亚辉's avatar
张亚辉 committed
465 466 467 468
        #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="retCum6m != null">
        #{retCum6m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
469 470
      </if>
      <if test="ret6mBm1 != null">
张亚辉's avatar
张亚辉 committed
471 472 473 474
        #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum6mBm1 != null">
        #{retCum6mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
475 476
      </if>
      <if test="ret1y != null">
张亚辉's avatar
张亚辉 committed
477 478 479 480
        #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="retCum1y != null">
        #{retCum1y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
481 482
      </if>
      <if test="ret1yBm1 != null">
张亚辉's avatar
张亚辉 committed
483 484 485 486
        #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1yBm1 != null">
        #{retCum1yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
487 488
      </if>
      <if test="ret2y != null">
张亚辉's avatar
张亚辉 committed
489 490 491 492
        #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="retCum2y != null">
        #{retCum2y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
493 494
      </if>
      <if test="ret2yBm1 != null">
张亚辉's avatar
张亚辉 committed
495 496 497 498
        #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum2yBm1 != null">
        #{retCum2yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
499 500
      </if>
      <if test="ret2yA != null">
张亚辉's avatar
张亚辉 committed
501
        #{ret2yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
502
      </if>
张亚辉's avatar
张亚辉 committed
503 504
      <if test="ret2yBm1A != null">
        #{ret2yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
505 506
      </if>
      <if test="ret3y != null">
张亚辉's avatar
张亚辉 committed
507 508 509 510
        #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="retCum3y != null">
        #{retCum3y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
511 512
      </if>
      <if test="ret3yBm1 != null">
张亚辉's avatar
张亚辉 committed
513 514 515 516
        #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3yBm1 != null">
        #{retCum3yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
517 518
      </if>
      <if test="ret3yA != null">
张亚辉's avatar
张亚辉 committed
519
        #{ret3yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
520
      </if>
张亚辉's avatar
张亚辉 committed
521 522
      <if test="ret3yBm1A != null">
        #{ret3yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
523 524
      </if>
      <if test="ret4y != null">
张亚辉's avatar
张亚辉 committed
525 526 527 528
        #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="retCum4y != null">
        #{retCum4y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
529 530
      </if>
      <if test="ret4yBm1 != null">
张亚辉's avatar
张亚辉 committed
531 532 533 534
        #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum4yBm1 != null">
        #{retCum4yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
535 536
      </if>
      <if test="ret4yA != null">
张亚辉's avatar
张亚辉 committed
537
        #{ret4yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
538
      </if>
张亚辉's avatar
张亚辉 committed
539 540
      <if test="ret4yBm1A != null">
        #{ret4yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
541 542
      </if>
      <if test="ret5y != null">
张亚辉's avatar
张亚辉 committed
543
        #{ret5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
544
      </if>
张亚辉's avatar
张亚辉 committed
545 546
      <if test="retCum5y != null">
        #{retCum5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
547 548
      </if>
      <if test="ret5yBm1 != null">
张亚辉's avatar
张亚辉 committed
549
        #{ret5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
550
      </if>
张亚辉's avatar
张亚辉 committed
551 552
      <if test="retCum5yBm1 != null">
        #{retCum5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
553
      </if>
张亚辉's avatar
张亚辉 committed
554 555
      <if test="ret5yA != null">
        #{ret5yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
556
      </if>
张亚辉's avatar
张亚辉 committed
557 558
      <if test="ret5yBm1A != null">
        #{ret5yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
559 560
      </if>
      <if test="retYtd != null">
张亚辉's avatar
张亚辉 committed
561 562 563 564
        #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtd != null">
        #{retCumYtd,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
565 566
      </if>
      <if test="retYtdBm1 != null">
张亚辉's avatar
张亚辉 committed
567 568 569 570
        #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtdBm1 != null">
        #{retCumYtdBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
571 572
      </if>
      <if test="retIncep != null">
张亚辉's avatar
张亚辉 committed
573 574 575 576
        #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retCumIncep != null">
        #{retCumIncep,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
577
      </if>
张亚辉's avatar
张亚辉 committed
578 579 580 581 582
      <if test="retIncepBm1 != null">
        #{retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCumIncepBm1 != null">
        #{retCumIncepBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
583 584
      </if>
      <if test="retIncepA != null">
张亚辉's avatar
张亚辉 committed
585
        #{retIncepA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
586
      </if>
张亚辉's avatar
张亚辉 committed
587 588
      <if test="retIncepBm1A != null">
        #{retIncepBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
589
      </if>
张亚辉's avatar
张亚辉 committed
590 591
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
592
      </if>
张亚辉's avatar
张亚辉 committed
593 594
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
595
      </if>
张亚辉's avatar
张亚辉 committed
596 597
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
张亚辉's avatar
张亚辉 committed
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.FundPerformanceExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from fund_performance
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update fund_performance
    <set>
      <if test="record.id != null">
张亚辉's avatar
张亚辉 committed
613
        id = #{record.id,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
614 615 616 617 618
      </if>
      <if test="record.fundId != null">
        fund_id = #{record.fundId,jdbcType=VARCHAR},
      </if>
      <if test="record.endDate != null">
张亚辉's avatar
张亚辉 committed
619 620 621 622
        end_date = #{record.endDate,jdbcType=DATE},
      </if>
      <if test="record.priceDate != null">
        price_date = #{record.priceDate,jdbcType=DATE},
张亚辉's avatar
张亚辉 committed
623 624
      </if>
      <if test="record.cumulativeNav != null">
张亚辉's avatar
张亚辉 committed
625 626 627 628 629 630 631 632 633 634 635 636 637
        cumulative_nav = #{record.cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1day != null">
        ret_1day = #{record.ret1day,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1dayBm1 != null">
        ret_1day_bm1 = #{record.ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1w != null">
        ret_1w = #{record.ret1w,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1wBm1 != null">
        ret_1w_bm1 = #{record.ret1wBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
638 639
      </if>
      <if test="record.ret1m != null">
张亚辉's avatar
张亚辉 committed
640 641 642 643
        ret_1m = #{record.ret1m,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum1m != null">
        ret_cum_1m = #{record.retCum1m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
644 645
      </if>
      <if test="record.ret1mBm1 != null">
张亚辉's avatar
张亚辉 committed
646 647 648 649
        ret_1m_bm1 = #{record.ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum1mBm1 != null">
        ret_cum_1m_bm1 = #{record.retCum1mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
650 651
      </if>
      <if test="record.ret3m != null">
张亚辉's avatar
张亚辉 committed
652
        ret_3m = #{record.ret3m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
653 654
      </if>
      <if test="record.ret3mBm1 != null">
张亚辉's avatar
张亚辉 committed
655 656 657 658 659 660 661
        ret_3m_bm1 = #{record.ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum3m != null">
        ret_cum_3m = #{record.retCum3m,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum3mBm1 != null">
        ret_cum_3m_bm1 = #{record.retCum3mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
662 663
      </if>
      <if test="record.ret6m != null">
张亚辉's avatar
张亚辉 committed
664 665 666 667
        ret_6m = #{record.ret6m,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum6m != null">
        ret_cum_6m = #{record.retCum6m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
668 669
      </if>
      <if test="record.ret6mBm1 != null">
张亚辉's avatar
张亚辉 committed
670 671 672 673
        ret_6m_bm1 = #{record.ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum6mBm1 != null">
        ret_cum_6m_bm1 = #{record.retCum6mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
674 675
      </if>
      <if test="record.ret1y != null">
张亚辉's avatar
张亚辉 committed
676 677 678 679
        ret_1y = #{record.ret1y,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum1y != null">
        ret_cum_1y = #{record.retCum1y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
680 681
      </if>
      <if test="record.ret1yBm1 != null">
张亚辉's avatar
张亚辉 committed
682 683 684 685
        ret_1y_bm1 = #{record.ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum1yBm1 != null">
        ret_cum_1y_bm1 = #{record.retCum1yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
686 687
      </if>
      <if test="record.ret2y != null">
张亚辉's avatar
张亚辉 committed
688 689 690 691
        ret_2y = #{record.ret2y,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum2y != null">
        ret_cum_2y = #{record.retCum2y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
692 693
      </if>
      <if test="record.ret2yBm1 != null">
张亚辉's avatar
张亚辉 committed
694 695 696 697
        ret_2y_bm1 = #{record.ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum2yBm1 != null">
        ret_cum_2y_bm1 = #{record.retCum2yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
698 699
      </if>
      <if test="record.ret2yA != null">
张亚辉's avatar
张亚辉 committed
700
        ret_2y_a = #{record.ret2yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
701
      </if>
张亚辉's avatar
张亚辉 committed
702 703
      <if test="record.ret2yBm1A != null">
        ret_2y_bm1_a = #{record.ret2yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
704 705
      </if>
      <if test="record.ret3y != null">
张亚辉's avatar
张亚辉 committed
706 707 708 709
        ret_3y = #{record.ret3y,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum3y != null">
        ret_cum_3y = #{record.retCum3y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
710 711
      </if>
      <if test="record.ret3yBm1 != null">
张亚辉's avatar
张亚辉 committed
712 713 714 715
        ret_3y_bm1 = #{record.ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum3yBm1 != null">
        ret_cum_3y_bm1 = #{record.retCum3yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
716 717
      </if>
      <if test="record.ret3yA != null">
张亚辉's avatar
张亚辉 committed
718
        ret_3y_a = #{record.ret3yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
719
      </if>
张亚辉's avatar
张亚辉 committed
720 721
      <if test="record.ret3yBm1A != null">
        ret_3y_bm1_a = #{record.ret3yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
722 723
      </if>
      <if test="record.ret4y != null">
张亚辉's avatar
张亚辉 committed
724 725 726 727
        ret_4y = #{record.ret4y,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum4y != null">
        ret_cum_4y = #{record.retCum4y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
728 729
      </if>
      <if test="record.ret4yBm1 != null">
张亚辉's avatar
张亚辉 committed
730 731 732 733
        ret_4y_bm1 = #{record.ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCum4yBm1 != null">
        ret_cum_4y_bm1 = #{record.retCum4yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
734 735
      </if>
      <if test="record.ret4yA != null">
张亚辉's avatar
张亚辉 committed
736
        ret_4y_a = #{record.ret4yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
737
      </if>
张亚辉's avatar
张亚辉 committed
738 739
      <if test="record.ret4yBm1A != null">
        ret_4y_bm1_a = #{record.ret4yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
740 741
      </if>
      <if test="record.ret5y != null">
张亚辉's avatar
张亚辉 committed
742
        ret_5y = #{record.ret5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
743
      </if>
张亚辉's avatar
张亚辉 committed
744 745
      <if test="record.retCum5y != null">
        ret_cum_5y = #{record.retCum5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
746 747
      </if>
      <if test="record.ret5yBm1 != null">
张亚辉's avatar
张亚辉 committed
748
        ret_5y_bm1 = #{record.ret5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
749
      </if>
张亚辉's avatar
张亚辉 committed
750 751
      <if test="record.retCum5yBm1 != null">
        ret_cum_5y_bm1 = #{record.retCum5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
752
      </if>
张亚辉's avatar
张亚辉 committed
753 754
      <if test="record.ret5yA != null">
        ret_5y_a = #{record.ret5yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
755
      </if>
张亚辉's avatar
张亚辉 committed
756 757
      <if test="record.ret5yBm1A != null">
        ret_5y_bm1_a = #{record.ret5yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
758 759
      </if>
      <if test="record.retYtd != null">
张亚辉's avatar
张亚辉 committed
760 761 762 763
        ret_ytd = #{record.retYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.retCumYtd != null">
        ret_cum_ytd = #{record.retCumYtd,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
764 765
      </if>
      <if test="record.retYtdBm1 != null">
张亚辉's avatar
张亚辉 committed
766 767 768 769
        ret_ytd_bm1 = #{record.retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCumYtdBm1 != null">
        ret_cum_ytd_bm1 = #{record.retCumYtdBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
770 771
      </if>
      <if test="record.retIncep != null">
张亚辉's avatar
张亚辉 committed
772
        ret_incep = #{record.retIncep,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
773
      </if>
张亚辉's avatar
张亚辉 committed
774 775 776 777 778 779 780 781
      <if test="record.retCumIncep != null">
        ret_cum_incep = #{record.retCumIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.retIncepBm1 != null">
        ret_incep_bm1 = #{record.retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retCumIncepBm1 != null">
        ret_cum_incep_bm1 = #{record.retCumIncepBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
782 783
      </if>
      <if test="record.retIncepA != null">
张亚辉's avatar
张亚辉 committed
784
        ret_incep_a = #{record.retIncepA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
785
      </if>
张亚辉's avatar
张亚辉 committed
786 787
      <if test="record.retIncepBm1A != null">
        ret_incep_bm1_a = #{record.retIncepBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
788
      </if>
张亚辉's avatar
张亚辉 committed
789 790
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
791
      </if>
张亚辉's avatar
张亚辉 committed
792 793
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
794
      </if>
张亚辉's avatar
张亚辉 committed
795 796
      <if test="record.deleteTag != null">
        delete_tag = #{record.deleteTag,jdbcType=INTEGER},
张亚辉's avatar
张亚辉 committed
797 798 799 800 801 802 803 804 805
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update fund_performance
张亚辉's avatar
张亚辉 committed
806
    set id = #{record.id,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
807
      fund_id = #{record.fundId,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 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
      end_date = #{record.endDate,jdbcType=DATE},
      price_date = #{record.priceDate,jdbcType=DATE},
      cumulative_nav = #{record.cumulativeNav,jdbcType=DECIMAL},
      ret_1day = #{record.ret1day,jdbcType=DECIMAL},
      ret_1day_bm1 = #{record.ret1dayBm1,jdbcType=DECIMAL},
      ret_1w = #{record.ret1w,jdbcType=DECIMAL},
      ret_1w_bm1 = #{record.ret1wBm1,jdbcType=DECIMAL},
      ret_1m = #{record.ret1m,jdbcType=DECIMAL},
      ret_cum_1m = #{record.retCum1m,jdbcType=DECIMAL},
      ret_1m_bm1 = #{record.ret1mBm1,jdbcType=DECIMAL},
      ret_cum_1m_bm1 = #{record.retCum1mBm1,jdbcType=DECIMAL},
      ret_3m = #{record.ret3m,jdbcType=DECIMAL},
      ret_3m_bm1 = #{record.ret3mBm1,jdbcType=DECIMAL},
      ret_cum_3m = #{record.retCum3m,jdbcType=DECIMAL},
      ret_cum_3m_bm1 = #{record.retCum3mBm1,jdbcType=DECIMAL},
      ret_6m = #{record.ret6m,jdbcType=DECIMAL},
      ret_cum_6m = #{record.retCum6m,jdbcType=DECIMAL},
      ret_6m_bm1 = #{record.ret6mBm1,jdbcType=DECIMAL},
      ret_cum_6m_bm1 = #{record.retCum6mBm1,jdbcType=DECIMAL},
      ret_1y = #{record.ret1y,jdbcType=DECIMAL},
      ret_cum_1y = #{record.retCum1y,jdbcType=DECIMAL},
      ret_1y_bm1 = #{record.ret1yBm1,jdbcType=DECIMAL},
      ret_cum_1y_bm1 = #{record.retCum1yBm1,jdbcType=DECIMAL},
      ret_2y = #{record.ret2y,jdbcType=DECIMAL},
      ret_cum_2y = #{record.retCum2y,jdbcType=DECIMAL},
      ret_2y_bm1 = #{record.ret2yBm1,jdbcType=DECIMAL},
      ret_cum_2y_bm1 = #{record.retCum2yBm1,jdbcType=DECIMAL},
      ret_2y_a = #{record.ret2yA,jdbcType=DECIMAL},
      ret_2y_bm1_a = #{record.ret2yBm1A,jdbcType=DECIMAL},
      ret_3y = #{record.ret3y,jdbcType=DECIMAL},
      ret_cum_3y = #{record.retCum3y,jdbcType=DECIMAL},
      ret_3y_bm1 = #{record.ret3yBm1,jdbcType=DECIMAL},
      ret_cum_3y_bm1 = #{record.retCum3yBm1,jdbcType=DECIMAL},
      ret_3y_a = #{record.ret3yA,jdbcType=DECIMAL},
      ret_3y_bm1_a = #{record.ret3yBm1A,jdbcType=DECIMAL},
      ret_4y = #{record.ret4y,jdbcType=DECIMAL},
      ret_cum_4y = #{record.retCum4y,jdbcType=DECIMAL},
      ret_4y_bm1 = #{record.ret4yBm1,jdbcType=DECIMAL},
      ret_cum_4y_bm1 = #{record.retCum4yBm1,jdbcType=DECIMAL},
      ret_4y_a = #{record.ret4yA,jdbcType=DECIMAL},
      ret_4y_bm1_a = #{record.ret4yBm1A,jdbcType=DECIMAL},
      ret_5y = #{record.ret5y,jdbcType=DECIMAL},
      ret_cum_5y = #{record.retCum5y,jdbcType=DECIMAL},
      ret_5y_bm1 = #{record.ret5yBm1,jdbcType=DECIMAL},
      ret_cum_5y_bm1 = #{record.retCum5yBm1,jdbcType=DECIMAL},
      ret_5y_a = #{record.ret5yA,jdbcType=DECIMAL},
      ret_5y_bm1_a = #{record.ret5yBm1A,jdbcType=DECIMAL},
      ret_ytd = #{record.retYtd,jdbcType=DECIMAL},
      ret_cum_ytd = #{record.retCumYtd,jdbcType=DECIMAL},
      ret_ytd_bm1 = #{record.retYtdBm1,jdbcType=DECIMAL},
      ret_cum_ytd_bm1 = #{record.retCumYtdBm1,jdbcType=DECIMAL},
      ret_incep = #{record.retIncep,jdbcType=DECIMAL},
      ret_cum_incep = #{record.retCumIncep,jdbcType=DECIMAL},
      ret_incep_bm1 = #{record.retIncepBm1,jdbcType=DECIMAL},
      ret_cum_incep_bm1 = #{record.retCumIncepBm1,jdbcType=DECIMAL},
      ret_incep_a = #{record.retIncepA,jdbcType=DECIMAL},
      ret_incep_bm1_a = #{record.retIncepBm1A,jdbcType=DECIMAL},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER}
张亚辉's avatar
张亚辉 committed
868 869 870 871
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
张亚辉's avatar
张亚辉 committed
872 873 874 875 876 877 878 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 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
    update fund_performance
    <set>
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        price_date = #{priceDate,jdbcType=DATE},
      </if>
      <if test="cumulativeNav != null">
        cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        ret_1day = #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        ret_1w = #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1m != null">
        ret_1m = #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="retCum1m != null">
        ret_cum_1m = #{retCum1m,jdbcType=DECIMAL},
      </if>
      <if test="ret1mBm1 != null">
        ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1mBm1 != null">
        ret_cum_1m_bm1 = #{retCum1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3m != null">
        ret_3m = #{ret3m,jdbcType=DECIMAL},
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3m != null">
        ret_cum_3m = #{retCum3m,jdbcType=DECIMAL},
      </if>
      <if test="retCum3mBm1 != null">
        ret_cum_3m_bm1 = #{retCum3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret6m != null">
        ret_6m = #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="retCum6m != null">
        ret_cum_6m = #{retCum6m,jdbcType=DECIMAL},
      </if>
      <if test="ret6mBm1 != null">
        ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum6mBm1 != null">
        ret_cum_6m_bm1 = #{retCum6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1y != null">
        ret_1y = #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="retCum1y != null">
        ret_cum_1y = #{retCum1y,jdbcType=DECIMAL},
      </if>
      <if test="ret1yBm1 != null">
        ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1yBm1 != null">
        ret_cum_1y_bm1 = #{retCum1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2y != null">
        ret_2y = #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="retCum2y != null">
        ret_cum_2y = #{retCum2y,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1 != null">
        ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum2yBm1 != null">
        ret_cum_2y_bm1 = #{retCum2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2yA != null">
        ret_2y_a = #{ret2yA,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret3y != null">
        ret_3y = #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="retCum3y != null">
        ret_cum_3y = #{retCum3y,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1 != null">
        ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3yBm1 != null">
        ret_cum_3y_bm1 = #{retCum3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3yA != null">
        ret_3y_a = #{ret3yA,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret4y != null">
        ret_4y = #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="retCum4y != null">
        ret_cum_4y = #{retCum4y,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1 != null">
        ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum4yBm1 != null">
        ret_cum_4y_bm1 = #{retCum4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret4yA != null">
        ret_4y_a = #{ret4yA,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret5y != null">
        ret_5y = #{ret5y,jdbcType=DECIMAL},
      </if>
      <if test="retCum5y != null">
        ret_cum_5y = #{retCum5y,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1 != null">
        ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum5yBm1 != null">
        ret_cum_5y_bm1 = #{retCum5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret5yA != null">
        ret_5y_a = #{ret5yA,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="retYtd != null">
        ret_ytd = #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtd != null">
        ret_cum_ytd = #{retCumYtd,jdbcType=DECIMAL},
      </if>
      <if test="retYtdBm1 != null">
        ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtdBm1 != null">
        ret_cum_ytd_bm1 = #{retCumYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncep != null">
        ret_incep = #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retCumIncep != null">
        ret_cum_incep = #{retCumIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCumIncepBm1 != null">
        ret_cum_incep_bm1 = #{retCumIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncepA != null">
        ret_incep_a = #{retIncepA,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
    update fund_performance
    set fund_id = #{fundId,jdbcType=VARCHAR},
      end_date = #{endDate,jdbcType=DATE},
      price_date = #{priceDate,jdbcType=DATE},
      cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL},
      ret_1day = #{ret1day,jdbcType=DECIMAL},
      ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL},
      ret_1w = #{ret1w,jdbcType=DECIMAL},
      ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL},
      ret_1m = #{ret1m,jdbcType=DECIMAL},
      ret_cum_1m = #{retCum1m,jdbcType=DECIMAL},
      ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL},
      ret_cum_1m_bm1 = #{retCum1mBm1,jdbcType=DECIMAL},
      ret_3m = #{ret3m,jdbcType=DECIMAL},
      ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL},
      ret_cum_3m = #{retCum3m,jdbcType=DECIMAL},
      ret_cum_3m_bm1 = #{retCum3mBm1,jdbcType=DECIMAL},
      ret_6m = #{ret6m,jdbcType=DECIMAL},
      ret_cum_6m = #{retCum6m,jdbcType=DECIMAL},
      ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL},
      ret_cum_6m_bm1 = #{retCum6mBm1,jdbcType=DECIMAL},
      ret_1y = #{ret1y,jdbcType=DECIMAL},
      ret_cum_1y = #{retCum1y,jdbcType=DECIMAL},
      ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL},
      ret_cum_1y_bm1 = #{retCum1yBm1,jdbcType=DECIMAL},
      ret_2y = #{ret2y,jdbcType=DECIMAL},
      ret_cum_2y = #{retCum2y,jdbcType=DECIMAL},
      ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL},
      ret_cum_2y_bm1 = #{retCum2yBm1,jdbcType=DECIMAL},
      ret_2y_a = #{ret2yA,jdbcType=DECIMAL},
      ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL},
      ret_3y = #{ret3y,jdbcType=DECIMAL},
      ret_cum_3y = #{retCum3y,jdbcType=DECIMAL},
      ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL},
      ret_cum_3y_bm1 = #{retCum3yBm1,jdbcType=DECIMAL},
      ret_3y_a = #{ret3yA,jdbcType=DECIMAL},
      ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL},
      ret_4y = #{ret4y,jdbcType=DECIMAL},
      ret_cum_4y = #{retCum4y,jdbcType=DECIMAL},
      ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL},
      ret_cum_4y_bm1 = #{retCum4yBm1,jdbcType=DECIMAL},
      ret_4y_a = #{ret4yA,jdbcType=DECIMAL},
      ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL},
      ret_5y = #{ret5y,jdbcType=DECIMAL},
      ret_cum_5y = #{retCum5y,jdbcType=DECIMAL},
      ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL},
      ret_cum_5y_bm1 = #{retCum5yBm1,jdbcType=DECIMAL},
      ret_5y_a = #{ret5yA,jdbcType=DECIMAL},
      ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL},
      ret_ytd = #{retYtd,jdbcType=DECIMAL},
      ret_cum_ytd = #{retCumYtd,jdbcType=DECIMAL},
      ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL},
      ret_cum_ytd_bm1 = #{retCumYtdBm1,jdbcType=DECIMAL},
      ret_incep = #{retIncep,jdbcType=DECIMAL},
      ret_cum_incep = #{retCumIncep,jdbcType=DECIMAL},
      ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL},
      ret_cum_incep_bm1 = #{retCumIncepBm1,jdbcType=DECIMAL},
      ret_incep_a = #{retIncepA,jdbcType=DECIMAL},
      ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update fund_performance
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="fund_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.fundId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="end_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="price_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.priceDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="cumulative_nav = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.cumulativeNav,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1day = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1day,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1day_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1dayBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1w = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1w,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1w_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1wBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_1m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum1m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_1m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum1mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_3m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum3m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_3m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum3mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_6m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret6m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_6m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum6m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_6m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret6mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_6m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum6mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_1y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum1yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_2y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum2yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_3y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum3yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_4y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum4yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_5y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCum5yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCumYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_ytd_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retYtdBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_ytd_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCumYtdBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCumIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_cum_incep_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retCumIncepBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="update_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="create_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
        </foreach>
      </trim>
    </trim>
    where id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.id,jdbcType=VARCHAR}
    </foreach>
  </update>
张亚辉's avatar
张亚辉 committed
1443 1444 1445
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into fund_performance
张亚辉's avatar
张亚辉 committed
1446 1447 1448 1449 1450 1451 1452 1453 1454 1455
    (id, fund_id, end_date, price_date, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, 
      ret_1w_bm1, ret_1m, ret_cum_1m, ret_1m_bm1, ret_cum_1m_bm1, ret_3m, ret_3m_bm1, 
      ret_cum_3m, ret_cum_3m_bm1, ret_6m, ret_cum_6m, ret_6m_bm1, ret_cum_6m_bm1, ret_1y, 
      ret_cum_1y, ret_1y_bm1, ret_cum_1y_bm1, ret_2y, ret_cum_2y, ret_2y_bm1, ret_cum_2y_bm1, 
      ret_2y_a, ret_2y_bm1_a, ret_3y, ret_cum_3y, ret_3y_bm1, ret_cum_3y_bm1, ret_3y_a, 
      ret_3y_bm1_a, ret_4y, ret_cum_4y, ret_4y_bm1, ret_cum_4y_bm1, ret_4y_a, ret_4y_bm1_a, 
      ret_5y, ret_cum_5y, ret_5y_bm1, ret_cum_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, 
      ret_cum_ytd, ret_ytd_bm1, ret_cum_ytd_bm1, ret_incep, ret_cum_incep, ret_incep_bm1, 
      ret_cum_incep_bm1, ret_incep_a, ret_incep_bm1_a, update_time, create_time, delete_tag
      )
张亚辉's avatar
张亚辉 committed
1456 1457
    values
    <foreach collection="list" item="item" separator=",">
张亚辉's avatar
张亚辉 committed
1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478
      (#{item.id,jdbcType=VARCHAR}, #{item.fundId,jdbcType=VARCHAR}, #{item.endDate,jdbcType=DATE}, 
        #{item.priceDate,jdbcType=DATE}, #{item.cumulativeNav,jdbcType=DECIMAL}, #{item.ret1day,jdbcType=DECIMAL}, 
        #{item.ret1dayBm1,jdbcType=DECIMAL}, #{item.ret1w,jdbcType=DECIMAL}, #{item.ret1wBm1,jdbcType=DECIMAL}, 
        #{item.ret1m,jdbcType=DECIMAL}, #{item.retCum1m,jdbcType=DECIMAL}, #{item.ret1mBm1,jdbcType=DECIMAL}, 
        #{item.retCum1mBm1,jdbcType=DECIMAL}, #{item.ret3m,jdbcType=DECIMAL}, #{item.ret3mBm1,jdbcType=DECIMAL}, 
        #{item.retCum3m,jdbcType=DECIMAL}, #{item.retCum3mBm1,jdbcType=DECIMAL}, #{item.ret6m,jdbcType=DECIMAL}, 
        #{item.retCum6m,jdbcType=DECIMAL}, #{item.ret6mBm1,jdbcType=DECIMAL}, #{item.retCum6mBm1,jdbcType=DECIMAL}, 
        #{item.ret1y,jdbcType=DECIMAL}, #{item.retCum1y,jdbcType=DECIMAL}, #{item.ret1yBm1,jdbcType=DECIMAL}, 
        #{item.retCum1yBm1,jdbcType=DECIMAL}, #{item.ret2y,jdbcType=DECIMAL}, #{item.retCum2y,jdbcType=DECIMAL}, 
        #{item.ret2yBm1,jdbcType=DECIMAL}, #{item.retCum2yBm1,jdbcType=DECIMAL}, #{item.ret2yA,jdbcType=DECIMAL}, 
        #{item.ret2yBm1A,jdbcType=DECIMAL}, #{item.ret3y,jdbcType=DECIMAL}, #{item.retCum3y,jdbcType=DECIMAL}, 
        #{item.ret3yBm1,jdbcType=DECIMAL}, #{item.retCum3yBm1,jdbcType=DECIMAL}, #{item.ret3yA,jdbcType=DECIMAL}, 
        #{item.ret3yBm1A,jdbcType=DECIMAL}, #{item.ret4y,jdbcType=DECIMAL}, #{item.retCum4y,jdbcType=DECIMAL}, 
        #{item.ret4yBm1,jdbcType=DECIMAL}, #{item.retCum4yBm1,jdbcType=DECIMAL}, #{item.ret4yA,jdbcType=DECIMAL}, 
        #{item.ret4yBm1A,jdbcType=DECIMAL}, #{item.ret5y,jdbcType=DECIMAL}, #{item.retCum5y,jdbcType=DECIMAL}, 
        #{item.ret5yBm1,jdbcType=DECIMAL}, #{item.retCum5yBm1,jdbcType=DECIMAL}, #{item.ret5yA,jdbcType=DECIMAL}, 
        #{item.ret5yBm1A,jdbcType=DECIMAL}, #{item.retYtd,jdbcType=DECIMAL}, #{item.retCumYtd,jdbcType=DECIMAL}, 
        #{item.retYtdBm1,jdbcType=DECIMAL}, #{item.retCumYtdBm1,jdbcType=DECIMAL}, #{item.retIncep,jdbcType=DECIMAL}, 
        #{item.retCumIncep,jdbcType=DECIMAL}, #{item.retIncepBm1,jdbcType=DECIMAL}, #{item.retCumIncepBm1,jdbcType=DECIMAL}, 
        #{item.retIncepA,jdbcType=DECIMAL}, #{item.retIncepBm1A,jdbcType=DECIMAL}, #{item.updateTime,jdbcType=TIMESTAMP}, 
        #{item.createTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER})
张亚辉's avatar
张亚辉 committed
1479 1480 1481 1482 1483
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
    insert into fund_performance
张亚辉's avatar
张亚辉 committed
1484 1485 1486 1487 1488 1489 1490 1491 1492
    (id, fund_id, end_date, price_date, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, 
      ret_1w_bm1, ret_1m, ret_cum_1m, ret_1m_bm1, ret_cum_1m_bm1, ret_3m, ret_3m_bm1, 
      ret_cum_3m, ret_cum_3m_bm1, ret_6m, ret_cum_6m, ret_6m_bm1, ret_cum_6m_bm1, ret_1y, 
      ret_cum_1y, ret_1y_bm1, ret_cum_1y_bm1, ret_2y, ret_cum_2y, ret_2y_bm1, ret_cum_2y_bm1, 
      ret_2y_a, ret_2y_bm1_a, ret_3y, ret_cum_3y, ret_3y_bm1, ret_cum_3y_bm1, ret_3y_a, 
      ret_3y_bm1_a, ret_4y, ret_cum_4y, ret_4y_bm1, ret_cum_4y_bm1, ret_4y_a, ret_4y_bm1_a, 
      ret_5y, ret_cum_5y, ret_5y_bm1, ret_cum_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, 
      ret_cum_ytd, ret_ytd_bm1, ret_cum_ytd_bm1, ret_incep, ret_cum_incep, ret_incep_bm1, 
      ret_cum_incep_bm1, ret_incep_a, ret_incep_bm1_a, update_time, create_time, delete_tag
张亚辉's avatar
张亚辉 committed
1493
      )
张亚辉's avatar
张亚辉 committed
1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515
    values
    (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, 
      #{cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, 
      #{ret1w,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, 
      #{retCum1m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, #{retCum1mBm1,jdbcType=DECIMAL}, 
      #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{retCum3m,jdbcType=DECIMAL}, 
      #{retCum3mBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, #{retCum6m,jdbcType=DECIMAL}, 
      #{ret6mBm1,jdbcType=DECIMAL}, #{retCum6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, 
      #{retCum1y,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, #{retCum1yBm1,jdbcType=DECIMAL}, 
      #{ret2y,jdbcType=DECIMAL}, #{retCum2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, 
      #{retCum2yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, 
      #{ret3y,jdbcType=DECIMAL}, #{retCum3y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, 
      #{retCum3yBm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, 
      #{ret4y,jdbcType=DECIMAL}, #{retCum4y,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, 
      #{retCum4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, 
      #{ret5y,jdbcType=DECIMAL}, #{retCum5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, 
      #{retCum5yBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, 
      #{retYtd,jdbcType=DECIMAL}, #{retCumYtd,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, 
      #{retCumYtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retCumIncep,jdbcType=DECIMAL}, 
      #{retIncepBm1,jdbcType=DECIMAL}, #{retCumIncepBm1,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, 
      #{retIncepBm1A,jdbcType=DECIMAL}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, 
      #{deleteTag,jdbcType=INTEGER})
张亚辉's avatar
张亚辉 committed
1516
    on duplicate key update 
张亚辉's avatar
张亚辉 committed
1517
    id = #{id,jdbcType=VARCHAR}, 
张亚辉's avatar
张亚辉 committed
1518
    fund_id = #{fundId,jdbcType=VARCHAR}, 
张亚辉's avatar
张亚辉 committed
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578
    end_date = #{endDate,jdbcType=DATE}, 
    price_date = #{priceDate,jdbcType=DATE}, 
    cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL}, 
    ret_1day = #{ret1day,jdbcType=DECIMAL}, 
    ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL}, 
    ret_1w = #{ret1w,jdbcType=DECIMAL}, 
    ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL}, 
    ret_1m = #{ret1m,jdbcType=DECIMAL}, 
    ret_cum_1m = #{retCum1m,jdbcType=DECIMAL}, 
    ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL}, 
    ret_cum_1m_bm1 = #{retCum1mBm1,jdbcType=DECIMAL}, 
    ret_3m = #{ret3m,jdbcType=DECIMAL}, 
    ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL}, 
    ret_cum_3m = #{retCum3m,jdbcType=DECIMAL}, 
    ret_cum_3m_bm1 = #{retCum3mBm1,jdbcType=DECIMAL}, 
    ret_6m = #{ret6m,jdbcType=DECIMAL}, 
    ret_cum_6m = #{retCum6m,jdbcType=DECIMAL}, 
    ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL}, 
    ret_cum_6m_bm1 = #{retCum6mBm1,jdbcType=DECIMAL}, 
    ret_1y = #{ret1y,jdbcType=DECIMAL}, 
    ret_cum_1y = #{retCum1y,jdbcType=DECIMAL}, 
    ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL}, 
    ret_cum_1y_bm1 = #{retCum1yBm1,jdbcType=DECIMAL}, 
    ret_2y = #{ret2y,jdbcType=DECIMAL}, 
    ret_cum_2y = #{retCum2y,jdbcType=DECIMAL}, 
    ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL}, 
    ret_cum_2y_bm1 = #{retCum2yBm1,jdbcType=DECIMAL}, 
    ret_2y_a = #{ret2yA,jdbcType=DECIMAL}, 
    ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL}, 
    ret_3y = #{ret3y,jdbcType=DECIMAL}, 
    ret_cum_3y = #{retCum3y,jdbcType=DECIMAL}, 
    ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL}, 
    ret_cum_3y_bm1 = #{retCum3yBm1,jdbcType=DECIMAL}, 
    ret_3y_a = #{ret3yA,jdbcType=DECIMAL}, 
    ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL}, 
    ret_4y = #{ret4y,jdbcType=DECIMAL}, 
    ret_cum_4y = #{retCum4y,jdbcType=DECIMAL}, 
    ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL}, 
    ret_cum_4y_bm1 = #{retCum4yBm1,jdbcType=DECIMAL}, 
    ret_4y_a = #{ret4yA,jdbcType=DECIMAL}, 
    ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL}, 
    ret_5y = #{ret5y,jdbcType=DECIMAL}, 
    ret_cum_5y = #{retCum5y,jdbcType=DECIMAL}, 
    ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL}, 
    ret_cum_5y_bm1 = #{retCum5yBm1,jdbcType=DECIMAL}, 
    ret_5y_a = #{ret5yA,jdbcType=DECIMAL}, 
    ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL}, 
    ret_ytd = #{retYtd,jdbcType=DECIMAL}, 
    ret_cum_ytd = #{retCumYtd,jdbcType=DECIMAL}, 
    ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL}, 
    ret_cum_ytd_bm1 = #{retCumYtdBm1,jdbcType=DECIMAL}, 
    ret_incep = #{retIncep,jdbcType=DECIMAL}, 
    ret_cum_incep = #{retCumIncep,jdbcType=DECIMAL}, 
    ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL}, 
    ret_cum_incep_bm1 = #{retCumIncepBm1,jdbcType=DECIMAL}, 
    ret_incep_a = #{retIncepA,jdbcType=DECIMAL}, 
    ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
张亚辉's avatar
张亚辉 committed
1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.FundPerformance">
    <!--@mbg.generated-->
    insert into fund_performance
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
张亚辉's avatar
张亚辉 committed
1593 1594 1595
      <if test="priceDate != null">
        price_date,
      </if>
张亚辉's avatar
张亚辉 committed
1596 1597 1598
      <if test="cumulativeNav != null">
        cumulative_nav,
      </if>
张亚辉's avatar
张亚辉 committed
1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610
      <if test="ret1day != null">
        ret_1day,
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1,
      </if>
      <if test="ret1w != null">
        ret_1w,
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1611 1612 1613
      <if test="ret1m != null">
        ret_1m,
      </if>
张亚辉's avatar
张亚辉 committed
1614 1615 1616
      <if test="retCum1m != null">
        ret_cum_1m,
      </if>
张亚辉's avatar
张亚辉 committed
1617 1618 1619
      <if test="ret1mBm1 != null">
        ret_1m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1620 1621 1622
      <if test="retCum1mBm1 != null">
        ret_cum_1m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1623 1624 1625 1626 1627 1628
      <if test="ret3m != null">
        ret_3m,
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1629 1630 1631 1632 1633 1634
      <if test="retCum3m != null">
        ret_cum_3m,
      </if>
      <if test="retCum3mBm1 != null">
        ret_cum_3m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1635 1636 1637
      <if test="ret6m != null">
        ret_6m,
      </if>
张亚辉's avatar
张亚辉 committed
1638 1639 1640
      <if test="retCum6m != null">
        ret_cum_6m,
      </if>
张亚辉's avatar
张亚辉 committed
1641 1642 1643
      <if test="ret6mBm1 != null">
        ret_6m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1644 1645 1646
      <if test="retCum6mBm1 != null">
        ret_cum_6m_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1647 1648 1649
      <if test="ret1y != null">
        ret_1y,
      </if>
张亚辉's avatar
张亚辉 committed
1650 1651 1652
      <if test="retCum1y != null">
        ret_cum_1y,
      </if>
张亚辉's avatar
张亚辉 committed
1653 1654 1655
      <if test="ret1yBm1 != null">
        ret_1y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1656 1657 1658
      <if test="retCum1yBm1 != null">
        ret_cum_1y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1659 1660 1661
      <if test="ret2y != null">
        ret_2y,
      </if>
张亚辉's avatar
张亚辉 committed
1662 1663 1664
      <if test="retCum2y != null">
        ret_cum_2y,
      </if>
张亚辉's avatar
张亚辉 committed
1665 1666 1667
      <if test="ret2yBm1 != null">
        ret_2y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1668 1669 1670
      <if test="retCum2yBm1 != null">
        ret_cum_2y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1671 1672 1673
      <if test="ret2yA != null">
        ret_2y_a,
      </if>
张亚辉's avatar
张亚辉 committed
1674 1675
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a,
张亚辉's avatar
张亚辉 committed
1676 1677 1678 1679
      </if>
      <if test="ret3y != null">
        ret_3y,
      </if>
张亚辉's avatar
张亚辉 committed
1680 1681 1682
      <if test="retCum3y != null">
        ret_cum_3y,
      </if>
张亚辉's avatar
张亚辉 committed
1683 1684 1685
      <if test="ret3yBm1 != null">
        ret_3y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1686 1687 1688
      <if test="retCum3yBm1 != null">
        ret_cum_3y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1689 1690 1691
      <if test="ret3yA != null">
        ret_3y_a,
      </if>
张亚辉's avatar
张亚辉 committed
1692 1693
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a,
张亚辉's avatar
张亚辉 committed
1694 1695 1696 1697
      </if>
      <if test="ret4y != null">
        ret_4y,
      </if>
张亚辉's avatar
张亚辉 committed
1698 1699 1700
      <if test="retCum4y != null">
        ret_cum_4y,
      </if>
张亚辉's avatar
张亚辉 committed
1701 1702 1703
      <if test="ret4yBm1 != null">
        ret_4y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1704 1705 1706
      <if test="retCum4yBm1 != null">
        ret_cum_4y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1707 1708 1709
      <if test="ret4yA != null">
        ret_4y_a,
      </if>
张亚辉's avatar
张亚辉 committed
1710 1711
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a,
张亚辉's avatar
张亚辉 committed
1712 1713 1714 1715
      </if>
      <if test="ret5y != null">
        ret_5y,
      </if>
张亚辉's avatar
张亚辉 committed
1716 1717 1718
      <if test="retCum5y != null">
        ret_cum_5y,
      </if>
张亚辉's avatar
张亚辉 committed
1719 1720 1721
      <if test="ret5yBm1 != null">
        ret_5y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1722 1723 1724
      <if test="retCum5yBm1 != null">
        ret_cum_5y_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1725 1726 1727
      <if test="ret5yA != null">
        ret_5y_a,
      </if>
张亚辉's avatar
张亚辉 committed
1728 1729
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a,
张亚辉's avatar
张亚辉 committed
1730 1731 1732 1733
      </if>
      <if test="retYtd != null">
        ret_ytd,
      </if>
张亚辉's avatar
张亚辉 committed
1734 1735 1736
      <if test="retCumYtd != null">
        ret_cum_ytd,
      </if>
张亚辉's avatar
张亚辉 committed
1737 1738 1739
      <if test="retYtdBm1 != null">
        ret_ytd_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1740 1741 1742
      <if test="retCumYtdBm1 != null">
        ret_cum_ytd_bm1,
      </if>
张亚辉's avatar
张亚辉 committed
1743 1744 1745
      <if test="retIncep != null">
        ret_incep,
      </if>
张亚辉's avatar
张亚辉 committed
1746 1747 1748 1749 1750 1751 1752 1753
      <if test="retCumIncep != null">
        ret_cum_incep,
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1,
      </if>
      <if test="retCumIncepBm1 != null">
        ret_cum_incep_bm1,
张亚辉's avatar
张亚辉 committed
1754 1755 1756 1757
      </if>
      <if test="retIncepA != null">
        ret_incep_a,
      </if>
张亚辉's avatar
张亚辉 committed
1758 1759
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a,
张亚辉's avatar
张亚辉 committed
1760
      </if>
张亚辉's avatar
张亚辉 committed
1761 1762
      <if test="updateTime != null">
        update_time,
张亚辉's avatar
张亚辉 committed
1763
      </if>
张亚辉's avatar
张亚辉 committed
1764 1765
      <if test="createTime != null">
        create_time,
张亚辉's avatar
张亚辉 committed
1766
      </if>
张亚辉's avatar
张亚辉 committed
1767 1768
      <if test="deleteTag != null">
        delete_tag,
张亚辉's avatar
张亚辉 committed
1769 1770 1771 1772 1773
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
张亚辉's avatar
张亚辉 committed
1774
        #{id,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
1775 1776 1777 1778 1779
      </if>
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
张亚辉's avatar
张亚辉 committed
1780 1781 1782 1783
        #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        #{priceDate,jdbcType=DATE},
张亚辉's avatar
张亚辉 committed
1784 1785
      </if>
      <if test="cumulativeNav != null">
张亚辉's avatar
张亚辉 committed
1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798
        #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        #{ret1wBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1799 1800
      </if>
      <if test="ret1m != null">
张亚辉's avatar
张亚辉 committed
1801 1802 1803 1804
        #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="retCum1m != null">
        #{retCum1m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1805 1806
      </if>
      <if test="ret1mBm1 != null">
张亚辉's avatar
张亚辉 committed
1807 1808 1809 1810
        #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1mBm1 != null">
        #{retCum1mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1811 1812
      </if>
      <if test="ret3m != null">
张亚辉's avatar
张亚辉 committed
1813
        #{ret3m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1814 1815
      </if>
      <if test="ret3mBm1 != null">
张亚辉's avatar
张亚辉 committed
1816 1817 1818 1819 1820 1821 1822
        #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3m != null">
        #{retCum3m,jdbcType=DECIMAL},
      </if>
      <if test="retCum3mBm1 != null">
        #{retCum3mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1823 1824
      </if>
      <if test="ret6m != null">
张亚辉's avatar
张亚辉 committed
1825 1826 1827 1828
        #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="retCum6m != null">
        #{retCum6m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1829 1830
      </if>
      <if test="ret6mBm1 != null">
张亚辉's avatar
张亚辉 committed
1831 1832 1833 1834
        #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum6mBm1 != null">
        #{retCum6mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1835 1836
      </if>
      <if test="ret1y != null">
张亚辉's avatar
张亚辉 committed
1837 1838 1839 1840
        #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="retCum1y != null">
        #{retCum1y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1841 1842
      </if>
      <if test="ret1yBm1 != null">
张亚辉's avatar
张亚辉 committed
1843 1844 1845 1846
        #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1yBm1 != null">
        #{retCum1yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1847 1848
      </if>
      <if test="ret2y != null">
张亚辉's avatar
张亚辉 committed
1849 1850 1851 1852
        #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="retCum2y != null">
        #{retCum2y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1853 1854
      </if>
      <if test="ret2yBm1 != null">
张亚辉's avatar
张亚辉 committed
1855 1856 1857 1858
        #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum2yBm1 != null">
        #{retCum2yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1859 1860
      </if>
      <if test="ret2yA != null">
张亚辉's avatar
张亚辉 committed
1861
        #{ret2yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1862
      </if>
张亚辉's avatar
张亚辉 committed
1863 1864
      <if test="ret2yBm1A != null">
        #{ret2yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1865 1866
      </if>
      <if test="ret3y != null">
张亚辉's avatar
张亚辉 committed
1867 1868 1869 1870
        #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="retCum3y != null">
        #{retCum3y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1871 1872
      </if>
      <if test="ret3yBm1 != null">
张亚辉's avatar
张亚辉 committed
1873 1874 1875 1876
        #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3yBm1 != null">
        #{retCum3yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1877 1878
      </if>
      <if test="ret3yA != null">
张亚辉's avatar
张亚辉 committed
1879
        #{ret3yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1880
      </if>
张亚辉's avatar
张亚辉 committed
1881 1882
      <if test="ret3yBm1A != null">
        #{ret3yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1883 1884
      </if>
      <if test="ret4y != null">
张亚辉's avatar
张亚辉 committed
1885 1886 1887 1888
        #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="retCum4y != null">
        #{retCum4y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1889 1890
      </if>
      <if test="ret4yBm1 != null">
张亚辉's avatar
张亚辉 committed
1891 1892 1893 1894
        #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum4yBm1 != null">
        #{retCum4yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1895 1896
      </if>
      <if test="ret4yA != null">
张亚辉's avatar
张亚辉 committed
1897
        #{ret4yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1898
      </if>
张亚辉's avatar
张亚辉 committed
1899 1900
      <if test="ret4yBm1A != null">
        #{ret4yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1901 1902
      </if>
      <if test="ret5y != null">
张亚辉's avatar
张亚辉 committed
1903
        #{ret5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1904
      </if>
张亚辉's avatar
张亚辉 committed
1905 1906
      <if test="retCum5y != null">
        #{retCum5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1907 1908
      </if>
      <if test="ret5yBm1 != null">
张亚辉's avatar
张亚辉 committed
1909
        #{ret5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1910
      </if>
张亚辉's avatar
张亚辉 committed
1911 1912
      <if test="retCum5yBm1 != null">
        #{retCum5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1913
      </if>
张亚辉's avatar
张亚辉 committed
1914 1915
      <if test="ret5yA != null">
        #{ret5yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1916
      </if>
张亚辉's avatar
张亚辉 committed
1917 1918
      <if test="ret5yBm1A != null">
        #{ret5yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1919 1920
      </if>
      <if test="retYtd != null">
张亚辉's avatar
张亚辉 committed
1921 1922 1923 1924
        #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtd != null">
        #{retCumYtd,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1925 1926
      </if>
      <if test="retYtdBm1 != null">
张亚辉's avatar
张亚辉 committed
1927 1928 1929 1930
        #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtdBm1 != null">
        #{retCumYtdBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1931 1932
      </if>
      <if test="retIncep != null">
张亚辉's avatar
张亚辉 committed
1933 1934 1935 1936 1937 1938 1939
        #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retCumIncep != null">
        #{retCumIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        #{retIncepBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1940
      </if>
张亚辉's avatar
张亚辉 committed
1941 1942
      <if test="retCumIncepBm1 != null">
        #{retCumIncepBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1943 1944
      </if>
      <if test="retIncepA != null">
张亚辉's avatar
张亚辉 committed
1945
        #{retIncepA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1946
      </if>
张亚辉's avatar
张亚辉 committed
1947 1948
      <if test="retIncepBm1A != null">
        #{retIncepBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1949
      </if>
张亚辉's avatar
张亚辉 committed
1950 1951
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
1952
      </if>
张亚辉's avatar
张亚辉 committed
1953 1954
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
1955
      </if>
张亚辉's avatar
张亚辉 committed
1956 1957
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
张亚辉's avatar
张亚辉 committed
1958 1959 1960 1961 1962
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
张亚辉's avatar
张亚辉 committed
1963
        id = #{id,jdbcType=VARCHAR},
张亚辉's avatar
张亚辉 committed
1964 1965 1966 1967 1968
      </if>
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
张亚辉's avatar
张亚辉 committed
1969 1970 1971 1972
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        price_date = #{priceDate,jdbcType=DATE},
张亚辉's avatar
张亚辉 committed
1973 1974
      </if>
      <if test="cumulativeNav != null">
张亚辉's avatar
张亚辉 committed
1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987
        cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        ret_1day = #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        ret_1w = #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1988 1989
      </if>
      <if test="ret1m != null">
张亚辉's avatar
张亚辉 committed
1990 1991 1992 1993
        ret_1m = #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="retCum1m != null">
        ret_cum_1m = #{retCum1m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
1994 1995
      </if>
      <if test="ret1mBm1 != null">
张亚辉's avatar
张亚辉 committed
1996 1997 1998 1999
        ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1mBm1 != null">
        ret_cum_1m_bm1 = #{retCum1mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2000 2001
      </if>
      <if test="ret3m != null">
张亚辉's avatar
张亚辉 committed
2002
        ret_3m = #{ret3m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2003 2004
      </if>
      <if test="ret3mBm1 != null">
张亚辉's avatar
张亚辉 committed
2005 2006 2007 2008 2009 2010 2011
        ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3m != null">
        ret_cum_3m = #{retCum3m,jdbcType=DECIMAL},
      </if>
      <if test="retCum3mBm1 != null">
        ret_cum_3m_bm1 = #{retCum3mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2012 2013
      </if>
      <if test="ret6m != null">
张亚辉's avatar
张亚辉 committed
2014 2015 2016 2017
        ret_6m = #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="retCum6m != null">
        ret_cum_6m = #{retCum6m,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2018 2019
      </if>
      <if test="ret6mBm1 != null">
张亚辉's avatar
张亚辉 committed
2020 2021 2022 2023
        ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum6mBm1 != null">
        ret_cum_6m_bm1 = #{retCum6mBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2024 2025
      </if>
      <if test="ret1y != null">
张亚辉's avatar
张亚辉 committed
2026 2027 2028 2029
        ret_1y = #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="retCum1y != null">
        ret_cum_1y = #{retCum1y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2030 2031
      </if>
      <if test="ret1yBm1 != null">
张亚辉's avatar
张亚辉 committed
2032 2033 2034 2035
        ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum1yBm1 != null">
        ret_cum_1y_bm1 = #{retCum1yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2036 2037
      </if>
      <if test="ret2y != null">
张亚辉's avatar
张亚辉 committed
2038 2039 2040 2041
        ret_2y = #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="retCum2y != null">
        ret_cum_2y = #{retCum2y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2042 2043
      </if>
      <if test="ret2yBm1 != null">
张亚辉's avatar
张亚辉 committed
2044 2045 2046 2047
        ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum2yBm1 != null">
        ret_cum_2y_bm1 = #{retCum2yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2048 2049
      </if>
      <if test="ret2yA != null">
张亚辉's avatar
张亚辉 committed
2050
        ret_2y_a = #{ret2yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2051
      </if>
张亚辉's avatar
张亚辉 committed
2052 2053
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2054 2055
      </if>
      <if test="ret3y != null">
张亚辉's avatar
张亚辉 committed
2056 2057 2058 2059
        ret_3y = #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="retCum3y != null">
        ret_cum_3y = #{retCum3y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2060 2061
      </if>
      <if test="ret3yBm1 != null">
张亚辉's avatar
张亚辉 committed
2062 2063 2064 2065
        ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum3yBm1 != null">
        ret_cum_3y_bm1 = #{retCum3yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2066 2067
      </if>
      <if test="ret3yA != null">
张亚辉's avatar
张亚辉 committed
2068
        ret_3y_a = #{ret3yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2069
      </if>
张亚辉's avatar
张亚辉 committed
2070 2071
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2072 2073
      </if>
      <if test="ret4y != null">
张亚辉's avatar
张亚辉 committed
2074 2075 2076 2077
        ret_4y = #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="retCum4y != null">
        ret_cum_4y = #{retCum4y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2078 2079
      </if>
      <if test="ret4yBm1 != null">
张亚辉's avatar
张亚辉 committed
2080 2081 2082 2083
        ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCum4yBm1 != null">
        ret_cum_4y_bm1 = #{retCum4yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2084 2085
      </if>
      <if test="ret4yA != null">
张亚辉's avatar
张亚辉 committed
2086
        ret_4y_a = #{ret4yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2087
      </if>
张亚辉's avatar
张亚辉 committed
2088 2089
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2090 2091
      </if>
      <if test="ret5y != null">
张亚辉's avatar
张亚辉 committed
2092
        ret_5y = #{ret5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2093
      </if>
张亚辉's avatar
张亚辉 committed
2094 2095
      <if test="retCum5y != null">
        ret_cum_5y = #{retCum5y,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2096 2097
      </if>
      <if test="ret5yBm1 != null">
张亚辉's avatar
张亚辉 committed
2098
        ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2099
      </if>
张亚辉's avatar
张亚辉 committed
2100 2101
      <if test="retCum5yBm1 != null">
        ret_cum_5y_bm1 = #{retCum5yBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2102
      </if>
张亚辉's avatar
张亚辉 committed
2103 2104
      <if test="ret5yA != null">
        ret_5y_a = #{ret5yA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2105
      </if>
张亚辉's avatar
张亚辉 committed
2106 2107
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2108 2109
      </if>
      <if test="retYtd != null">
张亚辉's avatar
张亚辉 committed
2110 2111 2112 2113
        ret_ytd = #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtd != null">
        ret_cum_ytd = #{retCumYtd,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2114 2115
      </if>
      <if test="retYtdBm1 != null">
张亚辉's avatar
张亚辉 committed
2116 2117 2118 2119
        ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retCumYtdBm1 != null">
        ret_cum_ytd_bm1 = #{retCumYtdBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2120 2121
      </if>
      <if test="retIncep != null">
张亚辉's avatar
张亚辉 committed
2122 2123 2124 2125 2126 2127 2128
        ret_incep = #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retCumIncep != null">
        ret_cum_incep = #{retCumIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2129
      </if>
张亚辉's avatar
张亚辉 committed
2130 2131
      <if test="retCumIncepBm1 != null">
        ret_cum_incep_bm1 = #{retCumIncepBm1,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2132 2133
      </if>
      <if test="retIncepA != null">
张亚辉's avatar
张亚辉 committed
2134
        ret_incep_a = #{retIncepA,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2135
      </if>
张亚辉's avatar
张亚辉 committed
2136 2137
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL},
张亚辉's avatar
张亚辉 committed
2138
      </if>
张亚辉's avatar
张亚辉 committed
2139 2140
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
2141
      </if>
张亚辉's avatar
张亚辉 committed
2142 2143
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
张亚辉's avatar
张亚辉 committed
2144
      </if>
张亚辉's avatar
张亚辉 committed
2145 2146
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
张亚辉's avatar
张亚辉 committed
2147 2148 2149 2150
      </if>
    </trim>
  </insert>
</mapper>