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
Show 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,8 +157,7 @@ public class AgvServiceImpl extends BaseEditServiceImpl implements AgvService {
...
@@ -157,8 +157,7 @@ public class AgvServiceImpl extends BaseEditServiceImpl implements AgvService {
//是否启用充电阈值设置
//是否启用充电阈值设置
String
isEnable
=
commonService
.
getStringOptionValue
(
JcsjParamEnum
.
AgvBatteryEnable
.
id
());
String
isEnable
=
commonService
.
getStringOptionValue
(
JcsjParamEnum
.
AgvBatteryEnable
.
id
());
//充电状态,阈值比较
//充电状态,阈值比较
if
(
StringUtils
.
equals
(
isEnable
,
"Y"
)){
if
(
StringUtils
.
equals
(
"7"
,
agvStatus
.
getStatus
())
&&
StringUtils
.
equals
(
isEnable
,
"Y"
)){
if
(
StringUtils
.
equals
(
"7"
,
agvStatus
.
getStatus
()))
{
Integer
yz
=
commonService
.
getIntOptionValue
(
JcsjParamEnum
.
AgvBatterySetting
.
id
());
//设置值
Integer
yz
=
commonService
.
getIntOptionValue
(
JcsjParamEnum
.
AgvBatterySetting
.
id
());
//设置值
Integer
curValue
=
Integer
.
valueOf
(
agvStatus
.
getBattery
());
//获取小车值
Integer
curValue
=
Integer
.
valueOf
(
agvStatus
.
getBattery
());
//获取小车值
if
(
NumberUtils
.
less
(
curValue
,
yz
)){
if
(
NumberUtils
.
less
(
curValue
,
yz
)){
...
@@ -166,7 +165,6 @@ public class AgvServiceImpl extends BaseEditServiceImpl implements AgvService {
...
@@ -166,7 +165,6 @@ public class AgvServiceImpl extends BaseEditServiceImpl implements AgvService {
continue
;
continue
;
}
}
}
}
}
//查询Eptask中是否已存在小车,如果存在,返回空,生成任务失败
//查询Eptask中是否已存在小车,如果存在,返回空,生成任务失败
if
(
eptaskDao
.
countExecutingHcTask
(
agvStatus
.
getRobotCode
())
>
0
)
{
if
(
eptaskDao
.
countExecutingHcTask
(
agvStatus
.
getRobotCode
())
>
0
)
{
logger
.
error
(
"小车"
+
agvStatus
.
getRobotCode
()+
"已存在执行任务!"
);
logger
.
error
(
"小车"
+
agvStatus
.
getRobotCode
()+
"已存在执行任务!"
);
...
...
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