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
01d06d41
Commit
01d06d41
authored
Jul 20, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原始记录模板添加字段
parent
b8128329
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+10
-1
20210720新增字段.sql
src/test/java/resources/db_sql/hmhj/v147/20210720新增字段.sql
+8
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
01d06d41
...
...
@@ -646,7 +646,16 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
numSet
=
sampleVOList
.
stream
().
map
(
vo
->
vo
.
getCode
()).
collect
(
Collectors
.
toSet
());
}
/* 通过样品编号拿到所有的采集数据 */
List
<
LmsOriginalRecordInfo
>
records
=
originalRecordInfoService
.
list
(
Condition
.
create
().
in
(
"sample_num"
,
numSet
).
eq
(
"contract_code"
,
entrustCode
));
if
(
template
.
getCollectionType
()
==
null
)
{
RestAssert
.
fail
(
"请在对应的原始记录模板中配置采集类型,不采集为无需采集!"
);
}
List
<
LmsOriginalRecordInfo
>
records
=
new
ArrayList
<>();
// 采集类型 0-无需采集; 1-文件采集-会带委托编号;2-盒子采集-不带委托编号
if
(
template
.
getCollectionType
()
==
1
)
{
records
=
originalRecordInfoService
.
list
(
Condition
.
create
().
in
(
"sample_num"
,
numSet
).
eq
(
"contract_code"
,
entrustCode
));
}
else
if
(
template
.
getCollectionType
()
==
2
)
{
records
=
originalRecordInfoService
.
list
(
Condition
.
create
().
in
(
"sample_num"
,
numSet
));
}
/* 按照样品编号和项目分开,来存放采集到的数据 record的data */
HashMap
<
String
,
List
<
String
>>
mapByNumItemName
=
new
HashMap
<>();
for
(
LmsOriginalRecordInfo
record
:
records
)
{
...
...
src/test/java/resources/db_sql/hmhj/v147/20210720新增字段.sql
0 → 100644
View file @
01d06d41
-- ghx
-- ghx
ALTER
TABLE
"public"
.
"original_template"
ADD
COLUMN
"collection_type"
int2
;
COMMENT
ON
COLUMN
"public"
.
"original_template"
.
"collection_type"
IS
'0-无需采集;1-文件采集-会带委托编号;2-盒子采集-不带委托编号'
;
\ No newline at end of file
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