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
2005018a
Commit
2005018a
authored
Mar 22, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入ç¦净值
parent
935354ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+1
-1
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+13
-2
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
2005018a
...
@@ -170,7 +170,7 @@ public interface ProductApi {
...
@@ -170,7 +170,7 @@ public interface ProductApi {
@ApiOperation
(
"理财师净值导入"
)
@ApiOperation
(
"理财师净值导入"
)
@GetMapping
(
"/ifa/net/import"
)
@GetMapping
(
"/ifa/net/import"
)
CommonResp
<
List
<
FundNavMessage
>>
importNetInfo
(
@RequestParam
(
"file"
)
MultipartFile
file
,
CommonResp
<
List
<
FundNavMessage
>>
importNetInfo
(
@RequestParam
(
"file"
)
MultipartFile
file
,
@RequestParam
(
"fundId"
)
@Valid
@NotEmpty
(
message
=
"请先确定需要导入的基金"
)
String
fundId
);
@RequestParam
(
value
=
"fundId"
,
required
=
false
)
String
fundId
);
@ApiOperation
(
"理财师净值导入"
)
@ApiOperation
(
"理财师净值导入"
)
@PostMapping
(
"/ifa/net/import/check/save"
)
@PostMapping
(
"/ifa/net/import/check/save"
)
...
...
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
2005018a
...
@@ -1676,7 +1676,13 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1676,7 +1676,13 @@ public class ProductServiceImpl implements ProductService, Constant {
@Override
@Override
public
CommonResp
<
List
<
FundNavMessage
>>
importNetCheckSave
(
IfaNetImportReq
req
)
{
public
CommonResp
<
List
<
FundNavMessage
>>
importNetCheckSave
(
IfaNetImportReq
req
)
{
Map
<
Long
,
IfaImportedFundNav
>
ifaNavMap
=
getIfaNavMap
(
req
.
getFundId
());
Map
<
Long
,
IfaImportedFundNav
>
ifaNavMap
;
if
(
StringUtils
.
isEmpty
(
req
.
getFundId
()))
{
ifaNavMap
=
new
HashMap
<>(
0
);
}
else
{
ifaNavMap
=
getIfaNavMap
(
req
.
getFundId
());
}
List
<
FundNavMessage
>
resultMessage
=
new
ArrayList
<>(
req
.
getFundNavMessages
().
size
()
*
2
);
List
<
FundNavMessage
>
resultMessage
=
new
ArrayList
<>(
req
.
getFundNavMessages
().
size
()
*
2
);
AtomicBoolean
errorStatus
=
new
AtomicBoolean
(
false
);
AtomicBoolean
errorStatus
=
new
AtomicBoolean
(
false
);
...
@@ -1938,7 +1944,12 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1938,7 +1944,12 @@ public class ProductServiceImpl implements ProductService, Constant {
return
CommonResp
.
error
(
"获取不到基金信息"
);
return
CommonResp
.
error
(
"获取不到基金信息"
);
}
}
Map
<
Long
,
IfaImportedFundNav
>
ifaNavMap
=
getIfaNavMap
(
fundId
);
Map
<
Long
,
IfaImportedFundNav
>
ifaNavMap
;
if
(
StringUtils
.
isEmpty
(
fundId
))
{
ifaNavMap
=
new
HashMap
<>(
0
);
}
else
{
ifaNavMap
=
getIfaNavMap
(
fundId
);
}
try
(
InputStream
inputStream
=
file
.
getInputStream
())
{
try
(
InputStream
inputStream
=
file
.
getInputStream
())
{
ExcelReader
reader
=
ExcelUtil
.
getReader
(
inputStream
);
ExcelReader
reader
=
ExcelUtil
.
getReader
(
inputStream
);
...
...
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