Commit 2586dc34 authored by zp's avatar zp

成立时间

parent fd562a28
...@@ -7,6 +7,25 @@ import lombok.Builder; ...@@ -7,6 +7,25 @@ import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
/** /**
* 基金历史业绩 * 基金历史业绩
*/ */
...@@ -32,6 +51,11 @@ public class FundCount { ...@@ -32,6 +51,11 @@ public class FundCount {
*/ */
private Integer substrategy; private Integer substrategy;
/**
* 基金成立日期
*/
private Date inceptionDate;
/** /**
* 是否可预约 0:不可预约 1:可预约 * 是否可预约 0:不可预约 1:可预约
*/ */
......
...@@ -6,6 +6,24 @@ import java.util.Date; ...@@ -6,6 +6,24 @@ import java.util.Date;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
public class FundCountExample { public class FundCountExample {
protected String orderByClause; protected String orderByClause;
...@@ -393,6 +411,66 @@ public class FundCountExample { ...@@ -393,6 +411,66 @@ public class FundCountExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInceptionDateIsNull() {
addCriterion("inception_date is null");
return (Criteria) this;
}
public Criteria andInceptionDateIsNotNull() {
addCriterion("inception_date is not null");
return (Criteria) this;
}
public Criteria andInceptionDateEqualTo(Date value) {
addCriterionForJDBCDate("inception_date =", value, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateNotEqualTo(Date value) {
addCriterionForJDBCDate("inception_date <>", value, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateGreaterThan(Date value) {
addCriterionForJDBCDate("inception_date >", value, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("inception_date >=", value, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateLessThan(Date value) {
addCriterionForJDBCDate("inception_date <", value, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("inception_date <=", value, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateIn(List<Date> values) {
addCriterionForJDBCDate("inception_date in", values, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateNotIn(List<Date> values) {
addCriterionForJDBCDate("inception_date not in", values, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("inception_date between", value1, value2, "inceptionDate");
return (Criteria) this;
}
public Criteria andInceptionDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("inception_date not between", value1, value2, "inceptionDate");
return (Criteria) this;
}
public Criteria andTypeIsNull() { public Criteria andTypeIsNull() {
addCriterion("`type` is null"); addCriterion("`type` is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -6,71 +6,55 @@ import java.util.List; ...@@ -6,71 +6,55 @@ import java.util.List;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Mapper @Mapper
public interface FundCountMapper { public interface FundCountMapper {
long countByExample(FundCountExample example); long countByExample(FundCountExample example);
int deleteByExample(FundCountExample example); int deleteByExample(FundCountExample example);
/**
* delete by primary key
*
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(String id); int deleteByPrimaryKey(String id);
/**
* insert record to table
*
* @param record the record
* @return insert count
*/
int insert(FundCount record); int insert(FundCount record);
int insertOrUpdate(FundCount record); int insertOrUpdate(FundCount record);
int insertOrUpdateSelective(FundCount record); int insertOrUpdateSelective(FundCount record);
/**
* insert record to table selective
*
* @param record the record
* @return insert count
*/
int insertSelective(FundCount record); int insertSelective(FundCount record);
List<FundCount> selectByExample(FundCountExample example); List<FundCount> selectByExample(FundCountExample example);
/**
* select by primary key
*
* @param id primary key
* @return object by primary key
*/
FundCount selectByPrimaryKey(String id); FundCount selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") FundCount record, @Param("example") FundCountExample example); int updateByExampleSelective(@Param("record") FundCount record, @Param("example") FundCountExample example);
int updateByExample(@Param("record") FundCount record, @Param("example") FundCountExample example); int updateByExample(@Param("record") FundCount record, @Param("example") FundCountExample example);
/**
* update record selective
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(FundCount record); int updateByPrimaryKeySelective(FundCount record);
/**
* update record
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(FundCount record); int updateByPrimaryKey(FundCount record);
int updateBatch(List<FundCount> list); int updateBatch(List<FundCount> list);
int updateBatchSelective(List<FundCount> list);
int batchInsert(@Param("list") List<FundCount> list); int batchInsert(@Param("list") List<FundCount> list);
} }
\ No newline at end of file
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<result column="fund_id" jdbcType="VARCHAR" property="fundId" /> <result column="fund_id" jdbcType="VARCHAR" property="fundId" />
<result column="strategy" jdbcType="INTEGER" property="strategy" /> <result column="strategy" jdbcType="INTEGER" property="strategy" />
<result column="substrategy" jdbcType="INTEGER" property="substrategy" /> <result column="substrategy" jdbcType="INTEGER" property="substrategy" />
<result column="inception_date" jdbcType="DATE" property="inceptionDate" />
<result column="type" jdbcType="INTEGER" property="type" /> <result column="type" jdbcType="INTEGER" property="type" />
<result column="end_date" jdbcType="DATE" property="endDate" /> <result column="end_date" jdbcType="DATE" property="endDate" />
<result column="price_date" jdbcType="DATE" property="priceDate" /> <result column="price_date" jdbcType="DATE" property="priceDate" />
...@@ -137,16 +138,16 @@ ...@@ -137,16 +138,16 @@
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!--@mbg.generated--> <!--@mbg.generated-->
id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav, id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1,
ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_a, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a,
ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, ret_2y_bm1_a, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a,
ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1, ret_4y_bm1_a, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep,
ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y, ret_incep_bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y,
sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5y, sharperatio_4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y,
stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3y, stddev_4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y,
maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, data_sources, maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep,
update_time, create_time, `status`, sort, delete_tag data_sources, update_time, create_time, `status`, sort, delete_tag
</sql> </sql>
<select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.FundCountExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.FundCountExample" resultMap="BaseResultMap">
<!--@mbg.generated--> <!--@mbg.generated-->
...@@ -185,53 +186,53 @@ ...@@ -185,53 +186,53 @@
<insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundCount"> <insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_count (id, fund_id, strategy, insert into fund_count (id, fund_id, strategy,
substrategy, `type`, end_date, substrategy, inception_date, `type`,
price_date, net_nav, cumulative_nav, end_date, price_date, net_nav,
ret_1day, ret_1day_bm1, ret_1w, cumulative_nav, ret_1day, ret_1day_bm1,
ret_1w_bm1, ret_1m, ret_1m_bm1, ret_1w, ret_1w_bm1, ret_1m,
ret_3m, ret_3m_bm1, ret_6m, ret_1m_bm1, ret_3m, ret_3m_bm1,
ret_6m_bm1, ret_1y, ret_1y_bm1, ret_6m, ret_6m_bm1, ret_1y,
ret_2y, ret_2y_bm1, ret_2y_a, ret_1y_bm1, ret_2y, ret_2y_bm1,
ret_2y_bm1_a, ret_3y, ret_3y_bm1, ret_2y_a, ret_2y_bm1_a, ret_3y,
ret_3y_a, ret_3y_bm1_a, ret_4y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a,
ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a,
ret_5y, ret_5y_bm1, ret_5y_a, ret_4y_bm1_a, ret_5y, ret_5y_bm1,
ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd,
ret_incep, ret_incep_bm1, ret_incep_a, ret_ytd_bm1, ret_incep, ret_incep_bm1,
ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, ret_incep_a, ret_incep_bm1_a, sharperatio_1y,
sharperatio_3y, sharperatio_4y, sharperatio_5y, sharperatio_2y, sharperatio_3y, sharperatio_4y,
sharperatio_incep, stddev_1y, stddev_2y, sharperatio_5y, sharperatio_incep, stddev_1y,
stddev_3y, stddev_4y, stddev_5y, stddev_2y, stddev_3y, stddev_4y,
stddev_10y, stddev_incep, stddev_ytd, stddev_5y, stddev_10y, stddev_incep,
maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3y, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y,
maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y,
maxdrawdown_incep, data_sources, update_time, maxdrawdown_10y, maxdrawdown_incep, data_sources,
create_time, `status`, sort, update_time, create_time, `status`,
delete_tag) sort, delete_tag)
values (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER}, values (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER},
#{substrategy,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{endDate,jdbcType=DATE}, #{substrategy,jdbcType=INTEGER}, #{inceptionDate,jdbcType=DATE}, #{type,jdbcType=INTEGER},
#{priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL}, #{cumulativeNav,jdbcType=DECIMAL}, #{endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL},
#{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, #{cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL},
#{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL},
#{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL},
#{ret6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL},
#{ret2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL},
#{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL},
#{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL},
#{ret4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL},
#{ret5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL},
#{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL},
#{retIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL},
#{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2y,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL},
#{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5y,jdbcType=DECIMAL}, #{sharperatio2y,jdbcType=DECIMAL}, #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL},
#{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, #{sharperatio5y,jdbcType=DECIMAL}, #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL},
#{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL},
#{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL},
#{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3y,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL},
#{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10y,jdbcType=DECIMAL}, #{maxdrawdown3y,jdbcType=DECIMAL}, #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL},
#{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{maxdrawdown10y,jdbcType=DECIMAL}, #{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}) #{sort,jdbcType=INTEGER}, #{deleteTag,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundCount"> <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated--> <!--@mbg.generated-->
...@@ -249,6 +250,9 @@ ...@@ -249,6 +250,9 @@
<if test="substrategy != null"> <if test="substrategy != null">
substrategy, substrategy,
</if> </if>
<if test="inceptionDate != null">
inception_date,
</if>
<if test="type != null"> <if test="type != null">
`type`, `type`,
</if> </if>
...@@ -461,6 +465,9 @@ ...@@ -461,6 +465,9 @@
<if test="substrategy != null"> <if test="substrategy != null">
#{substrategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER},
</if> </if>
<if test="inceptionDate != null">
#{inceptionDate,jdbcType=DATE},
</if>
<if test="type != null"> <if test="type != null">
#{type,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},
</if> </if>
...@@ -684,6 +691,9 @@ ...@@ -684,6 +691,9 @@
<if test="record.substrategy != null"> <if test="record.substrategy != null">
substrategy = #{record.substrategy,jdbcType=INTEGER}, substrategy = #{record.substrategy,jdbcType=INTEGER},
</if> </if>
<if test="record.inceptionDate != null">
inception_date = #{record.inceptionDate,jdbcType=DATE},
</if>
<if test="record.type != null"> <if test="record.type != null">
`type` = #{record.type,jdbcType=INTEGER}, `type` = #{record.type,jdbcType=INTEGER},
</if> </if>
...@@ -894,6 +904,7 @@ ...@@ -894,6 +904,7 @@
fund_id = #{record.fundId,jdbcType=VARCHAR}, fund_id = #{record.fundId,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER}, strategy = #{record.strategy,jdbcType=INTEGER},
substrategy = #{record.substrategy,jdbcType=INTEGER}, substrategy = #{record.substrategy,jdbcType=INTEGER},
inception_date = #{record.inceptionDate,jdbcType=DATE},
`type` = #{record.type,jdbcType=INTEGER}, `type` = #{record.type,jdbcType=INTEGER},
end_date = #{record.endDate,jdbcType=DATE}, end_date = #{record.endDate,jdbcType=DATE},
price_date = #{record.priceDate,jdbcType=DATE}, price_date = #{record.priceDate,jdbcType=DATE},
...@@ -977,6 +988,9 @@ ...@@ -977,6 +988,9 @@
<if test="substrategy != null"> <if test="substrategy != null">
substrategy = #{substrategy,jdbcType=INTEGER}, substrategy = #{substrategy,jdbcType=INTEGER},
</if> </if>
<if test="inceptionDate != null">
inception_date = #{inceptionDate,jdbcType=DATE},
</if>
<if test="type != null"> <if test="type != null">
`type` = #{type,jdbcType=INTEGER}, `type` = #{type,jdbcType=INTEGER},
</if> </if>
...@@ -1184,6 +1198,7 @@ ...@@ -1184,6 +1198,7 @@
set fund_id = #{fundId,jdbcType=VARCHAR}, set fund_id = #{fundId,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER}, strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER}, substrategy = #{substrategy,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
`type` = #{type,jdbcType=INTEGER}, `type` = #{type,jdbcType=INTEGER},
end_date = #{endDate,jdbcType=DATE}, end_date = #{endDate,jdbcType=DATE},
price_date = #{priceDate,jdbcType=DATE}, price_date = #{priceDate,jdbcType=DATE},
...@@ -1271,6 +1286,11 @@ ...@@ -1271,6 +1286,11 @@
when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER}
</foreach> </foreach>
</trim> </trim>
<trim prefix="inception_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.inceptionDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,"> <trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER}
...@@ -1607,36 +1627,537 @@ ...@@ -1607,36 +1627,537 @@
#{item.id,jdbcType=VARCHAR} #{item.id,jdbcType=VARCHAR}
</foreach> </foreach>
</update> </update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update fund_count
<trim prefix="set" suffixOverrides=",">
<trim prefix="fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.fundId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="strategy = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.strategy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.strategy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="substrategy = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.substrategy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="inception_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.inceptionDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.inceptionDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.type != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="end_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.endDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="price_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.priceDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.priceDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="net_nav = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.netNav != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.netNav,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="cumulative_nav = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.cumulativeNav != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.cumulativeNav,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1day = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1day != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1day,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1day_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1dayBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1dayBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1w = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1w != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1w,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1w_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1wBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1wBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1m = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1m != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1m,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1m_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1mBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1mBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_3m = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret3m != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3m,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_3m_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret3mBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3mBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_6m = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret6m != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret6m,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_6m_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret6mBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret6mBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_1y_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret1yBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1yBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_2y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret2y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_2y_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret2yBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_2y_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret2yA != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yA,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_2y_bm1_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret2yBm1A != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yBm1A,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_3y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret3y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_3y_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret3yBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_3y_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret3yA != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yA,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_3y_bm1_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret3yBm1A != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yBm1A,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_4y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret4y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_4y_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret4yBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_4y_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret4yA != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yA,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_4y_bm1_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret4yBm1A != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yBm1A,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_5y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret5y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_5y_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret5yBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_5y_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret5yA != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yA,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_5y_bm1_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ret5yBm1A != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yBm1A,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_ytd = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.retYtd != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.retYtd,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_ytd_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.retYtdBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.retYtdBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_incep = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.retIncep != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncep,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_incep_bm1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.retIncepBm1 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepBm1,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_incep_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.retIncepA != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepA,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ret_incep_bm1_a = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.retIncepBm1A != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepBm1A,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="sharperatio_1y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sharperatio1y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio1y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="sharperatio_2y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sharperatio2y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio2y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="sharperatio_3y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sharperatio3y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio3y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="sharperatio_4y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sharperatio4y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio4y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="sharperatio_5y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sharperatio5y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio5y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="sharperatio_incep = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sharperatioIncep != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatioIncep,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_1y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddev1y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev1y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_2y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddev2y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev2y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_3y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddev3y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev3y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_4y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddev4y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev4y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_5y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddev5y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev5y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_10y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddev10y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev10y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_incep = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddevIncep != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddevIncep,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="stddev_ytd = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.stddevYtd != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.stddevYtd,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_1y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdown1y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown1y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_2y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdown2y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown2y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_3y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdown3y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown3y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_4y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdown4y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown4y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_5y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdown5y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown5y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_10y = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdown10y != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown10y,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="maxdrawdown_incep = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.maxdrawdownIncep != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownIncep,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="data_sources = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.dataSources != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.dataSources,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sort != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sort,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deleteTag != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<insert id="batchInsert" parameterType="map"> <insert id="batchInsert" parameterType="map">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_count insert into fund_count
(id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav, (id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1,
ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_a, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1,
ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, ret_2y_a, ret_2y_bm1_a, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1,
ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1, ret_4y_a, ret_4y_bm1_a, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1,
ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y, ret_incep, ret_incep_bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y,
sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, sharperatio_3y, sharperatio_4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y,
stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, stddev_3y, stddev_4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y,
maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, maxdrawdown_2y, maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y,
data_sources, update_time, create_time, `status`, sort, delete_tag) maxdrawdown_incep, data_sources, update_time, create_time, `status`, sort, delete_tag
)
values values
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.fundId,jdbcType=VARCHAR}, #{item.strategy,jdbcType=INTEGER}, (#{item.id,jdbcType=VARCHAR}, #{item.fundId,jdbcType=VARCHAR}, #{item.strategy,jdbcType=INTEGER},
#{item.substrategy,jdbcType=INTEGER}, #{item.type,jdbcType=INTEGER}, #{item.endDate,jdbcType=DATE}, #{item.substrategy,jdbcType=INTEGER}, #{item.inceptionDate,jdbcType=DATE}, #{item.type,jdbcType=INTEGER},
#{item.priceDate,jdbcType=DATE}, #{item.netNav,jdbcType=DECIMAL}, #{item.cumulativeNav,jdbcType=DECIMAL}, #{item.endDate,jdbcType=DATE}, #{item.priceDate,jdbcType=DATE}, #{item.netNav,jdbcType=DECIMAL},
#{item.ret1day,jdbcType=DECIMAL}, #{item.ret1dayBm1,jdbcType=DECIMAL}, #{item.ret1w,jdbcType=DECIMAL}, #{item.cumulativeNav,jdbcType=DECIMAL}, #{item.ret1day,jdbcType=DECIMAL}, #{item.ret1dayBm1,jdbcType=DECIMAL},
#{item.ret1wBm1,jdbcType=DECIMAL}, #{item.ret1m,jdbcType=DECIMAL}, #{item.ret1mBm1,jdbcType=DECIMAL}, #{item.ret1w,jdbcType=DECIMAL}, #{item.ret1wBm1,jdbcType=DECIMAL}, #{item.ret1m,jdbcType=DECIMAL},
#{item.ret3m,jdbcType=DECIMAL}, #{item.ret3mBm1,jdbcType=DECIMAL}, #{item.ret6m,jdbcType=DECIMAL}, #{item.ret1mBm1,jdbcType=DECIMAL}, #{item.ret3m,jdbcType=DECIMAL}, #{item.ret3mBm1,jdbcType=DECIMAL},
#{item.ret6mBm1,jdbcType=DECIMAL}, #{item.ret1y,jdbcType=DECIMAL}, #{item.ret1yBm1,jdbcType=DECIMAL}, #{item.ret6m,jdbcType=DECIMAL}, #{item.ret6mBm1,jdbcType=DECIMAL}, #{item.ret1y,jdbcType=DECIMAL},
#{item.ret2y,jdbcType=DECIMAL}, #{item.ret2yBm1,jdbcType=DECIMAL}, #{item.ret2yA,jdbcType=DECIMAL}, #{item.ret1yBm1,jdbcType=DECIMAL}, #{item.ret2y,jdbcType=DECIMAL}, #{item.ret2yBm1,jdbcType=DECIMAL},
#{item.ret2yBm1A,jdbcType=DECIMAL}, #{item.ret3y,jdbcType=DECIMAL}, #{item.ret3yBm1,jdbcType=DECIMAL}, #{item.ret2yA,jdbcType=DECIMAL}, #{item.ret2yBm1A,jdbcType=DECIMAL}, #{item.ret3y,jdbcType=DECIMAL},
#{item.ret3yA,jdbcType=DECIMAL}, #{item.ret3yBm1A,jdbcType=DECIMAL}, #{item.ret4y,jdbcType=DECIMAL}, #{item.ret3yBm1,jdbcType=DECIMAL}, #{item.ret3yA,jdbcType=DECIMAL}, #{item.ret3yBm1A,jdbcType=DECIMAL},
#{item.ret4yBm1,jdbcType=DECIMAL}, #{item.ret4yA,jdbcType=DECIMAL}, #{item.ret4yBm1A,jdbcType=DECIMAL}, #{item.ret4y,jdbcType=DECIMAL}, #{item.ret4yBm1,jdbcType=DECIMAL}, #{item.ret4yA,jdbcType=DECIMAL},
#{item.ret5y,jdbcType=DECIMAL}, #{item.ret5yBm1,jdbcType=DECIMAL}, #{item.ret5yA,jdbcType=DECIMAL}, #{item.ret4yBm1A,jdbcType=DECIMAL}, #{item.ret5y,jdbcType=DECIMAL}, #{item.ret5yBm1,jdbcType=DECIMAL},
#{item.ret5yBm1A,jdbcType=DECIMAL}, #{item.retYtd,jdbcType=DECIMAL}, #{item.retYtdBm1,jdbcType=DECIMAL}, #{item.ret5yA,jdbcType=DECIMAL}, #{item.ret5yBm1A,jdbcType=DECIMAL}, #{item.retYtd,jdbcType=DECIMAL},
#{item.retIncep,jdbcType=DECIMAL}, #{item.retIncepBm1,jdbcType=DECIMAL}, #{item.retIncepA,jdbcType=DECIMAL}, #{item.retYtdBm1,jdbcType=DECIMAL}, #{item.retIncep,jdbcType=DECIMAL}, #{item.retIncepBm1,jdbcType=DECIMAL},
#{item.retIncepBm1A,jdbcType=DECIMAL}, #{item.sharperatio1y,jdbcType=DECIMAL}, #{item.retIncepA,jdbcType=DECIMAL}, #{item.retIncepBm1A,jdbcType=DECIMAL}, #{item.sharperatio1y,jdbcType=DECIMAL},
#{item.sharperatio2y,jdbcType=DECIMAL}, #{item.sharperatio3y,jdbcType=DECIMAL}, #{item.sharperatio2y,jdbcType=DECIMAL}, #{item.sharperatio3y,jdbcType=DECIMAL},
#{item.sharperatio4y,jdbcType=DECIMAL}, #{item.sharperatio5y,jdbcType=DECIMAL}, #{item.sharperatio4y,jdbcType=DECIMAL}, #{item.sharperatio5y,jdbcType=DECIMAL},
#{item.sharperatioIncep,jdbcType=DECIMAL}, #{item.stddev1y,jdbcType=DECIMAL}, #{item.stddev2y,jdbcType=DECIMAL}, #{item.sharperatioIncep,jdbcType=DECIMAL}, #{item.stddev1y,jdbcType=DECIMAL}, #{item.stddev2y,jdbcType=DECIMAL},
...@@ -1653,46 +2174,48 @@ ...@@ -1653,46 +2174,48 @@
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundCount"> <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_count insert into fund_count
(id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav, (id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1,
ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_a, ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1,
ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, ret_2y_a, ret_2y_bm1_a, ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1,
ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1, ret_4y_a, ret_4y_bm1_a, ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1,
ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y, ret_incep, ret_incep_bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y,
sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, sharperatio_3y, sharperatio_4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y,
stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, stddev_3y, stddev_4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y,
maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, maxdrawdown_2y, maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y,
data_sources, update_time, create_time, `status`, sort, delete_tag) maxdrawdown_incep, data_sources, update_time, create_time, `status`, sort, delete_tag
)
values values
(#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER}, (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER},
#{substrategy,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{endDate,jdbcType=DATE}, #{substrategy,jdbcType=INTEGER}, #{inceptionDate,jdbcType=DATE}, #{type,jdbcType=INTEGER},
#{priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL}, #{cumulativeNav,jdbcType=DECIMAL}, #{endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL},
#{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, #{cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL},
#{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL},
#{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL},
#{ret6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL},
#{ret2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL},
#{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL},
#{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL},
#{ret4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL},
#{ret5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL},
#{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL},
#{retIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL},
#{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2y,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL},
#{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5y,jdbcType=DECIMAL}, #{sharperatio2y,jdbcType=DECIMAL}, #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL},
#{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, #{sharperatio5y,jdbcType=DECIMAL}, #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL},
#{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL},
#{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL},
#{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3y,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL},
#{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10y,jdbcType=DECIMAL}, #{maxdrawdown3y,jdbcType=DECIMAL}, #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL},
#{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{maxdrawdown10y,jdbcType=DECIMAL}, #{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}) #{sort,jdbcType=INTEGER}, #{deleteTag,jdbcType=INTEGER})
on duplicate key update on duplicate key update
id = #{id,jdbcType=VARCHAR}, id = #{id,jdbcType=VARCHAR},
fund_id = #{fundId,jdbcType=VARCHAR}, fund_id = #{fundId,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER}, strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER}, substrategy = #{substrategy,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
`type` = #{type,jdbcType=INTEGER}, `type` = #{type,jdbcType=INTEGER},
end_date = #{endDate,jdbcType=DATE}, end_date = #{endDate,jdbcType=DATE},
price_date = #{priceDate,jdbcType=DATE}, price_date = #{priceDate,jdbcType=DATE},
...@@ -1776,6 +2299,9 @@ ...@@ -1776,6 +2299,9 @@
<if test="substrategy != null"> <if test="substrategy != null">
substrategy, substrategy,
</if> </if>
<if test="inceptionDate != null">
inception_date,
</if>
<if test="type != null"> <if test="type != null">
`type`, `type`,
</if> </if>
...@@ -1989,6 +2515,9 @@ ...@@ -1989,6 +2515,9 @@
<if test="substrategy != null"> <if test="substrategy != null">
#{substrategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER},
</if> </if>
<if test="inceptionDate != null">
#{inceptionDate,jdbcType=DATE},
</if>
<if test="type != null"> <if test="type != null">
#{type,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},
</if> </if>
...@@ -2202,6 +2731,9 @@ ...@@ -2202,6 +2731,9 @@
<if test="substrategy != null"> <if test="substrategy != null">
substrategy = #{substrategy,jdbcType=INTEGER}, substrategy = #{substrategy,jdbcType=INTEGER},
</if> </if>
<if test="inceptionDate != null">
inception_date = #{inceptionDate,jdbcType=DATE},
</if>
<if test="type != null"> <if test="type != null">
`type` = #{type,jdbcType=INTEGER}, `type` = #{type,jdbcType=INTEGER},
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment