Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
e89864e9
Commit
e89864e9
authored
Jun 20, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
8fb0d1e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
EquipmentSpecificController.java
...n/equipmanage/controller/EquipmentSpecificController.java
+11
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificController.java
View file @
e89864e9
...
@@ -453,19 +453,25 @@ public class EquipmentSpecificController extends AbstractBaseController {
...
@@ -453,19 +453,25 @@ public class EquipmentSpecificController extends AbstractBaseController {
query
.
notIn
(
EquipQrcodeRecord:
:
getSourceId
,
id
);
query
.
notIn
(
EquipQrcodeRecord:
:
getSourceId
,
id
);
query
.
isNull
(
EquipQrcodeRecord:
:
getCleanTime
);
query
.
isNull
(
EquipQrcodeRecord:
:
getCleanTime
);
List
<
EquipQrcodeRecord
>
equipQrcodeRecords
=
equipQrcodeRecordMapper
.
selectList
(
query
);
List
<
EquipQrcodeRecord
>
equipQrcodeRecords
=
equipQrcodeRecordMapper
.
selectList
(
query
);
//修改本次清除的装备事件
LambdaQueryWrapper
<
EquipQrcodeRecord
>
one
=
new
LambdaQueryWrapper
<>();
one
.
eq
(
EquipQrcodeRecord:
:
getEquipid
,
equipId
);
one
.
eq
(
EquipQrcodeRecord:
:
getSourceId
,
id
);
one
.
isNull
(
EquipQrcodeRecord:
:
getCleanTime
);
EquipQrcodeRecord
equipQrcodeRecord
=
equipQrcodeRecordMapper
.
selectOne
(
one
);
equipQrcodeRecord
.
setCleanTime
(
new
Date
());
equipQrcodeRecordMapper
.
updateById
(
equipQrcodeRecord
);
if
(
equipQrcodeRecords
.
size
()
==
0
)
{
//如果记录表中此装备无未消除的故障等 则恢复绿码
if
(
equipQrcodeRecords
.
size
()
==
0
)
{
//如果记录表中此装备无未消除的故障等 则恢复绿码
//修改装备二维码状态为合格 此处为0代表绿色 是idx只有在合格是才会触发此接口
//修改装备二维码状态为合格 此处为0代表绿色 是idx只有在合格是才会触发此接口
equipmentSpecificSerivce
.
updateEquipSpecificStatus
(
"0"
,
equipId
);
equipmentSpecificSerivce
.
updateEquipSpecificStatus
(
"0"
,
equipId
);
}
else
{
}
else
{
//先修改本次清除的装备事件
EquipQrcodeRecord
equipQrcodeRecord
=
equipQrcodeRecords
.
stream
().
filter
(
e
->
e
.
getSourceId
().
equals
(
id
)).
findFirst
().
get
();
equipQrcodeRecords
.
remove
(
equipQrcodeRecord
);
equipQrcodeRecord
.
setCleanTime
(
new
Date
());
equipQrcodeRecordMapper
.
updateById
(
equipQrcodeRecord
);
//然后取结果集中剩余状态最高的颜色赋码
//然后取结果集中剩余状态最高的颜色赋码
String
status
=
equipQrcodeRecords
.
stream
().
sorted
(
Comparator
.
comparing
(
EquipQrcodeRecord:
:
getStatus
)).
findFirst
().
get
().
getStatus
();
String
status
=
equipQrcodeRecords
.
stream
().
sorted
(
Comparator
.
comparing
(
EquipQrcodeRecord:
:
getStatus
)).
findFirst
().
get
().
getStatus
();
equipmentSpecificSerivce
.
updateEquipSpecificStatus
(
status
,
equipId
);
equipmentSpecificSerivce
.
updateEquipSpecificStatus
(
status
,
equipId
);
}
}
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
}
...
...
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