Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
9df72956
Commit
9df72956
authored
Mar 22, 2021
by
zp
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
923f55b7
2586dc34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
217 additions
and
113 deletions
+217
-113
FundCount.java
src/main/java/com/tanpu/fund/entity/generator/FundCount.java
+5
-0
FundCountExample.java
...ava/com/tanpu/fund/entity/generator/FundCountExample.java
+60
-0
FundCountMapper.xml
src/main/resources/mybatis/generator/FundCountMapper.xml
+152
-113
No files found.
src/main/java/com/tanpu/fund/entity/generator/FundCount.java
View file @
9df72956
...
...
@@ -51,6 +51,11 @@ public class FundCount {
*/
private
Integer
substrategy
;
/**
* 基金成立日期
*/
private
Date
inceptionDate
;
/**
* 是否可预约 0:不可预约 1:可预约
*/
...
...
src/main/java/com/tanpu/fund/entity/generator/FundCountExample.java
View file @
9df72956
...
...
@@ -411,6 +411,66 @@ public class FundCountExample {
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
()
{
addCriterion
(
"`type` is null"
);
return
(
Criteria
)
this
;
...
...
src/main/resources/mybatis/generator/FundCountMapper.xml
View file @
9df72956
...
...
@@ -8,6 +8,7 @@
<result
column=
"fund_id"
jdbcType=
"VARCHAR"
property=
"fundId"
/>
<result
column=
"strategy"
jdbcType=
"INTEGER"
property=
"strategy"
/>
<result
column=
"substrategy"
jdbcType=
"INTEGER"
property=
"substrategy"
/>
<result
column=
"inception_date"
jdbcType=
"DATE"
property=
"inceptionDate"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"end_date"
jdbcType=
"DATE"
property=
"endDate"
/>
<result
column=
"price_date"
jdbcType=
"DATE"
property=
"priceDate"
/>
...
...
@@ -137,16 +138,16 @@
</sql>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, fund_id, strategy, substrategy,
`type`, end_date, price_date, net_nav, cumulative_nav
,
ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3
m_bm1,
ret_
6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, 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_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, ret_incep_bm1
,
ret_incep_
a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4
y,
sharperatio_
5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5
y,
stddev_
10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3
y,
maxdrawdown_
4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, data_sources
,
update_time, create_time, `status`, sort, delete_tag
id, fund_id, strategy, substrategy,
inception_date, `type`, end_date, price_date
,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1
m_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_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_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep
,
ret_incep_
bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3
y,
sharperatio_
4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3
y,
stddev_
4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2
y,
maxdrawdown_
3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep
,
data_sources,
update_time, create_time, `status`, sort, delete_tag
</sql>
<select
id=
"selectByExample"
parameterType=
"com.tanpu.fund.entity.generator.FundCountExample"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
...
...
@@ -185,53 +186,53 @@
<insert
id=
"insert"
parameterType=
"com.tanpu.fund.entity.generator.FundCount"
>
<!--@mbg.generated-->
insert into fund_count (id, fund_id, strategy,
substrategy,
`type`, end_date
,
price_date, net_nav, cumulative
_nav,
ret_1day, ret_1day_bm1, ret_1w
,
ret_1w
_bm1, 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_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_
5y, ret_5y_bm1, ret_5y_a
,
ret_5y_
bm1_a, ret_ytd, ret_ytd_bm1
,
ret_
incep, ret_incep_bm1, ret_incep_a
,
ret_incep_
bm1_a, sharperatio_1y, sharperatio_2
y,
sharperatio_
3y, sharperatio_4y, sharperatio_5
y,
sharperatio_
incep, stddev_1y, stddev_2
y,
stddev_
3y, stddev_4y, stddev_5
y,
stddev_
10y, stddev_incep, stddev_ytd
,
maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3
y,
maxdrawdown_
4y, maxdrawdown_5y, maxdrawdown_10
y,
maxdrawdown_
incep, data_sources, update_time
,
create_time, `status`, sort
,
delete_tag)
substrategy,
inception_date, `type`
,
end_date, price_date, net
_nav,
cumulative_nav, ret_1day, ret_1day_bm1
,
ret_1w
, ret_1w_bm1, 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_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_5y, ret_5y_bm1
,
ret_5y_
a, ret_5y_bm1_a, ret_ytd
,
ret_
ytd_bm1, ret_incep, ret_incep_bm1
,
ret_incep_
a, ret_incep_bm1_a, sharperatio_1
y,
sharperatio_
2y, sharperatio_3y, sharperatio_4
y,
sharperatio_
5y, sharperatio_incep, stddev_1
y,
stddev_
2y, stddev_3y, stddev_4
y,
stddev_
5y, stddev_10y, stddev_incep
,
stddev_ytd, maxdrawdown_1y, maxdrawdown_2
y,
maxdrawdown_
3y, maxdrawdown_4y, maxdrawdown_5
y,
maxdrawdown_
10y, maxdrawdown_incep, data_sources
,
update_time, create_time, `status`
,
sort,
delete_tag)
values (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER},
#{substrategy,jdbcType=INTEGER}, #{
type,jdbcType=INTEGER}, #{endDate,jdbcType=DATE
},
#{
priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL}, #{cumulative
Nav,jdbcType=DECIMAL},
#{
ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w
,jdbcType=DECIMAL},
#{ret1w
Bm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1
,jdbcType=DECIMAL},
#{ret
3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m
,jdbcType=DECIMAL},
#{ret6m
Bm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1
,jdbcType=DECIMAL},
#{ret
2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA
,jdbcType=DECIMAL},
#{ret2y
Bm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1
,jdbcType=DECIMAL},
#{ret3y
A,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y
,jdbcType=DECIMAL},
#{ret4y
Bm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1
A,jdbcType=DECIMAL},
#{ret
5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA
,jdbcType=DECIMAL},
#{ret5y
Bm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1
,jdbcType=DECIMAL},
#{ret
Incep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA
,jdbcType=DECIMAL},
#{retIncep
Bm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2
y,jdbcType=DECIMAL},
#{sharperatio
3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5
y,jdbcType=DECIMAL},
#{sharperatio
Incep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2
y,jdbcType=DECIMAL},
#{stddev
3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5
y,jdbcType=DECIMAL},
#{stddev
10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd
,jdbcType=DECIMAL},
#{
maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3
y,jdbcType=DECIMAL},
#{maxdrawdown
4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10
y,jdbcType=DECIMAL},
#{maxdrawdown
Incep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP
},
#{
createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort
,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER})
#{substrategy,jdbcType=INTEGER}, #{
inceptionDate,jdbcType=DATE}, #{type,jdbcType=INTEGER
},
#{
endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, #{net
Nav,jdbcType=DECIMAL},
#{
cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1
,jdbcType=DECIMAL},
#{ret1w
,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m
,jdbcType=DECIMAL},
#{ret
1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1
,jdbcType=DECIMAL},
#{ret6m
,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y
,jdbcType=DECIMAL},
#{ret
1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1
,jdbcType=DECIMAL},
#{ret2y
A,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y
,jdbcType=DECIMAL},
#{ret3y
Bm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A
,jdbcType=DECIMAL},
#{ret4y
,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, #{ret4y
A,jdbcType=DECIMAL},
#{ret
4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1
,jdbcType=DECIMAL},
#{ret5y
A,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd
,jdbcType=DECIMAL},
#{ret
YtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1
,jdbcType=DECIMAL},
#{retIncep
A,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1
y,jdbcType=DECIMAL},
#{sharperatio
2y,jdbcType=DECIMAL}, #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4
y,jdbcType=DECIMAL},
#{sharperatio
5y,jdbcType=DECIMAL}, #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1
y,jdbcType=DECIMAL},
#{stddev
2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4
y,jdbcType=DECIMAL},
#{stddev
5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep
,jdbcType=DECIMAL},
#{
stddevYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2
y,jdbcType=DECIMAL},
#{maxdrawdown
3y,jdbcType=DECIMAL}, #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5
y,jdbcType=DECIMAL},
#{maxdrawdown
10y,jdbcType=DECIMAL}, #{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER
},
#{
updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{status
,jdbcType=INTEGER},
#{
sort,jdbcType=INTEGER}, #{
deleteTag,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.tanpu.fund.entity.generator.FundCount"
>
<!--@mbg.generated-->
...
...
@@ -249,6 +250,9 @@
<if
test=
"substrategy != null"
>
substrategy,
</if>
<if
test=
"inceptionDate != null"
>
inception_date,
</if>
<if
test=
"type != null"
>
`type`,
</if>
...
...
@@ -461,6 +465,9 @@
<if
test=
"substrategy != null"
>
#{substrategy,jdbcType=INTEGER},
</if>
<if
test=
"inceptionDate != null"
>
#{inceptionDate,jdbcType=DATE},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
...
...
@@ -684,6 +691,9 @@
<if
test=
"record.substrategy != null"
>
substrategy = #{record.substrategy,jdbcType=INTEGER},
</if>
<if
test=
"record.inceptionDate != null"
>
inception_date = #{record.inceptionDate,jdbcType=DATE},
</if>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=INTEGER},
</if>
...
...
@@ -894,6 +904,7 @@
fund_id = #{record.fundId,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
substrategy = #{record.substrategy,jdbcType=INTEGER},
inception_date = #{record.inceptionDate,jdbcType=DATE},
`type` = #{record.type,jdbcType=INTEGER},
end_date = #{record.endDate,jdbcType=DATE},
price_date = #{record.priceDate,jdbcType=DATE},
...
...
@@ -977,6 +988,9 @@
<if
test=
"substrategy != null"
>
substrategy = #{substrategy,jdbcType=INTEGER},
</if>
<if
test=
"inceptionDate != null"
>
inception_date = #{inceptionDate,jdbcType=DATE},
</if>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=INTEGER},
</if>
...
...
@@ -1184,6 +1198,7 @@
set fund_id = #{fundId,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
`type` = #{type,jdbcType=INTEGER},
end_date = #{endDate,jdbcType=DATE},
price_date = #{priceDate,jdbcType=DATE},
...
...
@@ -1271,6 +1286,11 @@
when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER}
</foreach>
</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,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER}
...
...
@@ -1632,6 +1652,13 @@
</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"
>
...
...
@@ -2103,33 +2130,34 @@
<insert
id=
"batchInsert"
parameterType=
"map"
>
<!--@mbg.generated-->
insert into fund_count
(id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav,
ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, 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_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_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1,
ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y,
sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y,
stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y,
maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep,
data_sources, update_time, create_time, `status`, sort, delete_tag)
(id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, 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_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_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1,
ret_incep, ret_incep_bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y,
sharperatio_3y, sharperatio_4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y,
stddev_3y, stddev_4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y,
maxdrawdown_2y, maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y,
maxdrawdown_incep, data_sources, update_time, create_time, `status`, sort, delete_tag
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{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.
priceDate,jdbcType=DATE}, #{item.netNav,jdbcType=DECIMAL}, #{item.cumulative
Nav,jdbcType=DECIMAL},
#{item.
ret1day,jdbcType=DECIMAL}, #{item.ret1dayBm1,jdbcType=DECIMAL}, #{item.ret1w
,jdbcType=DECIMAL},
#{item.ret1w
Bm1,jdbcType=DECIMAL}, #{item.ret1m,jdbcType=DECIMAL}, #{item.ret1mBm1
,jdbcType=DECIMAL},
#{item.ret
3m,jdbcType=DECIMAL}, #{item.ret3mBm1,jdbcType=DECIMAL}, #{item.ret6m
,jdbcType=DECIMAL},
#{item.ret6m
Bm1,jdbcType=DECIMAL}, #{item.ret1y,jdbcType=DECIMAL}, #{item.ret1yBm1
,jdbcType=DECIMAL},
#{item.ret
2y,jdbcType=DECIMAL}, #{item.ret2yBm1,jdbcType=DECIMAL}, #{item.ret2yA
,jdbcType=DECIMAL},
#{item.ret2y
Bm1A,jdbcType=DECIMAL}, #{item.ret3y,jdbcType=DECIMAL}, #{item.ret3yBm1
,jdbcType=DECIMAL},
#{item.ret3y
A,jdbcType=DECIMAL}, #{item.ret3yBm1A,jdbcType=DECIMAL}, #{item.ret4y
,jdbcType=DECIMAL},
#{item.ret4y
Bm1,jdbcType=DECIMAL}, #{item.ret4yA,jdbcType=DECIMAL}, #{item.ret4yBm1
A,jdbcType=DECIMAL},
#{item.ret
5y,jdbcType=DECIMAL}, #{item.ret5yBm1,jdbcType=DECIMAL}, #{item.ret5yA
,jdbcType=DECIMAL},
#{item.ret5y
Bm1A,jdbcType=DECIMAL}, #{item.retYtd,jdbcType=DECIMAL}, #{item.retYtdBm1
,jdbcType=DECIMAL},
#{item.ret
Incep,jdbcType=DECIMAL}, #{item.retIncepBm1,jdbcType=DECIMAL}, #{item.retIncepA
,jdbcType=DECIMAL},
#{item.retIncepBm1A,jdbcType=DECIMAL}, #{item.sharperatio1y,jdbcType=DECIMAL},
#{item.substrategy,jdbcType=INTEGER}, #{item.
inceptionDate,jdbcType=DATE}, #{item.type,jdbcType=INTEGER
},
#{item.
endDate,jdbcType=DATE}, #{item.priceDate,jdbcType=DATE}, #{item.net
Nav,jdbcType=DECIMAL},
#{item.
cumulativeNav,jdbcType=DECIMAL}, #{item.ret1day,jdbcType=DECIMAL}, #{item.ret1dayBm1
,jdbcType=DECIMAL},
#{item.ret1w
,jdbcType=DECIMAL}, #{item.ret1wBm1,jdbcType=DECIMAL}, #{item.ret1m
,jdbcType=DECIMAL},
#{item.ret
1mBm1,jdbcType=DECIMAL}, #{item.ret3m,jdbcType=DECIMAL}, #{item.ret3mBm1
,jdbcType=DECIMAL},
#{item.ret6m
,jdbcType=DECIMAL}, #{item.ret6mBm1,jdbcType=DECIMAL}, #{item.ret1y
,jdbcType=DECIMAL},
#{item.ret
1yBm1,jdbcType=DECIMAL}, #{item.ret2y,jdbcType=DECIMAL}, #{item.ret2yBm1
,jdbcType=DECIMAL},
#{item.ret2y
A,jdbcType=DECIMAL}, #{item.ret2yBm1A,jdbcType=DECIMAL}, #{item.ret3y
,jdbcType=DECIMAL},
#{item.ret3y
Bm1,jdbcType=DECIMAL}, #{item.ret3yA,jdbcType=DECIMAL}, #{item.ret3yBm1A
,jdbcType=DECIMAL},
#{item.ret4y
,jdbcType=DECIMAL}, #{item.ret4yBm1,jdbcType=DECIMAL}, #{item.ret4y
A,jdbcType=DECIMAL},
#{item.ret
4yBm1A,jdbcType=DECIMAL}, #{item.ret5y,jdbcType=DECIMAL}, #{item.ret5yBm1
,jdbcType=DECIMAL},
#{item.ret5y
A,jdbcType=DECIMAL}, #{item.ret5yBm1A,jdbcType=DECIMAL}, #{item.retYtd
,jdbcType=DECIMAL},
#{item.ret
YtdBm1,jdbcType=DECIMAL}, #{item.retIncep,jdbcType=DECIMAL}, #{item.retIncepBm1
,jdbcType=DECIMAL},
#{item.retIncep
A,jdbcType=DECIMAL}, #{item.retIncep
Bm1A,jdbcType=DECIMAL}, #{item.sharperatio1y,jdbcType=DECIMAL},
#{item.sharperatio2y,jdbcType=DECIMAL}, #{item.sharperatio3y,jdbcType=DECIMAL},
#{item.sharperatio4y,jdbcType=DECIMAL}, #{item.sharperatio5y,jdbcType=DECIMAL},
#{item.sharperatioIncep,jdbcType=DECIMAL}, #{item.stddev1y,jdbcType=DECIMAL}, #{item.stddev2y,jdbcType=DECIMAL},
...
...
@@ -2146,46 +2174,48 @@
<insert
id=
"insertOrUpdate"
parameterType=
"com.tanpu.fund.entity.generator.FundCount"
>
<!--@mbg.generated-->
insert into fund_count
(id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav,
ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, 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_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_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1,
ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y,
sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y,
stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y,
maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep,
data_sources, update_time, create_time, `status`, sort, delete_tag)
(id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, 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_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_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1,
ret_incep, ret_incep_bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y,
sharperatio_3y, sharperatio_4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y,
stddev_3y, stddev_4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y,
maxdrawdown_2y, maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y,
maxdrawdown_incep, data_sources, update_time, create_time, `status`, sort, delete_tag
)
values
(#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER},
#{substrategy,jdbcType=INTEGER}, #{
type,jdbcType=INTEGER}, #{endDate,jdbcType=DATE
},
#{
priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL}, #{cumulative
Nav,jdbcType=DECIMAL},
#{
ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w
,jdbcType=DECIMAL},
#{ret1w
Bm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1
,jdbcType=DECIMAL},
#{ret
3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m
,jdbcType=DECIMAL},
#{ret6m
Bm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1
,jdbcType=DECIMAL},
#{ret
2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA
,jdbcType=DECIMAL},
#{ret2y
Bm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1
,jdbcType=DECIMAL},
#{ret3y
A,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y
,jdbcType=DECIMAL},
#{ret4y
Bm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1
A,jdbcType=DECIMAL},
#{ret
5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA
,jdbcType=DECIMAL},
#{ret5y
Bm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1
,jdbcType=DECIMAL},
#{ret
Incep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA
,jdbcType=DECIMAL},
#{retIncep
Bm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2
y,jdbcType=DECIMAL},
#{sharperatio
3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5
y,jdbcType=DECIMAL},
#{sharperatio
Incep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2
y,jdbcType=DECIMAL},
#{stddev
3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5
y,jdbcType=DECIMAL},
#{stddev
10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd
,jdbcType=DECIMAL},
#{
maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3
y,jdbcType=DECIMAL},
#{maxdrawdown
4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10
y,jdbcType=DECIMAL},
#{maxdrawdown
Incep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP
},
#{
createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort
,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER})
#{substrategy,jdbcType=INTEGER}, #{
inceptionDate,jdbcType=DATE}, #{type,jdbcType=INTEGER
},
#{
endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, #{net
Nav,jdbcType=DECIMAL},
#{
cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1
,jdbcType=DECIMAL},
#{ret1w
,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m
,jdbcType=DECIMAL},
#{ret
1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1
,jdbcType=DECIMAL},
#{ret6m
,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y
,jdbcType=DECIMAL},
#{ret
1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1
,jdbcType=DECIMAL},
#{ret2y
A,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y
,jdbcType=DECIMAL},
#{ret3y
Bm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A
,jdbcType=DECIMAL},
#{ret4y
,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, #{ret4y
A,jdbcType=DECIMAL},
#{ret
4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1
,jdbcType=DECIMAL},
#{ret5y
A,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd
,jdbcType=DECIMAL},
#{ret
YtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1
,jdbcType=DECIMAL},
#{retIncep
A,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1
y,jdbcType=DECIMAL},
#{sharperatio
2y,jdbcType=DECIMAL}, #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4
y,jdbcType=DECIMAL},
#{sharperatio
5y,jdbcType=DECIMAL}, #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1
y,jdbcType=DECIMAL},
#{stddev
2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4
y,jdbcType=DECIMAL},
#{stddev
5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep
,jdbcType=DECIMAL},
#{
stddevYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2
y,jdbcType=DECIMAL},
#{maxdrawdown
3y,jdbcType=DECIMAL}, #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5
y,jdbcType=DECIMAL},
#{maxdrawdown
10y,jdbcType=DECIMAL}, #{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER
},
#{
updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{status
,jdbcType=INTEGER},
#{
sort,jdbcType=INTEGER}, #{
deleteTag,jdbcType=INTEGER})
on duplicate key update
id = #{id,jdbcType=VARCHAR},
fund_id = #{fundId,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
`type` = #{type,jdbcType=INTEGER},
end_date = #{endDate,jdbcType=DATE},
price_date = #{priceDate,jdbcType=DATE},
...
...
@@ -2269,6 +2299,9 @@
<if
test=
"substrategy != null"
>
substrategy,
</if>
<if
test=
"inceptionDate != null"
>
inception_date,
</if>
<if
test=
"type != null"
>
`type`,
</if>
...
...
@@ -2482,6 +2515,9 @@
<if
test=
"substrategy != null"
>
#{substrategy,jdbcType=INTEGER},
</if>
<if
test=
"inceptionDate != null"
>
#{inceptionDate,jdbcType=DATE},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
...
...
@@ -2695,6 +2731,9 @@
<if
test=
"substrategy != null"
>
substrategy = #{substrategy,jdbcType=INTEGER},
</if>
<if
test=
"inceptionDate != null"
>
inception_date = #{inceptionDate,jdbcType=DATE},
</if>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=INTEGER},
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment