Commit 4cb08521 authored by wuqinghua's avatar wuqinghua

2021/11/16 吴卿华 echarts转账关系图接口

parent a95a0286
......@@ -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;
......@@ -73,7 +75,7 @@ public class TransferRelationshipController {
return result;
}
/**
* 关系图搜索 单人转账关系 转账信息信息查询接口
* @return
......@@ -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;
}
/**
* 关系导入
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment