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
54582498
Commit
54582498
authored
Oct 29, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成立日期
parent
00602ecf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+9
-5
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
54582498
...
@@ -187,6 +187,15 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -187,6 +187,15 @@ public class ProductServiceImpl implements ProductService, Constant {
Map
<
String
,
FundRateMapping
>
rateMappingMap
=
getStringFundRateMappingMap
(
Lists
.
newArrayList
(
id
));
Map
<
String
,
FundRateMapping
>
rateMappingMap
=
getStringFundRateMappingMap
(
Lists
.
newArrayList
(
id
));
getMinInvestmentShare
(
rateMappingMap
,
fundInfo
.
getId
(),
vo
);
getMinInvestmentShare
(
rateMappingMap
,
fundInfo
.
getId
(),
vo
);
long
betweenMonth
=
0
;
if
(
ObjectUtil
.
isNotNull
(
fundInfo
.
getInceptionDate
()))
{
betweenMonth
=
DateUtil
.
betweenMonth
(
fundInfo
.
getInceptionDate
(),
new
Date
(),
false
);
BigDecimal
bigDecimal
=
new
BigDecimal
(
betweenMonth
);
BigDecimal
bigDecimal2
=
new
BigDecimal
(
12
);
BigDecimal
divide
=
bigDecimal
.
divide
(
bigDecimal2
,
1
,
RoundingMode
.
HALF_UP
);
vo
.
setInceptionDateYear
(
divide
.
toString
());
}
FundCountExample
example1
=
new
FundCountExample
();
FundCountExample
example1
=
new
FundCountExample
();
example1
.
createCriteria
().
andFundIdEqualTo
(
id
);
example1
.
createCriteria
().
andFundIdEqualTo
(
id
);
List
<
FundCount
>
fundCounts
=
this
.
fundCountMapper
.
selectByExample
(
example1
);
List
<
FundCount
>
fundCounts
=
this
.
fundCountMapper
.
selectByExample
(
example1
);
...
@@ -202,11 +211,6 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -202,11 +211,6 @@ public class ProductServiceImpl implements ProductService, Constant {
vo
.
setMaxdrawdownIncep
(
multiply100
(
fundCount
.
getMaxdrawdownIncep
()));
vo
.
setMaxdrawdownIncep
(
multiply100
(
fundCount
.
getMaxdrawdownIncep
()));
vo
.
setRetIncepA
(
multiply100
(
fundCount
.
getRetIncepA
()));
vo
.
setRetIncepA
(
multiply100
(
fundCount
.
getRetIncepA
()));
if
(
ObjectUtil
.
isNotNull
(
fundInfo
.
getInceptionDate
()))
{
if
(
ObjectUtil
.
isNotNull
(
fundInfo
.
getInceptionDate
()))
{
long
betweenMonth
=
DateUtil
.
betweenMonth
(
fundInfo
.
getInceptionDate
(),
new
Date
(),
false
);
BigDecimal
bigDecimal
=
new
BigDecimal
(
betweenMonth
);
BigDecimal
bigDecimal2
=
new
BigDecimal
(
12
);
BigDecimal
divide
=
bigDecimal
.
divide
(
bigDecimal2
,
1
,
RoundingMode
.
HALF_UP
);
vo
.
setInceptionDateYear
(
divide
.
toString
());
if
(
betweenMonth
<
1
)
{
if
(
betweenMonth
<
1
)
{
vo
.
setMouth
(
"1个月"
);
vo
.
setMouth
(
"1个月"
);
vo
.
setRetOfMouth
(
""
);
vo
.
setRetOfMouth
(
""
);
...
...
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