Commit 9df72956 authored by zp's avatar zp

merge

parents 923f55b7 2586dc34
...@@ -51,6 +51,11 @@ public class FundCount { ...@@ -51,6 +51,11 @@ public class FundCount {
*/ */
private Integer substrategy; private Integer substrategy;
/**
* 基金成立日期
*/
private Date inceptionDate;
/** /**
* 是否可预约 0:不可预约 1:可预约 * 是否可预约 0:不可预约 1:可预约
*/ */
......
...@@ -411,6 +411,66 @@ public class FundCountExample { ...@@ -411,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;
......
...@@ -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}
...@@ -1632,6 +1652,13 @@ ...@@ -1632,6 +1652,13 @@
</if> </if>
</foreach> </foreach>
</trim> </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,"> <trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.type != null"> <if test="item.type != null">
...@@ -2103,33 +2130,34 @@ ...@@ -2103,33 +2130,34 @@
<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},
...@@ -2146,46 +2174,48 @@ ...@@ -2146,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},
...@@ -2269,6 +2299,9 @@ ...@@ -2269,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>
...@@ -2482,6 +2515,9 @@ ...@@ -2482,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>
...@@ -2695,6 +2731,9 @@ ...@@ -2695,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