Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QZSA
Project
Project
Details
Activity
Releases
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
gavelinfo
QZSA
Commits
69d67d67
Commit
69d67d67
authored
Nov 18, 2022
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
91ae5cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
AgvServiceImpl.java
.../java/com/gavel/qzsa/agv/service/impl/AgvServiceImpl.java
+6
-8
No files found.
gavel/src/main/java/com/gavel/qzsa/agv/service/impl/AgvServiceImpl.java
View file @
69d67d67
...
...
@@ -157,14 +157,12 @@ public class AgvServiceImpl extends BaseEditServiceImpl implements AgvService {
//是否启用充电阈值设置
String
isEnable
=
commonService
.
getStringOptionValue
(
JcsjParamEnum
.
AgvBatteryEnable
.
id
());
//充电状态,阈值比较
if
(
StringUtils
.
equals
(
isEnable
,
"Y"
)){
if
(
StringUtils
.
equals
(
"7"
,
agvStatus
.
getStatus
()))
{
Integer
yz
=
commonService
.
getIntOptionValue
(
JcsjParamEnum
.
AgvBatterySetting
.
id
());
//设置值
Integer
curValue
=
Integer
.
valueOf
(
agvStatus
.
getBattery
());
//获取小车值
if
(
NumberUtils
.
less
(
curValue
,
yz
)){
logger
.
error
(
"小车{}正在充电,且当前电量{}低于设定阈值{}!"
,
agvStatus
.
getRobotCode
(),
curValue
,
yz
);
continue
;
}
if
(
StringUtils
.
equals
(
"7"
,
agvStatus
.
getStatus
())
&&
StringUtils
.
equals
(
isEnable
,
"Y"
)){
Integer
yz
=
commonService
.
getIntOptionValue
(
JcsjParamEnum
.
AgvBatterySetting
.
id
());
//设置值
Integer
curValue
=
Integer
.
valueOf
(
agvStatus
.
getBattery
());
//获取小车值
if
(
NumberUtils
.
less
(
curValue
,
yz
)){
logger
.
error
(
"小车{}正在充电,且当前电量{}低于设定阈值{}!"
,
agvStatus
.
getRobotCode
(),
curValue
,
yz
);
continue
;
}
}
//查询Eptask中是否已存在小车,如果存在,返回空,生成任务失败
...
...
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