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
c5fefed9
Commit
c5fefed9
authored
Oct 08, 2022
by
黄自鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加设备单元查询
parent
64bffb72
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
AgvtaskqueueDaoImpl.java
...java/com/gavel/qzsa/agv/dao/impl/AgvtaskqueueDaoImpl.java
+3
-3
Agvtaskqueue.java
...main/java/com/gavel/qzsa/agv/persistent/Agvtaskqueue.java
+11
-0
TemplateServiceImpl.java
...com/gavel/qzsa/jcsj/service/impl/TemplateServiceImpl.java
+1
-1
index.html
...ain/resources/templates/views/agv/agvtaskqueue/index.html
+1
-0
No files found.
gavel/src/main/java/com/gavel/qzsa/agv/dao/impl/AgvtaskqueueDaoImpl.java
View file @
c5fefed9
...
@@ -22,7 +22,7 @@ public class AgvtaskqueueDaoImpl extends BaseDaoImpl implements AgvtaskqueueDao
...
@@ -22,7 +22,7 @@ public class AgvtaskqueueDaoImpl extends BaseDaoImpl implements AgvtaskqueueDao
sqlMap
.
setPageNo
(
condition
.
getPageNo
());
sqlMap
.
setPageNo
(
condition
.
getPageNo
());
sqlMap
.
setRowCount
(
condition
.
getPageSize
());
sqlMap
.
setRowCount
(
condition
.
getPageSize
());
sqlMap
.
append
(
"select AGVTASKQUEUE_ID, AGVTASKQUEUE_MSGTYPE, AGVTASKQUEUE_GUID, AGVTASKQUEUE_TASKTYPE, AGVTASKQUEUE_DESTTASK, "
);
sqlMap
.
append
(
"select AGVTASKQUEUE_ID, AGVTASKQUEUE_MSGTYPE, AGVTASKQUEUE_GUID, AGVTASKQUEUE_TASKTYPE, AGVTASKQUEUE_DESTTASK, "
);
sqlMap
.
append
(
" AGVTASKQUEUE_NEXTTIME, AGVTASKQUEUE_ZT, AGVTASKQUEUE_WHSJ, AGVTASKQUEUE_CJSJ, AGVTASKQUEUE_SYSVERSION "
);
sqlMap
.
append
(
" AGVTASKQUEUE_NEXTTIME, AGVTASKQUEUE_ZT, AGVTASKQUEUE_WHSJ, AGVTASKQUEUE_CJSJ, AGVTASKQUEUE_SYSVERSION
,AGVTASKQUEUE_EQUIPID
"
);
sqlMap
.
append
(
"from AGVTASKQUEUE "
);
sqlMap
.
append
(
"from AGVTASKQUEUE "
);
sqlMap
.
append
(
"where 1 = 1 "
);
sqlMap
.
append
(
"where 1 = 1 "
);
if
(
StringUtils
.
isNotEmpty
(
condition
.
getId
())){
if
(
StringUtils
.
isNotEmpty
(
condition
.
getId
())){
...
@@ -38,7 +38,7 @@ public class AgvtaskqueueDaoImpl extends BaseDaoImpl implements AgvtaskqueueDao
...
@@ -38,7 +38,7 @@ public class AgvtaskqueueDaoImpl extends BaseDaoImpl implements AgvtaskqueueDao
public
Agvtaskqueue
selectPop
(
String
msgType
)
{
public
Agvtaskqueue
selectPop
(
String
msgType
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select top 1 AGVTASKQUEUE_ID, AGVTASKQUEUE_MSGTYPE, AGVTASKQUEUE_GUID, AGVTASKQUEUE_TASKTYPE, AGVTASKQUEUE_DESTTASK, "
);
sqlMap
.
append
(
"select top 1 AGVTASKQUEUE_ID, AGVTASKQUEUE_MSGTYPE, AGVTASKQUEUE_GUID, AGVTASKQUEUE_TASKTYPE, AGVTASKQUEUE_DESTTASK, "
);
sqlMap
.
append
(
" AGVTASKQUEUE_NEXTTIME, AGVTASKQUEUE_ZT, AGVTASKQUEUE_WHSJ, AGVTASKQUEUE_CJSJ, AGVTASKQUEUE_SYSVERSION, "
);
sqlMap
.
append
(
" AGVTASKQUEUE_NEXTTIME, AGVTASKQUEUE_ZT, AGVTASKQUEUE_WHSJ, AGVTASKQUEUE_CJSJ, AGVTASKQUEUE_SYSVERSION,
AGVTASKQUEUE_EQUIPID,
"
);
sqlMap
.
append
(
" AGVTASKQUEUE_BODY"
);
sqlMap
.
append
(
" AGVTASKQUEUE_BODY"
);
sqlMap
.
append
(
"from AGVTASKQUEUE "
);
sqlMap
.
append
(
"from AGVTASKQUEUE "
);
sqlMap
.
append
(
"where AGVTASKQUEUE_ZT ='I' and AGVTASKQUEUE_NEXTTIME <= :AGVTASKQUEUE_NEXTTIME"
);
sqlMap
.
append
(
"where AGVTASKQUEUE_ZT ='I' and AGVTASKQUEUE_NEXTTIME <= :AGVTASKQUEUE_NEXTTIME"
);
...
@@ -63,7 +63,7 @@ public class AgvtaskqueueDaoImpl extends BaseDaoImpl implements AgvtaskqueueDao
...
@@ -63,7 +63,7 @@ public class AgvtaskqueueDaoImpl extends BaseDaoImpl implements AgvtaskqueueDao
public
Agvtaskqueue
queryAgvtask
(
String
GUID
,
String
msgType
)
{
public
Agvtaskqueue
queryAgvtask
(
String
GUID
,
String
msgType
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select top 1 AGVTASKQUEUE_ID, AGVTASKQUEUE_MSGTYPE, AGVTASKQUEUE_GUID, AGVTASKQUEUE_TASKTYPE, AGVTASKQUEUE_DESTTASK, "
);
sqlMap
.
append
(
"select top 1 AGVTASKQUEUE_ID, AGVTASKQUEUE_MSGTYPE, AGVTASKQUEUE_GUID, AGVTASKQUEUE_TASKTYPE, AGVTASKQUEUE_DESTTASK, "
);
sqlMap
.
append
(
" AGVTASKQUEUE_NEXTTIME, AGVTASKQUEUE_ZT, AGVTASKQUEUE_WHSJ, AGVTASKQUEUE_CJSJ, AGVTASKQUEUE_SYSVERSION "
);
sqlMap
.
append
(
" AGVTASKQUEUE_NEXTTIME, AGVTASKQUEUE_ZT, AGVTASKQUEUE_WHSJ, AGVTASKQUEUE_CJSJ, AGVTASKQUEUE_SYSVERSION
,AGVTASKQUEUE_EQUIPID
"
);
sqlMap
.
append
(
"from AGVTASKQUEUE "
);
sqlMap
.
append
(
"from AGVTASKQUEUE "
);
sqlMap
.
append
(
"where AGVTASKQUEUE_NEXTTIME <= :AGVTASKQUEUE_NEXTTIME"
);
sqlMap
.
append
(
"where AGVTASKQUEUE_NEXTTIME <= :AGVTASKQUEUE_NEXTTIME"
);
sqlMap
.
setParamValue
(
"AGVTASKQUEUE_NEXTTIME"
,
DateUtils
.
getDateTime
());
sqlMap
.
setParamValue
(
"AGVTASKQUEUE_NEXTTIME"
,
DateUtils
.
getDateTime
());
...
...
gavel/src/main/java/com/gavel/qzsa/agv/persistent/Agvtaskqueue.java
View file @
c5fefed9
...
@@ -23,6 +23,9 @@ public class Agvtaskqueue extends BaseEntity {
...
@@ -23,6 +23,9 @@ public class Agvtaskqueue extends BaseEntity {
private
String
tasktype
;
private
String
tasktype
;
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_DESTTASK"
,
caption
=
"目标任务"
)
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_DESTTASK"
,
caption
=
"目标任务"
)
private
String
desttask
;
private
String
desttask
;
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_EQUIPID"
,
caption
=
"设备单元"
)
private
String
EquipID
;
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_ZT"
,
caption
=
"状态"
)
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_ZT"
,
caption
=
"状态"
)
private
String
zt
;
private
String
zt
;
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_NEXTTIME"
,
caption
=
"下次执行时间"
)
@FieldMeta
(
fieldName
=
"AGVTASKQUEUE_NEXTTIME"
,
caption
=
"下次执行时间"
)
...
@@ -123,6 +126,14 @@ public class Agvtaskqueue extends BaseEntity {
...
@@ -123,6 +126,14 @@ public class Agvtaskqueue extends BaseEntity {
public
void
setBody
(
String
body
)
{
public
void
setBody
(
String
body
)
{
this
.
body
=
body
;
this
.
body
=
body
;
}
}
public
String
getEquipID
()
{
return
EquipID
;
}
public
void
setEquipID
(
String
equipID
)
{
EquipID
=
equipID
;
}
}
}
...
...
gavel/src/main/java/com/gavel/qzsa/jcsj/service/impl/TemplateServiceImpl.java
View file @
c5fefed9
...
@@ -255,7 +255,7 @@ public class TemplateServiceImpl extends BaseEditServiceImpl implements Template
...
@@ -255,7 +255,7 @@ public class TemplateServiceImpl extends BaseEditServiceImpl implements Template
//设备单元工位位置点
//设备单元工位位置点
Gw
gw
=
gwDao
.
findByDevice
(
equipID
,
templatedetail
.
getGwlx
());
Gw
gw
=
gwDao
.
findByDevice
(
equipID
,
templatedetail
.
getGwlx
());
if
(
gw
==
null
)
{
if
(
gw
==
null
)
{
throwReturnMessage
(
"无法获取设备%s的%s!"
,
equipID
,
GwlxEnum
.
findNameById
(
templatedetail
.
getGwlx
()));
throwReturnMessage
(
"无法获取设备
单元
%s的%s!"
,
equipID
,
GwlxEnum
.
findNameById
(
templatedetail
.
getGwlx
()));
}
}
position
.
setPositionCode
(
gw
.
getMapdatacode
());
position
.
setPositionCode
(
gw
.
getMapdatacode
());
list
.
add
(
position
);
list
.
add
(
position
);
...
...
gavel/src/main/resources/templates/views/agv/agvtaskqueue/index.html
View file @
c5fefed9
...
@@ -35,6 +35,7 @@ $(function () {
...
@@ -35,6 +35,7 @@ $(function () {
{
title
:
"GUID"
,
field
:
"guid"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"GUID"
,
field
:
"guid"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"任务类型"
,
field
:
"tasktype"
,
fieldType
:
"ftString"
,
width
:
120
},
{
title
:
"任务类型"
,
field
:
"tasktype"
,
fieldType
:
"ftString"
,
width
:
120
},
{
title
:
"目标任务"
,
field
:
"desttask"
,
fieldType
:
"ftString"
,
width
:
400
},
{
title
:
"目标任务"
,
field
:
"desttask"
,
fieldType
:
"ftString"
,
width
:
400
},
{
title
:
"设备单元号"
,
field
:
"EquipID"
,
fieldType
:
"ftString"
,
width
:
400
},
{
title
:
"下次执行时间"
,
field
:
"nexttime"
,
fieldType
:
"datetime"
},
{
title
:
"下次执行时间"
,
field
:
"nexttime"
,
fieldType
:
"datetime"
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]],
]],
...
...
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