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
9ded88bd
Commit
9ded88bd
authored
Oct 13, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样品编码问题;
parent
228f24c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
EntrustReportServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustReportServiceImpl.java
+15
-5
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustReportServiceImpl.java
View file @
9ded88bd
...
@@ -195,7 +195,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
...
@@ -195,7 +195,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
return
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isBlank
(
value
)
?
""
:
value
.
trim
();
return
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isBlank
(
value
)
?
""
:
value
.
trim
();
}
}
pr
ivate
void
generateOtherReportFile
(
EntrustReport
report
,
Long
[]
sampleIds
)
{
pr
otected
void
generateOtherReportFile
(
EntrustReport
report
,
Long
[]
sampleIds
)
{
if
(
ArrayUtils
.
isEmpty
(
sampleIds
))
{
if
(
ArrayUtils
.
isEmpty
(
sampleIds
))
{
return
;
return
;
...
@@ -207,7 +207,15 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
...
@@ -207,7 +207,15 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
return
;
return
;
}
}
Map
<
String
,
String
>
sampleMap
=
sampleList
.
stream
().
collect
(
Collectors
.
toMap
(
EntrustSample:
:
getCode
,
EntrustSample:
:
getFirstCode
));
Map
<
String
,
String
>
sampleMap
=
sampleList
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
{
if
(
StringUtils
.
isNotEmpty
(
t
.
getThirdCode
()))
{
return
t
.
getThirdCode
();
}
else
if
(
StringUtils
.
isNotEmpty
(
t
.
getSecondCode
()))
{
return
t
.
getSecondCode
();
}
else
{
return
t
.
getFirstCode
();
}
},
EntrustSample:
:
getFirstCode
));
// objectKey data
// objectKey data
InputStream
is
=
ossClient
.
download
(
report
.
getObjectKey
());
InputStream
is
=
ossClient
.
download
(
report
.
getObjectKey
());
...
@@ -223,9 +231,9 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
...
@@ -223,9 +231,9 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
int
rowNum
=
sheet
.
getLastRowNum
();
int
rowNum
=
sheet
.
getLastRowNum
();
// 默认开始行为:5,单元格序号为:-1
// 默认开始行为:5,单元格序号为:-1
int
startRow
=
5
,
sampleCodePos
=
-
1
,
sampleBrandPos
=
-
1
;
int
startRow
=
-
1
,
sampleCodePos
=
-
1
,
sampleBrandPos
=
-
1
;
flag:
flag:
for
(
int
i
=
5
;
i
<
rowNum
;
i
++)
{
for
(
int
i
=
1
;
i
<
rowNum
;
i
++)
{
startRow
=
i
;
startRow
=
i
;
XSSFRow
xssfRow
=
sheet
.
getRow
(
i
);
XSSFRow
xssfRow
=
sheet
.
getRow
(
i
);
for
(
int
j
=
0
;
j
<
xssfRow
.
getLastCellNum
();
j
++)
{
for
(
int
j
=
0
;
j
<
xssfRow
.
getLastCellNum
();
j
++)
{
...
@@ -397,7 +405,8 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
...
@@ -397,7 +405,8 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
return
entrust
;
return
entrust
;
}
}
private
boolean
doExecuteSubmit
(
Long
[]
ids
,
EntrustFlowEnum
fromFlowStatus
,
EntrustFlowEnum
toFlowStatus
,
Account
account
)
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
protected
boolean
doExecuteSubmit
(
Long
[]
ids
,
EntrustFlowEnum
fromFlowStatus
,
EntrustFlowEnum
toFlowStatus
,
Account
account
)
{
Entrust
entrust
=
handleConditionGetEntrust
(
ids
);
Entrust
entrust
=
handleConditionGetEntrust
(
ids
);
List
<
Long
>
sampleIds
=
getSampleIds
(
ids
);
List
<
Long
>
sampleIds
=
getSampleIds
(
ids
);
RestAssert
.
fail
(
null
==
sampleIds
||
sampleIds
.
isEmpty
(),
"报告样品信息为空"
);
RestAssert
.
fail
(
null
==
sampleIds
||
sampleIds
.
isEmpty
(),
"报告样品信息为空"
);
...
@@ -494,6 +503,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
...
@@ -494,6 +503,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
/**
/**
* 记录签发人、发放人、记录审核人
* 记录签发人、发放人、记录审核人
*
* @param fromFlowStatus
* @param fromFlowStatus
* @param account
* @param account
* @param entrustReport
* @param entrustReport
...
...
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