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
0da45f14
Commit
0da45f14
authored
Apr 17, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析中转程序数据
parent
1cec0d24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
HPConstants.java
src/main/java/com/baosight/hpjx/common/HPConstants.java
+5
-0
LogInformationController.java
...om/baosight/hpjx/controller/LogInformationController.java
+17
-0
No files found.
src/main/java/com/baosight/hpjx/common/HPConstants.java
View file @
0da45f14
...
@@ -70,5 +70,10 @@ public class HPConstants {
...
@@ -70,5 +70,10 @@ public class HPConstants {
/** domain字段 PARAM_FILENAME 导入文件暂存路径 LC*/
/** domain字段 PARAM_FILENAME 导入文件暂存路径 LC*/
public
static
final
String
PARAM_CLASSNAME
=
"className"
;
public
static
final
String
PARAM_CLASSNAME
=
"className"
;
/** 设备状态 */
public
static
final
String
STARUS_TYPE
=
"STARUS_TYPE"
;
}
}
src/main/java/com/baosight/hpjx/controller/LogInformationController.java
View file @
0da45f14
package
com
.
baosight
.
hpjx
.
controller
;
package
com
.
baosight
.
hpjx
.
controller
;
import
com.baosight.hpjx.common.HPConstants
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarStatus
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarStatus
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarWarning
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarWarning
;
...
@@ -26,6 +27,22 @@ public class LogInformationController extends ServiceBase {
...
@@ -26,6 +27,22 @@ public class LogInformationController extends ServiceBase {
@RequestMapping
({
"/analysis"
})
@RequestMapping
({
"/analysis"
})
public
String
logAnalysis
(
@PathVariable
HPSB00A
hpsb00A
)
{
public
String
logAnalysis
(
@PathVariable
HPSB00A
hpsb00A
)
{
hpsb00A
.
getEquipmentType
();
//TODO 根据TYPE来判断内容属于哪一种,然后再进行解析
//TODO TYPE = STARUS_TYPE --- 设备状态
//TODO TYPE = TIME_TYPE --- 开机时间
//TODO TYPE = WARNING_TYPE --- 报警内容
String
equipmentType
=
hpsb00A
.
getEquipmentType
();
if
(
StringUtils
.
isEmpty
(
equipmentType
))
{
if
(
equipmentType
.
equals
(
HPConstants
.
STARUS_TYPE
)){
//解析设备状态
}
}
else
{
}
HPSB002
hpsb002
=
new
HPSB002
();
HPSB002
hpsb002
=
new
HPSB002
();
HPSB001
hpsb001
=
new
HPSB001
();
HPSB001
hpsb001
=
new
HPSB001
();
//解析设备状态
//解析设备状态
...
...
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