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
091fa49d
Commit
091fa49d
authored
Dec 04, 2024
by
jiangxuming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理编号顺序与orderBy顺序不一致的问题
parent
8ad2988f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+6
-4
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+4
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
091fa49d
...
@@ -376,11 +376,13 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -376,11 +376,13 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
// RestAssert.fail(message);
// RestAssert.fail(message);
// }
// }
// }
// }
//提前查询状态,如果状态>40,则取消
List
<
EntrustSample
>
sampleList
=
entrustSampleService
.
list
(
Condition
.
create
().
eq
(
"entrust_id"
,
entrustId
).
ge
(
"status"
,
EntrustSampleStatusEnum
.
REPORT_MAKE
));
RestAssert
.
fail
(
CollectionUtils
.
isNotEmpty
(
sampleList
),
"当前项目已完成提交,请勿重复提交,耐心等待即可!"
);
// 提交为报告编制
// 提交为报告编制
EntrustSample
sample
=
new
EntrustSample
().
setStatus
(
EntrustSampleStatusEnum
.
REPORT_MAKE
).
setLid
(
account
.
getUserId
()).
setLtime
(
new
Date
());
EntrustSample
sample
=
new
EntrustSample
().
setStatus
(
EntrustSampleStatusEnum
.
REPORT_MAKE
).
setLid
(
account
.
getUserId
()).
setLtime
(
new
Date
());
entrustSampleService
.
update
(
sample
,
Condition
.
create
().
eq
(
"entrust_id"
,
entrustId
));
entrustSampleService
.
update
(
sample
,
Condition
.
create
().
eq
(
"entrust_id"
,
entrustId
));
logger
.
info
(
"样品编号:{} 更新为报告编制状态"
,
sample
.
getCode
());
logger
.
info
(
"7数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
logger
.
info
(
"7数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
// 委托信息
// 委托信息
Entrust
entrust
=
entrustService
.
getById
(
entrustId
);
Entrust
entrust
=
entrustService
.
getById
(
entrustId
);
...
@@ -407,14 +409,14 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -407,14 +409,14 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
updateComposeJudgeByTestValue
(
entrustId
);
updateComposeJudgeByTestValue
(
entrustId
);
logger
.
info
(
"11数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
logger
.
info
(
"11数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
// 添加委托日志
// 添加委托日志
entrustRecordService
.
record
(
new
Long
[]{
entrustId
},
"数据录入"
,
"报告编制"
,
0
,
account
,
"提交至报告编制"
);
entrustRecordService
.
record
(
new
Long
[]{
entrustId
},
"数据录入"
,
"报告编制"
,
0
,
account
,
"提交至报告编制
410
"
);
logger
.
info
(
"12数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
logger
.
info
(
"12数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
// 执行转PDF操作
// 执行转PDF操作
executor1
.
execute
(()
->
changeExcelToPdf
(
ids
,
list
));
executor1
.
execute
(()
->
changeExcelToPdf
(
ids
,
list
));
logger
.
info
(
"13数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
logger
.
info
(
"13数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
// 处理原铝是否重取
// 处理原铝是否重取
executor1
.
execute
(()
->
updateSampleRetakeByEntrustId
(
entrustId
));
executor1
.
execute
(()
->
updateSampleRetakeByEntrustId
(
entrustId
));
logger
.
info
(
"1
3
数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
logger
.
info
(
"1
4
数据录入提交阶段耗时: {}"
,
timeWatch
.
pointTime
());
return
true
;
return
true
;
}
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
091fa49d
...
@@ -504,6 +504,10 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
...
@@ -504,6 +504,10 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
List
<
EntrustSampleItem
>
saveEntrustSampleItemList
=
new
ArrayList
<>();
List
<
EntrustSampleItem
>
saveEntrustSampleItemList
=
new
ArrayList
<>();
List
<
Long
>
contractSampleIds
=
new
ArrayList
<>();
List
<
Long
>
contractSampleIds
=
new
ArrayList
<>();
int
incNum
=
10
;
int
incNum
=
10
;
if
(
isSubmit
&&
CollectionUtils
.
isNotEmpty
(
sampleDTOList
))
{
//初始化样品编号之前,先进行排序
sampleDTOList
=
sampleDTOList
.
stream
().
sorted
(
Comparator
.
comparing
(
EntrustSampleDTO:
:
getSlotNo
,
Comparator
.
nullsFirst
(
String:
:
compareTo
))).
collect
(
Collectors
.
toList
());
}
for
(
EntrustSampleDTO
sampleDTO
:
sampleDTOList
)
{
for
(
EntrustSampleDTO
sampleDTO
:
sampleDTOList
)
{
if
(
null
!=
sampleDTO
.
getContractSampleId
())
{
if
(
null
!=
sampleDTO
.
getContractSampleId
())
{
contractSampleIds
.
add
(
sampleDTO
.
getContractSampleId
());
contractSampleIds
.
add
(
sampleDTO
.
getContractSampleId
());
...
...
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