Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
204c367b
Commit
204c367b
authored
Aug 03, 2025
by
wujipeng
Browse files
暂时修改为使用默认案件
parent
3d2dc58f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/AnalysisServiceImpl.java
View file @
204c367b
...
@@ -59,17 +59,38 @@ public class AnalysisServiceImpl implements AnalysisService {
...
@@ -59,17 +59,38 @@ public class AnalysisServiceImpl implements AnalysisService {
@Transactional
@Transactional
public
Result
<?>
canvas
(
MultipartFile
[]
files
,
String
caseId
,
String
folderName
)
{
public
Result
<?>
canvas
(
MultipartFile
[]
files
,
String
caseId
,
String
folderName
)
{
//查询模板
//查询模板
CasesEntity
caseEntity
=
caseService
.
getById
(
caseId
);
// CasesEntity caseEntity = caseService.getById(caseId);
String
templateId
=
caseEntity
.
getTemplateId
();
// String templateId = caseEntity.getTemplateId();
if
(
StringUtils
.
isEmpty
(
templateId
)){
// if(StringUtils.isEmpty(templateId)){
throw
new
BusinessException
(
"案件未绑定模板"
);
// throw new BusinessException("案件未绑定模板");
}
// }
ExcelTemplateEntity
ExcelTemplate
=
excelTemplateService
.
getById
(
templateId
);
// ExcelTemplateEntity ExcelTemplate = excelTemplateService.getById(templateId);
String
json
=
ExcelTemplate
.
getJson
();
// String json = ExcelTemplate.getJson();
List
<
TableHeaderVO
>
tableHeaderList
=
JSON
.
parseArray
(
json
,
TableHeaderVO
.
class
);
// List<TableHeaderVO> tableHeaderList = JSON.parseArray(json, TableHeaderVO.class);
if
(
ObjectUtils
.
isEmpty
(
ExcelTemplate
))
{
// if (ObjectUtils.isEmpty(ExcelTemplate)) {
return
Result
.
fail
(
"模板不存在"
);
// return Result.fail("模板不存在");
}
// }
//默认模板
List
<
TableHeaderVO
>
tableHeaderList
=
Lists
.
newArrayList
();
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"交易类型"
).
index
(
0
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"交易主体的出入账标识"
).
index
(
1
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"交易时间"
).
index
(
2
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"交易金额"
).
index
(
3
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"交易流水号"
).
index
(
4
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"收款方银行卡所属银行卡号"
).
index
(
5
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"收款方的支付帐号"
).
index
(
6
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"收款方的商户号"
).
index
(
7
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"收款方的商户名称"
).
index
(
8
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"付款方银行卡所属银行名称"
).
index
(
9
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"付款方银行卡所属银行卡号"
).
index
(
10
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"付款方的支付帐号"
).
index
(
11
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"交易支付设备ip"
).
index
(
12
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"mac地址"
).
index
(
13
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"银行外部渠道交易流水号"
).
index
(
14
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"支付帐号"
).
index
(
15
).
build
());
tableHeaderList
.
add
(
TableHeaderVO
.
builder
().
name
(
"备注"
).
index
(
16
).
build
());
try
{
try
{
if
(
files
.
length
==
0
)
{
if
(
files
.
length
==
0
)
{
return
Result
.
fail
(
"上传的文件为空"
);
return
Result
.
fail
(
"上传的文件为空"
);
...
...
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