Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
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
wangweidong
patzn-cloud-service-hmhj
Commits
b67021fb
Commit
b67021fb
authored
Jul 10, 2023
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单元格异常处理;
parent
41a9cc67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
EntrustSampleServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
+3
-3
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
View file @
b67021fb
...
...
@@ -928,12 +928,12 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
Long
templateId
=
dto
.
getTemplateId
();
RestAssert
.
fail
(
null
==
templateId
,
"请选择报告模板!"
);
List
<
EntrustReportRelSample
>
relSamples
=
entrustReportRelSampleService
.
list
(
Condition
.
create
().
in
(
"sample_id"
,
ids
));
List
<
EntrustReportRelSample
>
relSamples
=
entrustReportRelSampleService
.
list
(
Condition
.
<
EntrustReportRelSample
>
wrapper
().
in
(
"sample_id"
,
ids
));
if
(
CollectionUtils
.
isNotEmpty
(
relSamples
))
{
RestAssert
.
fail
(
"您选择的样品含有已经生成过报告的,请确认"
);
}
List
<
EntrustSample
>
sampleList
=
super
.
list
(
Condition
.
create
().
in
(
"id"
,
ids
));
List
<
EntrustSample
>
sampleList
=
super
.
list
(
Condition
.
<
EntrustSample
>
wrapper
().
in
(
"id"
,
ids
));
RestAssert
.
fail
(
CollectionUtils
.
isEmpty
(
sampleList
),
"样品不存在请确认!"
);
// 委托信息
Long
entrustId
=
sampleList
.
get
(
0
).
getEntrustId
();
...
...
@@ -1026,7 +1026,7 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
try
{
xssfWorkbook
=
new
XSSFWorkbook
(
io
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"==== EntrustSampleServiceImpl ==== makeReport ====> 生成XSSFWorkbook时异常:"
,
e
);
}
List
<
EntrustReportTemplateConfig
>
configList
=
entrustReportTemplateConfigService
.
list
(
Condition
.
create
().
eq
(
"template_id"
,
templateId
));
...
...
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