feat: 完善流水分析客户端(接口4-7)
This commit is contained in:
@@ -84,4 +84,56 @@ public class LsfxAnalysisClient {
|
|||||||
|
|
||||||
return httpUtil.postJson(url, request, headers, FetchInnerFlowResponse.class);
|
return httpUtil.postJson(url, request, headers, FetchInnerFlowResponse.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检查文件解析状态
|
||||||
|
*/
|
||||||
|
public CheckParseStatusResponse checkParseStatus(Integer groupId, String inprogressList) {
|
||||||
|
String url = baseUrl + "/watson/api/project/upload/getpendings";
|
||||||
|
|
||||||
|
Map<String, Object> params = new HashMap<>();
|
||||||
|
params.put("groupId", groupId);
|
||||||
|
params.put("inprogressList", inprogressList);
|
||||||
|
|
||||||
|
Map<String, String> headers = new HashMap<>();
|
||||||
|
headers.put(LsfxConstants.HEADER_CLIENT_ID, clientId);
|
||||||
|
|
||||||
|
return httpUtil.postJson(url, params, headers, CheckParseStatusResponse.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生成尽调报告
|
||||||
|
*/
|
||||||
|
public GenerateReportResponse generateReport(GenerateReportRequest request) {
|
||||||
|
String url = baseUrl + "/watson/api/project/confirmStageUploadLogs";
|
||||||
|
|
||||||
|
Map<String, String> headers = new HashMap<>();
|
||||||
|
headers.put(LsfxConstants.HEADER_CLIENT_ID, clientId);
|
||||||
|
|
||||||
|
return httpUtil.postJson(url, request, headers, GenerateReportResponse.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检查报告生成状态
|
||||||
|
*/
|
||||||
|
public CheckReportStatusResponse checkReportStatus(Integer groupId) {
|
||||||
|
String url = baseUrl + "/watson/api/project/upload/getallpendings?groupId=" + groupId;
|
||||||
|
|
||||||
|
Map<String, String> headers = new HashMap<>();
|
||||||
|
headers.put(LsfxConstants.HEADER_CLIENT_ID, clientId);
|
||||||
|
|
||||||
|
return httpUtil.get(url, headers, CheckReportStatusResponse.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取银行流水
|
||||||
|
*/
|
||||||
|
public GetBankStatementResponse getBankStatement(GetBankStatementRequest request) {
|
||||||
|
String url = baseUrl + "/watson/api/project/upload/getBankStatement";
|
||||||
|
|
||||||
|
Map<String, String> headers = new HashMap<>();
|
||||||
|
headers.put(LsfxConstants.HEADER_CLIENT_ID, clientId);
|
||||||
|
|
||||||
|
return httpUtil.postJson(url, request, headers, GetBankStatementResponse.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user