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
2586dc34
Commit
2586dc34
authored
Mar 22, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成立时间
parent
fd562a28
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
767 additions
and
149 deletions
+767
-149
FundCount.java
src/main/java/com/tanpu/fund/entity/generator/FundCount.java
+24
-0
FundCountExample.java
...ava/com/tanpu/fund/entity/generator/FundCountExample.java
+78
-0
FundCountMapper.java
...java/com/tanpu/fund/mapper/generator/FundCountMapper.java
+20
-36
FundCountMapper.xml
src/main/resources/mybatis/generator/FundCountMapper.xml
+645
-113
No files found.
src/main/java/com/tanpu/fund/entity/generator/FundCount.java
View file @
2586dc34
...
@@ -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:可预约
*/
*/
...
...
src/main/java/com/tanpu/fund/entity/generator/FundCountExample.java
View file @
2586dc34
...
@@ -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
;
...
...
src/main/java/com/tanpu/fund/mapper/generator/FundCountMapper.java
View file @
2586dc34
...
@@ -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
src/main/resources/mybatis/generator/FundCountMapper.xml
View file @
2586dc34
...
@@ -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_3
m_bm1,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1
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_
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_4
y,
ret_incep_
bm1, ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3
y,
sharperatio_
5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5
y,
sharperatio_
4y, sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3
y,
stddev_
10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3
y,
stddev_
4y, stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2
y,
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_2
y,
ret_incep_
a, ret_incep_bm1_a, sharperatio_1
y,
sharperatio_
3y, sharperatio_4y, sharperatio_5
y,
sharperatio_
2y, sharperatio_3y, sharperatio_4
y,
sharperatio_
incep, stddev_1y, stddev_2
y,
sharperatio_
5y, sharperatio_incep, stddev_1
y,
stddev_
3y, stddev_4y, stddev_5
y,
stddev_
2y, stddev_3y, stddev_4
y,
stddev_
10y, stddev_incep, stddev_ytd
,
stddev_
5y, stddev_10y, stddev_incep
,
maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3
y,
stddev_ytd, maxdrawdown_1y, maxdrawdown_2
y,
maxdrawdown_
4y, maxdrawdown_5y, maxdrawdown_10
y,
maxdrawdown_
3y, maxdrawdown_4y, maxdrawdown_5
y,
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}, #{cumulative
Nav,jdbcType=DECIMAL},
#{
endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, #{net
Nav,jdbcType=DECIMAL},
#{
ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w
,jdbcType=DECIMAL},
#{
cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1
,jdbcType=DECIMAL},
#{ret1w
Bm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1
,jdbcType=DECIMAL},
#{ret1w
,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m
,jdbcType=DECIMAL},
#{ret
3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m
,jdbcType=DECIMAL},
#{ret
1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1
,jdbcType=DECIMAL},
#{ret6m
Bm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1
,jdbcType=DECIMAL},
#{ret6m
,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y
,jdbcType=DECIMAL},
#{ret
2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA
,jdbcType=DECIMAL},
#{ret
1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1
,jdbcType=DECIMAL},
#{ret2y
Bm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1
,jdbcType=DECIMAL},
#{ret2y
A,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y
,jdbcType=DECIMAL},
#{ret3y
A,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y
,jdbcType=DECIMAL},
#{ret3y
Bm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A
,jdbcType=DECIMAL},
#{ret4y
Bm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1
A,jdbcType=DECIMAL},
#{ret4y
,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, #{ret4y
A,jdbcType=DECIMAL},
#{ret
5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA
,jdbcType=DECIMAL},
#{ret
4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1
,jdbcType=DECIMAL},
#{ret5y
Bm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1
,jdbcType=DECIMAL},
#{ret5y
A,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd
,jdbcType=DECIMAL},
#{ret
Incep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA
,jdbcType=DECIMAL},
#{ret
YtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1
,jdbcType=DECIMAL},
#{retIncep
Bm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2
y,jdbcType=DECIMAL},
#{retIncep
A,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1
y,jdbcType=DECIMAL},
#{sharperatio
3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5
y,jdbcType=DECIMAL},
#{sharperatio
2y,jdbcType=DECIMAL}, #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4
y,jdbcType=DECIMAL},
#{sharperatio
Incep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2
y,jdbcType=DECIMAL},
#{sharperatio
5y,jdbcType=DECIMAL}, #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1
y,jdbcType=DECIMAL},
#{stddev
3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5
y,jdbcType=DECIMAL},
#{stddev
2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4
y,jdbcType=DECIMAL},
#{stddev
10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd
,jdbcType=DECIMAL},
#{stddev
5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep
,jdbcType=DECIMAL},
#{
maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3
y,jdbcType=DECIMAL},
#{
stddevYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2
y,jdbcType=DECIMAL},
#{maxdrawdown
4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10
y,jdbcType=DECIMAL},
#{maxdrawdown
3y,jdbcType=DECIMAL}, #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5
y,jdbcType=DECIMAL},
#{maxdrawdown
Incep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP
},
#{maxdrawdown
10y,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.cumulative
Nav,jdbcType=DECIMAL},
#{item.
endDate,jdbcType=DATE}, #{item.priceDate,jdbcType=DATE}, #{item.net
Nav,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.ret1w
Bm1,jdbcType=DECIMAL}, #{item.ret1m,jdbcType=DECIMAL}, #{item.ret1mBm1
,jdbcType=DECIMAL},
#{item.ret1w
,jdbcType=DECIMAL}, #{item.ret1wBm1,jdbcType=DECIMAL}, #{item.ret1m
,jdbcType=DECIMAL},
#{item.ret
3m,jdbcType=DECIMAL}, #{item.ret3mBm1,jdbcType=DECIMAL}, #{item.ret6m
,jdbcType=DECIMAL},
#{item.ret
1mBm1,jdbcType=DECIMAL}, #{item.ret3m,jdbcType=DECIMAL}, #{item.ret3mBm1
,jdbcType=DECIMAL},
#{item.ret6m
Bm1,jdbcType=DECIMAL}, #{item.ret1y,jdbcType=DECIMAL}, #{item.ret1yBm1
,jdbcType=DECIMAL},
#{item.ret6m
,jdbcType=DECIMAL}, #{item.ret6mBm1,jdbcType=DECIMAL}, #{item.ret1y
,jdbcType=DECIMAL},
#{item.ret
2y,jdbcType=DECIMAL}, #{item.ret2yBm1,jdbcType=DECIMAL}, #{item.ret2yA
,jdbcType=DECIMAL},
#{item.ret
1yBm1,jdbcType=DECIMAL}, #{item.ret2y,jdbcType=DECIMAL}, #{item.ret2yBm1
,jdbcType=DECIMAL},
#{item.ret2y
Bm1A,jdbcType=DECIMAL}, #{item.ret3y,jdbcType=DECIMAL}, #{item.ret3yBm1
,jdbcType=DECIMAL},
#{item.ret2y
A,jdbcType=DECIMAL}, #{item.ret2yBm1A,jdbcType=DECIMAL}, #{item.ret3y
,jdbcType=DECIMAL},
#{item.ret3y
A,jdbcType=DECIMAL}, #{item.ret3yBm1A,jdbcType=DECIMAL}, #{item.ret4y
,jdbcType=DECIMAL},
#{item.ret3y
Bm1,jdbcType=DECIMAL}, #{item.ret3yA,jdbcType=DECIMAL}, #{item.ret3yBm1A
,jdbcType=DECIMAL},
#{item.ret4y
Bm1,jdbcType=DECIMAL}, #{item.ret4yA,jdbcType=DECIMAL}, #{item.ret4yBm1
A,jdbcType=DECIMAL},
#{item.ret4y
,jdbcType=DECIMAL}, #{item.ret4yBm1,jdbcType=DECIMAL}, #{item.ret4y
A,jdbcType=DECIMAL},
#{item.ret
5y,jdbcType=DECIMAL}, #{item.ret5yBm1,jdbcType=DECIMAL}, #{item.ret5yA
,jdbcType=DECIMAL},
#{item.ret
4yBm1A,jdbcType=DECIMAL}, #{item.ret5y,jdbcType=DECIMAL}, #{item.ret5yBm1
,jdbcType=DECIMAL},
#{item.ret5y
Bm1A,jdbcType=DECIMAL}, #{item.retYtd,jdbcType=DECIMAL}, #{item.retYtdBm1
,jdbcType=DECIMAL},
#{item.ret5y
A,jdbcType=DECIMAL}, #{item.ret5yBm1A,jdbcType=DECIMAL}, #{item.retYtd
,jdbcType=DECIMAL},
#{item.ret
Incep,jdbcType=DECIMAL}, #{item.retIncepBm1,jdbcType=DECIMAL}, #{item.retIncepA
,jdbcType=DECIMAL},
#{item.ret
YtdBm1,jdbcType=DECIMAL}, #{item.retIncep,jdbcType=DECIMAL}, #{item.retIncepBm1
,jdbcType=DECIMAL},
#{item.retIncepBm1A,jdbcType=DECIMAL}, #{item.sharperatio1y,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.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}, #{cumulative
Nav,jdbcType=DECIMAL},
#{
endDate,jdbcType=DATE}, #{priceDate,jdbcType=DATE}, #{net
Nav,jdbcType=DECIMAL},
#{
ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w
,jdbcType=DECIMAL},
#{
cumulativeNav,jdbcType=DECIMAL}, #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1
,jdbcType=DECIMAL},
#{ret1w
Bm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1
,jdbcType=DECIMAL},
#{ret1w
,jdbcType=DECIMAL}, #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m
,jdbcType=DECIMAL},
#{ret
3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m
,jdbcType=DECIMAL},
#{ret
1mBm1,jdbcType=DECIMAL}, #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1
,jdbcType=DECIMAL},
#{ret6m
Bm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1
,jdbcType=DECIMAL},
#{ret6m
,jdbcType=DECIMAL}, #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y
,jdbcType=DECIMAL},
#{ret
2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA
,jdbcType=DECIMAL},
#{ret
1yBm1,jdbcType=DECIMAL}, #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1
,jdbcType=DECIMAL},
#{ret2y
Bm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1
,jdbcType=DECIMAL},
#{ret2y
A,jdbcType=DECIMAL}, #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y
,jdbcType=DECIMAL},
#{ret3y
A,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y
,jdbcType=DECIMAL},
#{ret3y
Bm1,jdbcType=DECIMAL}, #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A
,jdbcType=DECIMAL},
#{ret4y
Bm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1
A,jdbcType=DECIMAL},
#{ret4y
,jdbcType=DECIMAL}, #{ret4yBm1,jdbcType=DECIMAL}, #{ret4y
A,jdbcType=DECIMAL},
#{ret
5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA
,jdbcType=DECIMAL},
#{ret
4yBm1A,jdbcType=DECIMAL}, #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1
,jdbcType=DECIMAL},
#{ret5y
Bm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1
,jdbcType=DECIMAL},
#{ret5y
A,jdbcType=DECIMAL}, #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd
,jdbcType=DECIMAL},
#{ret
Incep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA
,jdbcType=DECIMAL},
#{ret
YtdBm1,jdbcType=DECIMAL}, #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1
,jdbcType=DECIMAL},
#{retIncep
Bm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2
y,jdbcType=DECIMAL},
#{retIncep
A,jdbcType=DECIMAL}, #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1
y,jdbcType=DECIMAL},
#{sharperatio
3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5
y,jdbcType=DECIMAL},
#{sharperatio
2y,jdbcType=DECIMAL}, #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4
y,jdbcType=DECIMAL},
#{sharperatio
Incep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2
y,jdbcType=DECIMAL},
#{sharperatio
5y,jdbcType=DECIMAL}, #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1
y,jdbcType=DECIMAL},
#{stddev
3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5
y,jdbcType=DECIMAL},
#{stddev
2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4
y,jdbcType=DECIMAL},
#{stddev
10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd
,jdbcType=DECIMAL},
#{stddev
5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep
,jdbcType=DECIMAL},
#{
maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3
y,jdbcType=DECIMAL},
#{
stddevYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2
y,jdbcType=DECIMAL},
#{maxdrawdown
4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10
y,jdbcType=DECIMAL},
#{maxdrawdown
3y,jdbcType=DECIMAL}, #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5
y,jdbcType=DECIMAL},
#{maxdrawdown
Incep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP
},
#{maxdrawdown
10y,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>
...
...
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