<?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--> <result column="id" jdbcType="INTEGER" property="id" /> <result column="price_date" jdbcType="DATE" property="priceDate" /> <result column="fund_id" jdbcType="VARCHAR" property="fundId" /> <result column="end_date" jdbcType="VARCHAR" property="endDate" /> <result column="cumulative_nav" jdbcType="DOUBLE" property="cumulativeNav" /> <result column="ret_1m" jdbcType="DOUBLE" property="ret1m" /> <result column="ret_1m_bm1" jdbcType="DOUBLE" property="ret1mBm1" /> <result column="ret_3m" jdbcType="DOUBLE" property="ret3m" /> <result column="ret_3m_bm1" jdbcType="DOUBLE" property="ret3mBm1" /> <result column="ret_6m" jdbcType="DOUBLE" property="ret6m" /> <result column="ret_6m_bm1" jdbcType="DOUBLE" property="ret6mBm1" /> <result column="ret_1y" jdbcType="DOUBLE" property="ret1y" /> <result column="ret_1y_bm1" jdbcType="DOUBLE" property="ret1yBm1" /> <result column="ret_2y" jdbcType="DOUBLE" property="ret2y" /> <result column="ret_2y_bm1" jdbcType="DOUBLE" property="ret2yBm1" /> <result column="ret_2y_a" jdbcType="DOUBLE" property="ret2yA" /> <result column="ret_2y_bm1_" jdbcType="DOUBLE" property="ret2yBm1" /> <result column="ret_3y" jdbcType="DOUBLE" property="ret3y" /> <result column="ret_3y_bm1" jdbcType="DOUBLE" property="ret3yBm1" /> <result column="ret_3y_a" jdbcType="DOUBLE" property="ret3yA" /> <result column="ret_3y_bm1_" jdbcType="DOUBLE" property="ret3yBm1" /> <result column="ret_4y" jdbcType="DOUBLE" property="ret4y" /> <result column="ret_4y_bm1" jdbcType="DOUBLE" property="ret4yBm1" /> <result column="ret_4y_a" jdbcType="DOUBLE" property="ret4yA" /> <result column="ret_4y_bm1_" jdbcType="DOUBLE" property="ret4yBm1" /> <result column="ret_5y" jdbcType="DOUBLE" property="ret5y" /> <result column="ret_5y_bm1" jdbcType="DOUBLE" property="ret5yBm1" /> <result column="ret_5y_a" jdbcType="DOUBLE" property="ret5yA" /> <result column="ret_5y_bm1_" jdbcType="DOUBLE" property="ret5yBm1" /> <result column="ret_10y" jdbcType="DOUBLE" property="ret10y" /> <result column="ret_10y_bm1" jdbcType="DOUBLE" property="ret10yBm1" /> <result column="ret_10y_a" jdbcType="DOUBLE" property="ret10yA" /> <result column="ret_10y_bm11" jdbcType="DOUBLE" property="ret10yBm11" /> <result column="ret_ytd" jdbcType="DOUBLE" property="retYtd" /> <result column="ret_ytd_bm1" jdbcType="DOUBLE" property="retYtdBm1" /> <result column="ret_incep" jdbcType="DOUBLE" property="retIncep" /> <result column="ret_incep_b" jdbcType="DOUBLE" property="retIncepB" /> <result column="ret_incep_a" jdbcType="DOUBLE" property="retIncepA" /> <result column="ret_incep_b1" jdbcType="DOUBLE" property="retIncepB1" /> <result column="isvalid" jdbcType="BIGINT" property="isvalid" /> <result column="updatetime" jdbcType="DATE" property="updatetime" /> <result column="createtime" jdbcType="DATE" property="createtime" /> </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--> id, price_date, fund_id, end_date, cumulative_nav, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_, ret_10y, ret_10y_bm1, ret_10y_a, ret_10y_bm11, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_b, ret_incep_a, ret_incep_b1, isvalid, updatetime, createtime </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> <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--> insert into fund_performance (id, price_date, fund_id, end_date, cumulative_nav, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_, ret_10y, ret_10y_bm1, ret_10y_a, ret_10y_bm11, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_b, ret_incep_a, ret_incep_b1, isvalid, updatetime, createtime ) values (#{id,jdbcType=INTEGER}, #{priceDate,jdbcType=DATE}, #{fundId,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{cumulativeNav,jdbcType=DOUBLE}, #{ret1m,jdbcType=DOUBLE}, #{ret1mBm1,jdbcType=DOUBLE}, #{ret3m,jdbcType=DOUBLE}, #{ret3mBm1,jdbcType=DOUBLE}, #{ret6m,jdbcType=DOUBLE}, #{ret6mBm1,jdbcType=DOUBLE}, #{ret1y,jdbcType=DOUBLE}, #{ret1yBm1,jdbcType=DOUBLE}, #{ret2y,jdbcType=DOUBLE}, #{ret2yBm1,jdbcType=DOUBLE}, #{ret2yA,jdbcType=DOUBLE}, #{ret2yBm1,jdbcType=DOUBLE}, #{ret3y,jdbcType=DOUBLE}, #{ret3yBm1,jdbcType=DOUBLE}, #{ret3yA,jdbcType=DOUBLE}, #{ret3yBm1,jdbcType=DOUBLE}, #{ret4y,jdbcType=DOUBLE}, #{ret4yBm1,jdbcType=DOUBLE}, #{ret4yA,jdbcType=DOUBLE}, #{ret4yBm1,jdbcType=DOUBLE}, #{ret5y,jdbcType=DOUBLE}, #{ret5yBm1,jdbcType=DOUBLE}, #{ret5yA,jdbcType=DOUBLE}, #{ret5yBm1,jdbcType=DOUBLE}, #{ret10y,jdbcType=DOUBLE}, #{ret10yBm1,jdbcType=DOUBLE}, #{ret10yA,jdbcType=DOUBLE}, #{ret10yBm11,jdbcType=DOUBLE}, #{retYtd,jdbcType=DOUBLE}, #{retYtdBm1,jdbcType=DOUBLE}, #{retIncep,jdbcType=DOUBLE}, #{retIncepB,jdbcType=DOUBLE}, #{retIncepA,jdbcType=DOUBLE}, #{retIncepB1,jdbcType=DOUBLE}, #{isvalid,jdbcType=BIGINT}, #{updatetime,jdbcType=DATE}, #{createtime,jdbcType=DATE} ) </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="priceDate != null"> price_date, </if> <if test="fundId != null"> fund_id, </if> <if test="endDate != null"> end_date, </if> <if test="cumulativeNav != null"> cumulative_nav, </if> <if test="ret1m != null"> ret_1m, </if> <if test="ret1mBm1 != null"> ret_1m_bm1, </if> <if test="ret3m != null"> ret_3m, </if> <if test="ret3mBm1 != null"> ret_3m_bm1, </if> <if test="ret6m != null"> ret_6m, </if> <if test="ret6mBm1 != null"> ret_6m_bm1, </if> <if test="ret1y != null"> ret_1y, </if> <if test="ret1yBm1 != null"> ret_1y_bm1, </if> <if test="ret2y != null"> ret_2y, </if> <if test="ret2yBm1 != null"> ret_2y_bm1, </if> <if test="ret2yA != null"> ret_2y_a, </if> <if test="ret2yBm1 != null"> ret_2y_bm1_, </if> <if test="ret3y != null"> ret_3y, </if> <if test="ret3yBm1 != null"> ret_3y_bm1, </if> <if test="ret3yA != null"> ret_3y_a, </if> <if test="ret3yBm1 != null"> ret_3y_bm1_, </if> <if test="ret4y != null"> ret_4y, </if> <if test="ret4yBm1 != null"> ret_4y_bm1, </if> <if test="ret4yA != null"> ret_4y_a, </if> <if test="ret4yBm1 != null"> ret_4y_bm1_, </if> <if test="ret5y != null"> ret_5y, </if> <if test="ret5yBm1 != null"> ret_5y_bm1, </if> <if test="ret5yA != null"> ret_5y_a, </if> <if test="ret5yBm1 != null"> ret_5y_bm1_, </if> <if test="ret10y != null"> ret_10y, </if> <if test="ret10yBm1 != null"> ret_10y_bm1, </if> <if test="ret10yA != null"> ret_10y_a, </if> <if test="ret10yBm11 != null"> ret_10y_bm11, </if> <if test="retYtd != null"> ret_ytd, </if> <if test="retYtdBm1 != null"> ret_ytd_bm1, </if> <if test="retIncep != null"> ret_incep, </if> <if test="retIncepB != null"> ret_incep_b, </if> <if test="retIncepA != null"> ret_incep_a, </if> <if test="retIncepB1 != null"> ret_incep_b1, </if> <if test="isvalid != null"> isvalid, </if> <if test="updatetime != null"> updatetime, </if> <if test="createtime != null"> createtime, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=INTEGER}, </if> <if test="priceDate != null"> #{priceDate,jdbcType=DATE}, </if> <if test="fundId != null"> #{fundId,jdbcType=VARCHAR}, </if> <if test="endDate != null"> #{endDate,jdbcType=VARCHAR}, </if> <if test="cumulativeNav != null"> #{cumulativeNav,jdbcType=DOUBLE}, </if> <if test="ret1m != null"> #{ret1m,jdbcType=DOUBLE}, </if> <if test="ret1mBm1 != null"> #{ret1mBm1,jdbcType=DOUBLE}, </if> <if test="ret3m != null"> #{ret3m,jdbcType=DOUBLE}, </if> <if test="ret3mBm1 != null"> #{ret3mBm1,jdbcType=DOUBLE}, </if> <if test="ret6m != null"> #{ret6m,jdbcType=DOUBLE}, </if> <if test="ret6mBm1 != null"> #{ret6mBm1,jdbcType=DOUBLE}, </if> <if test="ret1y != null"> #{ret1y,jdbcType=DOUBLE}, </if> <if test="ret1yBm1 != null"> #{ret1yBm1,jdbcType=DOUBLE}, </if> <if test="ret2y != null"> #{ret2y,jdbcType=DOUBLE}, </if> <if test="ret2yBm1 != null"> #{ret2yBm1,jdbcType=DOUBLE}, </if> <if test="ret2yA != null"> #{ret2yA,jdbcType=DOUBLE}, </if> <if test="ret2yBm1 != null"> #{ret2yBm1,jdbcType=DOUBLE}, </if> <if test="ret3y != null"> #{ret3y,jdbcType=DOUBLE}, </if> <if test="ret3yBm1 != null"> #{ret3yBm1,jdbcType=DOUBLE}, </if> <if test="ret3yA != null"> #{ret3yA,jdbcType=DOUBLE}, </if> <if test="ret3yBm1 != null"> #{ret3yBm1,jdbcType=DOUBLE}, </if> <if test="ret4y != null"> #{ret4y,jdbcType=DOUBLE}, </if> <if test="ret4yBm1 != null"> #{ret4yBm1,jdbcType=DOUBLE}, </if> <if test="ret4yA != null"> #{ret4yA,jdbcType=DOUBLE}, </if> <if test="ret4yBm1 != null"> #{ret4yBm1,jdbcType=DOUBLE}, </if> <if test="ret5y != null"> #{ret5y,jdbcType=DOUBLE}, </if> <if test="ret5yBm1 != null"> #{ret5yBm1,jdbcType=DOUBLE}, </if> <if test="ret5yA != null"> #{ret5yA,jdbcType=DOUBLE}, </if> <if test="ret5yBm1 != null"> #{ret5yBm1,jdbcType=DOUBLE}, </if> <if test="ret10y != null"> #{ret10y,jdbcType=DOUBLE}, </if> <if test="ret10yBm1 != null"> #{ret10yBm1,jdbcType=DOUBLE}, </if> <if test="ret10yA != null"> #{ret10yA,jdbcType=DOUBLE}, </if> <if test="ret10yBm11 != null"> #{ret10yBm11,jdbcType=DOUBLE}, </if> <if test="retYtd != null"> #{retYtd,jdbcType=DOUBLE}, </if> <if test="retYtdBm1 != null"> #{retYtdBm1,jdbcType=DOUBLE}, </if> <if test="retIncep != null"> #{retIncep,jdbcType=DOUBLE}, </if> <if test="retIncepB != null"> #{retIncepB,jdbcType=DOUBLE}, </if> <if test="retIncepA != null"> #{retIncepA,jdbcType=DOUBLE}, </if> <if test="retIncepB1 != null"> #{retIncepB1,jdbcType=DOUBLE}, </if> <if test="isvalid != null"> #{isvalid,jdbcType=BIGINT}, </if> <if test="updatetime != null"> #{updatetime,jdbcType=DATE}, </if> <if test="createtime != null"> #{createtime,jdbcType=DATE}, </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"> id = #{record.id,jdbcType=INTEGER}, </if> <if test="record.priceDate != null"> price_date = #{record.priceDate,jdbcType=DATE}, </if> <if test="record.fundId != null"> fund_id = #{record.fundId,jdbcType=VARCHAR}, </if> <if test="record.endDate != null"> end_date = #{record.endDate,jdbcType=VARCHAR}, </if> <if test="record.cumulativeNav != null"> cumulative_nav = #{record.cumulativeNav,jdbcType=DOUBLE}, </if> <if test="record.ret1m != null"> ret_1m = #{record.ret1m,jdbcType=DOUBLE}, </if> <if test="record.ret1mBm1 != null"> ret_1m_bm1 = #{record.ret1mBm1,jdbcType=DOUBLE}, </if> <if test="record.ret3m != null"> ret_3m = #{record.ret3m,jdbcType=DOUBLE}, </if> <if test="record.ret3mBm1 != null"> ret_3m_bm1 = #{record.ret3mBm1,jdbcType=DOUBLE}, </if> <if test="record.ret6m != null"> ret_6m = #{record.ret6m,jdbcType=DOUBLE}, </if> <if test="record.ret6mBm1 != null"> ret_6m_bm1 = #{record.ret6mBm1,jdbcType=DOUBLE}, </if> <if test="record.ret1y != null"> ret_1y = #{record.ret1y,jdbcType=DOUBLE}, </if> <if test="record.ret1yBm1 != null"> ret_1y_bm1 = #{record.ret1yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret2y != null"> ret_2y = #{record.ret2y,jdbcType=DOUBLE}, </if> <if test="record.ret2yBm1 != null"> ret_2y_bm1 = #{record.ret2yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret2yA != null"> ret_2y_a = #{record.ret2yA,jdbcType=DOUBLE}, </if> <if test="record.ret2yBm1 != null"> ret_2y_bm1_ = #{record.ret2yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret3y != null"> ret_3y = #{record.ret3y,jdbcType=DOUBLE}, </if> <if test="record.ret3yBm1 != null"> ret_3y_bm1 = #{record.ret3yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret3yA != null"> ret_3y_a = #{record.ret3yA,jdbcType=DOUBLE}, </if> <if test="record.ret3yBm1 != null"> ret_3y_bm1_ = #{record.ret3yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret4y != null"> ret_4y = #{record.ret4y,jdbcType=DOUBLE}, </if> <if test="record.ret4yBm1 != null"> ret_4y_bm1 = #{record.ret4yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret4yA != null"> ret_4y_a = #{record.ret4yA,jdbcType=DOUBLE}, </if> <if test="record.ret4yBm1 != null"> ret_4y_bm1_ = #{record.ret4yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret5y != null"> ret_5y = #{record.ret5y,jdbcType=DOUBLE}, </if> <if test="record.ret5yBm1 != null"> ret_5y_bm1 = #{record.ret5yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret5yA != null"> ret_5y_a = #{record.ret5yA,jdbcType=DOUBLE}, </if> <if test="record.ret5yBm1 != null"> ret_5y_bm1_ = #{record.ret5yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret10y != null"> ret_10y = #{record.ret10y,jdbcType=DOUBLE}, </if> <if test="record.ret10yBm1 != null"> ret_10y_bm1 = #{record.ret10yBm1,jdbcType=DOUBLE}, </if> <if test="record.ret10yA != null"> ret_10y_a = #{record.ret10yA,jdbcType=DOUBLE}, </if> <if test="record.ret10yBm11 != null"> ret_10y_bm11 = #{record.ret10yBm11,jdbcType=DOUBLE}, </if> <if test="record.retYtd != null"> ret_ytd = #{record.retYtd,jdbcType=DOUBLE}, </if> <if test="record.retYtdBm1 != null"> ret_ytd_bm1 = #{record.retYtdBm1,jdbcType=DOUBLE}, </if> <if test="record.retIncep != null"> ret_incep = #{record.retIncep,jdbcType=DOUBLE}, </if> <if test="record.retIncepB != null"> ret_incep_b = #{record.retIncepB,jdbcType=DOUBLE}, </if> <if test="record.retIncepA != null"> ret_incep_a = #{record.retIncepA,jdbcType=DOUBLE}, </if> <if test="record.retIncepB1 != null"> ret_incep_b1 = #{record.retIncepB1,jdbcType=DOUBLE}, </if> <if test="record.isvalid != null"> isvalid = #{record.isvalid,jdbcType=BIGINT}, </if> <if test="record.updatetime != null"> updatetime = #{record.updatetime,jdbcType=DATE}, </if> <if test="record.createtime != null"> createtime = #{record.createtime,jdbcType=DATE}, </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 set id = #{record.id,jdbcType=INTEGER}, price_date = #{record.priceDate,jdbcType=DATE}, fund_id = #{record.fundId,jdbcType=VARCHAR}, end_date = #{record.endDate,jdbcType=VARCHAR}, cumulative_nav = #{record.cumulativeNav,jdbcType=DOUBLE}, ret_1m = #{record.ret1m,jdbcType=DOUBLE}, ret_1m_bm1 = #{record.ret1mBm1,jdbcType=DOUBLE}, ret_3m = #{record.ret3m,jdbcType=DOUBLE}, ret_3m_bm1 = #{record.ret3mBm1,jdbcType=DOUBLE}, ret_6m = #{record.ret6m,jdbcType=DOUBLE}, ret_6m_bm1 = #{record.ret6mBm1,jdbcType=DOUBLE}, ret_1y = #{record.ret1y,jdbcType=DOUBLE}, ret_1y_bm1 = #{record.ret1yBm1,jdbcType=DOUBLE}, ret_2y = #{record.ret2y,jdbcType=DOUBLE}, ret_2y_bm1 = #{record.ret2yBm1,jdbcType=DOUBLE}, ret_2y_a = #{record.ret2yA,jdbcType=DOUBLE}, ret_2y_bm1_ = #{record.ret2yBm1,jdbcType=DOUBLE}, ret_3y = #{record.ret3y,jdbcType=DOUBLE}, ret_3y_bm1 = #{record.ret3yBm1,jdbcType=DOUBLE}, ret_3y_a = #{record.ret3yA,jdbcType=DOUBLE}, ret_3y_bm1_ = #{record.ret3yBm1,jdbcType=DOUBLE}, ret_4y = #{record.ret4y,jdbcType=DOUBLE}, ret_4y_bm1 = #{record.ret4yBm1,jdbcType=DOUBLE}, ret_4y_a = #{record.ret4yA,jdbcType=DOUBLE}, ret_4y_bm1_ = #{record.ret4yBm1,jdbcType=DOUBLE}, ret_5y = #{record.ret5y,jdbcType=DOUBLE}, ret_5y_bm1 = #{record.ret5yBm1,jdbcType=DOUBLE}, ret_5y_a = #{record.ret5yA,jdbcType=DOUBLE}, ret_5y_bm1_ = #{record.ret5yBm1,jdbcType=DOUBLE}, ret_10y = #{record.ret10y,jdbcType=DOUBLE}, ret_10y_bm1 = #{record.ret10yBm1,jdbcType=DOUBLE}, ret_10y_a = #{record.ret10yA,jdbcType=DOUBLE}, ret_10y_bm11 = #{record.ret10yBm11,jdbcType=DOUBLE}, ret_ytd = #{record.retYtd,jdbcType=DOUBLE}, ret_ytd_bm1 = #{record.retYtdBm1,jdbcType=DOUBLE}, ret_incep = #{record.retIncep,jdbcType=DOUBLE}, ret_incep_b = #{record.retIncepB,jdbcType=DOUBLE}, ret_incep_a = #{record.retIncepA,jdbcType=DOUBLE}, ret_incep_b1 = #{record.retIncepB1,jdbcType=DOUBLE}, isvalid = #{record.isvalid,jdbcType=BIGINT}, updatetime = #{record.updatetime,jdbcType=DATE}, createtime = #{record.createtime,jdbcType=DATE} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <insert id="batchInsert" parameterType="map"> <!--@mbg.generated--> insert into fund_performance (id, price_date, fund_id, end_date, cumulative_nav, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_, ret_10y, ret_10y_bm1, ret_10y_a, ret_10y_bm11, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_b, ret_incep_a, ret_incep_b1, isvalid, updatetime, createtime) values <foreach collection="list" item="item" separator=","> (#{item.id,jdbcType=INTEGER}, #{item.priceDate,jdbcType=DATE}, #{item.fundId,jdbcType=VARCHAR}, #{item.endDate,jdbcType=VARCHAR}, #{item.cumulativeNav,jdbcType=DOUBLE}, #{item.ret1m,jdbcType=DOUBLE}, #{item.ret1mBm1,jdbcType=DOUBLE}, #{item.ret3m,jdbcType=DOUBLE}, #{item.ret3mBm1,jdbcType=DOUBLE}, #{item.ret6m,jdbcType=DOUBLE}, #{item.ret6mBm1,jdbcType=DOUBLE}, #{item.ret1y,jdbcType=DOUBLE}, #{item.ret1yBm1,jdbcType=DOUBLE}, #{item.ret2y,jdbcType=DOUBLE}, #{item.ret2yBm1,jdbcType=DOUBLE}, #{item.ret2yA,jdbcType=DOUBLE}, #{item.ret2yBm1,jdbcType=DOUBLE}, #{item.ret3y,jdbcType=DOUBLE}, #{item.ret3yBm1,jdbcType=DOUBLE}, #{item.ret3yA,jdbcType=DOUBLE}, #{item.ret3yBm1,jdbcType=DOUBLE}, #{item.ret4y,jdbcType=DOUBLE}, #{item.ret4yBm1,jdbcType=DOUBLE}, #{item.ret4yA,jdbcType=DOUBLE}, #{item.ret4yBm1,jdbcType=DOUBLE}, #{item.ret5y,jdbcType=DOUBLE}, #{item.ret5yBm1,jdbcType=DOUBLE}, #{item.ret5yA,jdbcType=DOUBLE}, #{item.ret5yBm1,jdbcType=DOUBLE}, #{item.ret10y,jdbcType=DOUBLE}, #{item.ret10yBm1,jdbcType=DOUBLE}, #{item.ret10yA,jdbcType=DOUBLE}, #{item.ret10yBm11,jdbcType=DOUBLE}, #{item.retYtd,jdbcType=DOUBLE}, #{item.retYtdBm1,jdbcType=DOUBLE}, #{item.retIncep,jdbcType=DOUBLE}, #{item.retIncepB,jdbcType=DOUBLE}, #{item.retIncepA,jdbcType=DOUBLE}, #{item.retIncepB1,jdbcType=DOUBLE}, #{item.isvalid,jdbcType=BIGINT}, #{item.updatetime,jdbcType=DATE}, #{item.createtime,jdbcType=DATE} ) </foreach> </insert> <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundPerformance"> <!--@mbg.generated--> insert into fund_performance (id, price_date, fund_id, end_date, cumulative_nav, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_, ret_10y, ret_10y_bm1, ret_10y_a, ret_10y_bm11, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_b, ret_incep_a, ret_incep_b1, isvalid, updatetime, createtime) values (#{id,jdbcType=INTEGER}, #{priceDate,jdbcType=DATE}, #{fundId,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{cumulativeNav,jdbcType=DOUBLE}, #{ret1m,jdbcType=DOUBLE}, #{ret1mBm1,jdbcType=DOUBLE}, #{ret3m,jdbcType=DOUBLE}, #{ret3mBm1,jdbcType=DOUBLE}, #{ret6m,jdbcType=DOUBLE}, #{ret6mBm1,jdbcType=DOUBLE}, #{ret1y,jdbcType=DOUBLE}, #{ret1yBm1,jdbcType=DOUBLE}, #{ret2y,jdbcType=DOUBLE}, #{ret2yBm1,jdbcType=DOUBLE}, #{ret2yA,jdbcType=DOUBLE}, #{ret2yBm1,jdbcType=DOUBLE}, #{ret3y,jdbcType=DOUBLE}, #{ret3yBm1,jdbcType=DOUBLE}, #{ret3yA,jdbcType=DOUBLE}, #{ret3yBm1,jdbcType=DOUBLE}, #{ret4y,jdbcType=DOUBLE}, #{ret4yBm1,jdbcType=DOUBLE}, #{ret4yA,jdbcType=DOUBLE}, #{ret4yBm1,jdbcType=DOUBLE}, #{ret5y,jdbcType=DOUBLE}, #{ret5yBm1,jdbcType=DOUBLE}, #{ret5yA,jdbcType=DOUBLE}, #{ret5yBm1,jdbcType=DOUBLE}, #{ret10y,jdbcType=DOUBLE}, #{ret10yBm1,jdbcType=DOUBLE}, #{ret10yA,jdbcType=DOUBLE}, #{ret10yBm11,jdbcType=DOUBLE}, #{retYtd,jdbcType=DOUBLE}, #{retYtdBm1,jdbcType=DOUBLE}, #{retIncep,jdbcType=DOUBLE}, #{retIncepB,jdbcType=DOUBLE}, #{retIncepA,jdbcType=DOUBLE}, #{retIncepB1,jdbcType=DOUBLE}, #{isvalid,jdbcType=BIGINT}, #{updatetime,jdbcType=DATE}, #{createtime,jdbcType=DATE} ) on duplicate key update id = #{id,jdbcType=INTEGER}, price_date = #{priceDate,jdbcType=DATE}, fund_id = #{fundId,jdbcType=VARCHAR}, end_date = #{endDate,jdbcType=VARCHAR}, cumulative_nav = #{cumulativeNav,jdbcType=DOUBLE}, ret_1m = #{ret1m,jdbcType=DOUBLE}, ret_1m_bm1 = #{ret1mBm1,jdbcType=DOUBLE}, ret_3m = #{ret3m,jdbcType=DOUBLE}, ret_3m_bm1 = #{ret3mBm1,jdbcType=DOUBLE}, ret_6m = #{ret6m,jdbcType=DOUBLE}, ret_6m_bm1 = #{ret6mBm1,jdbcType=DOUBLE}, ret_1y = #{ret1y,jdbcType=DOUBLE}, ret_1y_bm1 = #{ret1yBm1,jdbcType=DOUBLE}, ret_2y = #{ret2y,jdbcType=DOUBLE}, ret_2y_bm1 = #{ret2yBm1,jdbcType=DOUBLE}, ret_2y_a = #{ret2yA,jdbcType=DOUBLE}, ret_2y_bm1_ = #{ret2yBm1,jdbcType=DOUBLE}, ret_3y = #{ret3y,jdbcType=DOUBLE}, ret_3y_bm1 = #{ret3yBm1,jdbcType=DOUBLE}, ret_3y_a = #{ret3yA,jdbcType=DOUBLE}, ret_3y_bm1_ = #{ret3yBm1,jdbcType=DOUBLE}, ret_4y = #{ret4y,jdbcType=DOUBLE}, ret_4y_bm1 = #{ret4yBm1,jdbcType=DOUBLE}, ret_4y_a = #{ret4yA,jdbcType=DOUBLE}, ret_4y_bm1_ = #{ret4yBm1,jdbcType=DOUBLE}, ret_5y = #{ret5y,jdbcType=DOUBLE}, ret_5y_bm1 = #{ret5yBm1,jdbcType=DOUBLE}, ret_5y_a = #{ret5yA,jdbcType=DOUBLE}, ret_5y_bm1_ = #{ret5yBm1,jdbcType=DOUBLE}, ret_10y = #{ret10y,jdbcType=DOUBLE}, ret_10y_bm1 = #{ret10yBm1,jdbcType=DOUBLE}, ret_10y_a = #{ret10yA,jdbcType=DOUBLE}, ret_10y_bm11 = #{ret10yBm11,jdbcType=DOUBLE}, ret_ytd = #{retYtd,jdbcType=DOUBLE}, ret_ytd_bm1 = #{retYtdBm1,jdbcType=DOUBLE}, ret_incep = #{retIncep,jdbcType=DOUBLE}, ret_incep_b = #{retIncepB,jdbcType=DOUBLE}, ret_incep_a = #{retIncepA,jdbcType=DOUBLE}, ret_incep_b1 = #{retIncepB1,jdbcType=DOUBLE}, isvalid = #{isvalid,jdbcType=BIGINT}, updatetime = #{updatetime,jdbcType=DATE}, createtime = #{createtime,jdbcType=DATE} </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="priceDate != null"> price_date, </if> <if test="fundId != null"> fund_id, </if> <if test="endDate != null"> end_date, </if> <if test="cumulativeNav != null"> cumulative_nav, </if> <if test="ret1m != null"> ret_1m, </if> <if test="ret1mBm1 != null"> ret_1m_bm1, </if> <if test="ret3m != null"> ret_3m, </if> <if test="ret3mBm1 != null"> ret_3m_bm1, </if> <if test="ret6m != null"> ret_6m, </if> <if test="ret6mBm1 != null"> ret_6m_bm1, </if> <if test="ret1y != null"> ret_1y, </if> <if test="ret1yBm1 != null"> ret_1y_bm1, </if> <if test="ret2y != null"> ret_2y, </if> <if test="ret2yBm1 != null"> ret_2y_bm1, </if> <if test="ret2yA != null"> ret_2y_a, </if> <if test="ret2yBm1 != null"> ret_2y_bm1_, </if> <if test="ret3y != null"> ret_3y, </if> <if test="ret3yBm1 != null"> ret_3y_bm1, </if> <if test="ret3yA != null"> ret_3y_a, </if> <if test="ret3yBm1 != null"> ret_3y_bm1_, </if> <if test="ret4y != null"> ret_4y, </if> <if test="ret4yBm1 != null"> ret_4y_bm1, </if> <if test="ret4yA != null"> ret_4y_a, </if> <if test="ret4yBm1 != null"> ret_4y_bm1_, </if> <if test="ret5y != null"> ret_5y, </if> <if test="ret5yBm1 != null"> ret_5y_bm1, </if> <if test="ret5yA != null"> ret_5y_a, </if> <if test="ret5yBm1 != null"> ret_5y_bm1_, </if> <if test="ret10y != null"> ret_10y, </if> <if test="ret10yBm1 != null"> ret_10y_bm1, </if> <if test="ret10yA != null"> ret_10y_a, </if> <if test="ret10yBm11 != null"> ret_10y_bm11, </if> <if test="retYtd != null"> ret_ytd, </if> <if test="retYtdBm1 != null"> ret_ytd_bm1, </if> <if test="retIncep != null"> ret_incep, </if> <if test="retIncepB != null"> ret_incep_b, </if> <if test="retIncepA != null"> ret_incep_a, </if> <if test="retIncepB1 != null"> ret_incep_b1, </if> <if test="isvalid != null"> isvalid, </if> <if test="updatetime != null"> updatetime, </if> <if test="createtime != null"> createtime, </if> </trim> values <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=INTEGER}, </if> <if test="priceDate != null"> #{priceDate,jdbcType=DATE}, </if> <if test="fundId != null"> #{fundId,jdbcType=VARCHAR}, </if> <if test="endDate != null"> #{endDate,jdbcType=VARCHAR}, </if> <if test="cumulativeNav != null"> #{cumulativeNav,jdbcType=DOUBLE}, </if> <if test="ret1m != null"> #{ret1m,jdbcType=DOUBLE}, </if> <if test="ret1mBm1 != null"> #{ret1mBm1,jdbcType=DOUBLE}, </if> <if test="ret3m != null"> #{ret3m,jdbcType=DOUBLE}, </if> <if test="ret3mBm1 != null"> #{ret3mBm1,jdbcType=DOUBLE}, </if> <if test="ret6m != null"> #{ret6m,jdbcType=DOUBLE}, </if> <if test="ret6mBm1 != null"> #{ret6mBm1,jdbcType=DOUBLE}, </if> <if test="ret1y != null"> #{ret1y,jdbcType=DOUBLE}, </if> <if test="ret1yBm1 != null"> #{ret1yBm1,jdbcType=DOUBLE}, </if> <if test="ret2y != null"> #{ret2y,jdbcType=DOUBLE}, </if> <if test="ret2yBm1 != null"> #{ret2yBm1,jdbcType=DOUBLE}, </if> <if test="ret2yA != null"> #{ret2yA,jdbcType=DOUBLE}, </if> <if test="ret2yBm1 != null"> #{ret2yBm1,jdbcType=DOUBLE}, </if> <if test="ret3y != null"> #{ret3y,jdbcType=DOUBLE}, </if> <if test="ret3yBm1 != null"> #{ret3yBm1,jdbcType=DOUBLE}, </if> <if test="ret3yA != null"> #{ret3yA,jdbcType=DOUBLE}, </if> <if test="ret3yBm1 != null"> #{ret3yBm1,jdbcType=DOUBLE}, </if> <if test="ret4y != null"> #{ret4y,jdbcType=DOUBLE}, </if> <if test="ret4yBm1 != null"> #{ret4yBm1,jdbcType=DOUBLE}, </if> <if test="ret4yA != null"> #{ret4yA,jdbcType=DOUBLE}, </if> <if test="ret4yBm1 != null"> #{ret4yBm1,jdbcType=DOUBLE}, </if> <if test="ret5y != null"> #{ret5y,jdbcType=DOUBLE}, </if> <if test="ret5yBm1 != null"> #{ret5yBm1,jdbcType=DOUBLE}, </if> <if test="ret5yA != null"> #{ret5yA,jdbcType=DOUBLE}, </if> <if test="ret5yBm1 != null"> #{ret5yBm1,jdbcType=DOUBLE}, </if> <if test="ret10y != null"> #{ret10y,jdbcType=DOUBLE}, </if> <if test="ret10yBm1 != null"> #{ret10yBm1,jdbcType=DOUBLE}, </if> <if test="ret10yA != null"> #{ret10yA,jdbcType=DOUBLE}, </if> <if test="ret10yBm11 != null"> #{ret10yBm11,jdbcType=DOUBLE}, </if> <if test="retYtd != null"> #{retYtd,jdbcType=DOUBLE}, </if> <if test="retYtdBm1 != null"> #{retYtdBm1,jdbcType=DOUBLE}, </if> <if test="retIncep != null"> #{retIncep,jdbcType=DOUBLE}, </if> <if test="retIncepB != null"> #{retIncepB,jdbcType=DOUBLE}, </if> <if test="retIncepA != null"> #{retIncepA,jdbcType=DOUBLE}, </if> <if test="retIncepB1 != null"> #{retIncepB1,jdbcType=DOUBLE}, </if> <if test="isvalid != null"> #{isvalid,jdbcType=BIGINT}, </if> <if test="updatetime != null"> #{updatetime,jdbcType=DATE}, </if> <if test="createtime != null"> #{createtime,jdbcType=DATE}, </if> </trim> on duplicate key update <trim suffixOverrides=","> <if test="id != null"> id = #{id,jdbcType=INTEGER}, </if> <if test="priceDate != null"> price_date = #{priceDate,jdbcType=DATE}, </if> <if test="fundId != null"> fund_id = #{fundId,jdbcType=VARCHAR}, </if> <if test="endDate != null"> end_date = #{endDate,jdbcType=VARCHAR}, </if> <if test="cumulativeNav != null"> cumulative_nav = #{cumulativeNav,jdbcType=DOUBLE}, </if> <if test="ret1m != null"> ret_1m = #{ret1m,jdbcType=DOUBLE}, </if> <if test="ret1mBm1 != null"> ret_1m_bm1 = #{ret1mBm1,jdbcType=DOUBLE}, </if> <if test="ret3m != null"> ret_3m = #{ret3m,jdbcType=DOUBLE}, </if> <if test="ret3mBm1 != null"> ret_3m_bm1 = #{ret3mBm1,jdbcType=DOUBLE}, </if> <if test="ret6m != null"> ret_6m = #{ret6m,jdbcType=DOUBLE}, </if> <if test="ret6mBm1 != null"> ret_6m_bm1 = #{ret6mBm1,jdbcType=DOUBLE}, </if> <if test="ret1y != null"> ret_1y = #{ret1y,jdbcType=DOUBLE}, </if> <if test="ret1yBm1 != null"> ret_1y_bm1 = #{ret1yBm1,jdbcType=DOUBLE}, </if> <if test="ret2y != null"> ret_2y = #{ret2y,jdbcType=DOUBLE}, </if> <if test="ret2yBm1 != null"> ret_2y_bm1 = #{ret2yBm1,jdbcType=DOUBLE}, </if> <if test="ret2yA != null"> ret_2y_a = #{ret2yA,jdbcType=DOUBLE}, </if> <if test="ret2yBm1 != null"> ret_2y_bm1_ = #{ret2yBm1,jdbcType=DOUBLE}, </if> <if test="ret3y != null"> ret_3y = #{ret3y,jdbcType=DOUBLE}, </if> <if test="ret3yBm1 != null"> ret_3y_bm1 = #{ret3yBm1,jdbcType=DOUBLE}, </if> <if test="ret3yA != null"> ret_3y_a = #{ret3yA,jdbcType=DOUBLE}, </if> <if test="ret3yBm1 != null"> ret_3y_bm1_ = #{ret3yBm1,jdbcType=DOUBLE}, </if> <if test="ret4y != null"> ret_4y = #{ret4y,jdbcType=DOUBLE}, </if> <if test="ret4yBm1 != null"> ret_4y_bm1 = #{ret4yBm1,jdbcType=DOUBLE}, </if> <if test="ret4yA != null"> ret_4y_a = #{ret4yA,jdbcType=DOUBLE}, </if> <if test="ret4yBm1 != null"> ret_4y_bm1_ = #{ret4yBm1,jdbcType=DOUBLE}, </if> <if test="ret5y != null"> ret_5y = #{ret5y,jdbcType=DOUBLE}, </if> <if test="ret5yBm1 != null"> ret_5y_bm1 = #{ret5yBm1,jdbcType=DOUBLE}, </if> <if test="ret5yA != null"> ret_5y_a = #{ret5yA,jdbcType=DOUBLE}, </if> <if test="ret5yBm1 != null"> ret_5y_bm1_ = #{ret5yBm1,jdbcType=DOUBLE}, </if> <if test="ret10y != null"> ret_10y = #{ret10y,jdbcType=DOUBLE}, </if> <if test="ret10yBm1 != null"> ret_10y_bm1 = #{ret10yBm1,jdbcType=DOUBLE}, </if> <if test="ret10yA != null"> ret_10y_a = #{ret10yA,jdbcType=DOUBLE}, </if> <if test="ret10yBm11 != null"> ret_10y_bm11 = #{ret10yBm11,jdbcType=DOUBLE}, </if> <if test="retYtd != null"> ret_ytd = #{retYtd,jdbcType=DOUBLE}, </if> <if test="retYtdBm1 != null"> ret_ytd_bm1 = #{retYtdBm1,jdbcType=DOUBLE}, </if> <if test="retIncep != null"> ret_incep = #{retIncep,jdbcType=DOUBLE}, </if> <if test="retIncepB != null"> ret_incep_b = #{retIncepB,jdbcType=DOUBLE}, </if> <if test="retIncepA != null"> ret_incep_a = #{retIncepA,jdbcType=DOUBLE}, </if> <if test="retIncepB1 != null"> ret_incep_b1 = #{retIncepB1,jdbcType=DOUBLE}, </if> <if test="isvalid != null"> isvalid = #{isvalid,jdbcType=BIGINT}, </if> <if test="updatetime != null"> updatetime = #{updatetime,jdbcType=DATE}, </if> <if test="createtime != null"> createtime = #{createtime,jdbcType=DATE}, </if> </trim> </insert> </mapper>