Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gong-an
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
gong-an
Commits
4cb08521
Commit
4cb08521
authored
Nov 16, 2021
by
wuqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021/11/16 吴卿华 echarts转账关系图接口
parent
a95a0286
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
TransferRelationshipController.java
...lationship/controller/TransferRelationshipController.java
+35
-1
No files found.
src/main/java/com/example/gajz/transferrelationship/controller/TransferRelationshipController.java
View file @
4cb08521
...
...
@@ -2,11 +2,13 @@ package com.example.gajz.transferrelationship.controller;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.context.AnalysisContext
;
import
com.alibaba.excel.event.AnalysisEventListener
;
import
com.alibaba.fastjson.JSON
;
import
com.example.gajz.result.Result
;
import
com.example.gajz.result.ResultCode
;
import
com.example.gajz.transferrelationship.bean.dto.data
;
import
com.example.gajz.transferrelationship.bean.excel.abcExcie
;
import
com.example.gajz.transferrelationship.bean.param.TransferAssociationParam
;
import
com.example.gajz.transferrelationship.bean.vo.EchartsUserVo
;
import
com.example.gajz.transferrelationship.bean.vo.SearchRelationshipVo
;
import
com.example.gajz.transferrelationship.service.TransferRelationshipService
;
import
org.apache.poi.openxml4j.util.ZipSecureFile
;
...
...
@@ -123,6 +125,38 @@ public class TransferRelationshipController {
}
/**
* echarts 双人转账关系图 点 生成接口
* @param transferAssociationParam
* @return
*/
@ResponseBody
@RequestMapping
(
"/echartsTransferAssociation"
)
private
Result
echartsTransferAssociation
(
TransferAssociationParam
transferAssociationParam
){
Result
result
=
transferRelationshipService
.
echartsTransferAssociation
(
transferAssociationParam
);
return
result
;
}
/**
* echarts 双人转账关系图 关系 生成接口
* @param transferAssociationParam
* @return
*/
@ResponseBody
@RequestMapping
(
"/echartsTrBetweenTwoPersons"
)
private
Result
echartsTrBetweenTwoPersons
(
String
transferAssociationParam
,
String
transfer
){
List
<
EchartsUserVo
>
userList
=
JSON
.
parseArray
(
transferAssociationParam
,
EchartsUserVo
.
class
);
List
<
SearchRelationshipVo
>
searchRelationshipVoList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
userList
.
size
();
i
++){
SearchRelationshipVo
searchRelationshipVo
=
new
SearchRelationshipVo
();
searchRelationshipVo
.
setCardNumber
(
userList
.
get
(
i
).
getName
());
searchRelationshipVoList
.
add
(
searchRelationshipVo
);
}
Result
result
=
transferRelationshipService
.
echartsTrBetweenTwoPersons
(
searchRelationshipVoList
);
return
result
;
}
/**
* 关系导入
...
...
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