Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
platform
hp-smart
Commits
48a49f27
Commit
48a49f27
authored
Apr 26, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-25 设备日志和设备异常显示优化和调整
parent
97317e0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
ServiceHPTCP001.java
...java/com/baosight/hpjx/hp/tc/service/ServiceHPTCP001.java
+9
-8
HPSB001.jsp
src/main/webapp/HP/SB/HPSB001.jsp
+1
-2
HPSB002.jsp
src/main/webapp/HP/SB/HPSB002.jsp
+1
-2
No files found.
src/main/java/com/baosight/hpjx/hp/tc/service/ServiceHPTCP001.java
View file @
48a49f27
...
...
@@ -48,16 +48,16 @@ public class ServiceHPTCP001 extends ServiceBase {
hpsb002
.
setCompanyCode
(
list
.
get
(
0
).
getCompanyCode
());
}
if
(
StringUtils
.
isNotEmpty
(
equipmentType
))
{
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
if
(
equipmentType
.
equals
(
HPConstants
.
STARUS_TYPE
))
{
//解析设备状态
List
<
CutterbarStatus
>
cutterbarStatusList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarStatus
.
class
);
//hpsb002.setId(StringUtils.uuid());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setLogValue
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
());
hpsb002
.
setLogInivalue
(
formatStatus
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
()));
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
outInfo
.
getMsg
());
...
...
@@ -67,12 +67,8 @@ public class ServiceHPTCP001 extends ServiceBase {
//解析开机时间
List
<
CutterbarTime
>
cutterbarTimeList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarTime
.
class
);
//hpsb002.setId(StringUtils.uuid());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setLogValue
(
cutterbarTimeList
.
get
(
0
).
getTime
());
hpsb002
.
setLogInivalue
(
String
.
format
(
"开机启动时间[%s]"
,
cutterbarTimeList
.
get
(
0
).
getTime
()));
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
outInfo
.
getMsg
());
...
...
@@ -98,14 +94,19 @@ public class ServiceHPTCP001 extends ServiceBase {
if
(
errorCode
.
compareTo
(
new
Integer
(
200
))>=
0
&&
errorCode
.
compareTo
(
new
Integer
(
299
))<=
0
){
hpsb001
.
setErrorText
(
String
.
format
(
"(程序号:%s,行号 %s)goto 跳转行%s 不存在"
,
cutterbarWarning
.
getProgramNo
(),
cutterbarWarning
.
getRowNo
(),
cutterbarWarning
.
getGotoRowNone
()));
hpsb002
.
setLogInivalue
(
String
.
format
(
"(程序号:%s,行号 %s)goto 跳转行%s 不存在"
,
cutterbarWarning
.
getProgramNo
(),
cutterbarWarning
.
getRowNo
(),
cutterbarWarning
.
getGotoRowNone
()));
}
else
if
(
errorCode
.
compareTo
(
new
Integer
(
300
))>=
0
&&
errorCode
.
compareTo
(
new
Integer
(
399
))<=
0
){
hpsb001
.
setErrorText
(
String
.
format
(
" (文件:%s,行号 %s)括号不匹配"
,
cutterbarWarning
.
getFileName
(),
cutterbarWarning
.
getRowNo
()));
hpsb002
.
setLogInivalue
(
String
.
format
(
" (文件:%s,行号 %s)括号不匹配"
,
cutterbarWarning
.
getFileName
(),
cutterbarWarning
.
getRowNo
()));
}
hpsb001
.
setCreatedBy
(
"自动化中转程序"
);
hpsb001
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
this
.
dao
.
insert
(
"HPSB001.insert"
,
hpsb001
);
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
outInfo
.
getMsg
());
return
inInfo
;
...
...
src/main/webapp/HP/SB/HPSB001.jsp
View file @
48a49f27
...
...
@@ -19,8 +19,7 @@
<EF:EFColumn
ename=
"id"
cname=
"主键id"
hidden=
"true"
/>
<
%
--
<
EF:EFColumn
ename=
"createdBy"
cname=
"操作人"
enable=
"false"
readonly=
"true"
width=
"150"
align=
"center"
/>
--%>
<EF:EFComboColumn
ename=
"equipmentType"
cname=
"日志类型"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
>
<EF:EFOption
label=
""
value=
""
/>
<EF:EFOption
label=
"异常报警"
value=
"WARNING_TYPE"
/>
<EF:EFCodeOption
codeName=
"hpjx.hppz.equipmentType"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"equipmentCode"
cname=
"设备编码"
blockName=
"deviceCode_block_id"
columnTemplate=
"#=valueField#-#=textField#"
itemTemplate=
"#=valueField#-#=textField#"
...
...
src/main/webapp/HP/SB/HPSB002.jsp
View file @
48a49f27
...
...
@@ -19,8 +19,7 @@
<
%
--
<
EF:EFColumn
ename=
"createdBy"
cname=
"操作人"
enable=
"false"
readonly=
"true"
width=
"150"
align=
"center"
/>
--%>
<EF:EFColumn
ename=
"equipmentType"
cname=
"日志类型"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"equipmentType"
cname=
"日志类型"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
>
<EF:EFOption
label=
"设备状态"
value=
"STARUS_TYPE"
/>
<EF:EFOption
label=
"开机时间"
value=
"TIME_TYPE"
/>
<EF:EFCodeOption
codeName=
"hpjx.hppz.equipmentType"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"equipmentCode"
cname=
"设备编码"
blockName=
"deviceCode_block_id"
columnTemplate=
"#=valueField#-#=textField#"
itemTemplate=
"#=valueField#-#=textField#"
...
...
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