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
34f11413
Commit
34f11413
authored
Apr 25, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备日志表结构变更ID自增
parent
c13a35d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
HPSB001.java
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB001.java
+4
-5
HPSB002.java
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB002.java
+4
-5
ServiceHPTCP001.java
...java/com/baosight/hpjx/hp/tc/service/ServiceHPTCP001.java
+0
-3
No files found.
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB001.java
View file @
34f11413
...
...
@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
*/
public
class
HPSB001
extends
DaoEPBase
{
private
String
id
=
" "
;
/* ID*/
private
Long
id
;
/* ID*/
private
String
errorCode
=
" "
;
/* 异常编码*/
private
String
prio
=
" "
;
/* 异常登记*/
private
String
programNo
=
" "
;
/* 程序号*/
...
...
@@ -116,14 +116,14 @@ initMetaData();
* get the id - ID
* @return the id
*/
public
Stri
ng
getId
()
{
public
Lo
ng
getId
()
{
return
this
.
id
;
}
/**
* set the id - ID
*/
public
void
setId
(
Stri
ng
id
)
{
public
void
setId
(
Lo
ng
id
)
{
this
.
id
=
id
;
}
/**
...
...
@@ -340,8 +340,7 @@ initMetaData();
* get the value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setErrorCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"errorCode"
)),
errorCode
));
setPrio
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"prio"
)),
prio
));
setProgramNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"programNo"
)),
programNo
));
...
...
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB002.java
View file @
34f11413
...
...
@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
*/
public
class
HPSB002
extends
DaoEPBase
{
private
String
id
=
" "
;
/* ID*/
private
Long
id
;
/* ID*/
private
String
fileName
=
" "
;
/* 文件名*/
private
String
equipmentType
=
" "
;
/* 设备状态*/
private
String
equipmentCode
=
" "
;
/* 设备编码*/
...
...
@@ -96,14 +96,14 @@ initMetaData();
* get the id - ID
* @return the id
*/
public
Stri
ng
getId
()
{
public
Lo
ng
getId
()
{
return
this
.
id
;
}
/**
* set the id - ID
*/
public
void
setId
(
Stri
ng
id
)
{
public
void
setId
(
Lo
ng
id
)
{
this
.
id
=
id
;
}
/**
...
...
@@ -264,8 +264,7 @@ initMetaData();
* get the value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"fileName"
)),
fileName
));
setEquipmentType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"equipmentType"
)),
equipmentType
));
setEquipmentCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"equipmentCode"
)),
equipmentCode
));
...
...
src/main/java/com/baosight/hpjx/hp/tc/service/ServiceHPTCP001.java
View file @
34f11413
...
...
@@ -41,7 +41,6 @@ public class ServiceHPTCP001 extends ServiceBase {
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
());
...
...
@@ -55,7 +54,6 @@ public class ServiceHPTCP001 extends ServiceBase {
if
(
equipmentType
.
equals
(
HPConstants
.
TIME_TYPE
))
{
//解析开机时间
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
());
...
...
@@ -73,7 +71,6 @@ public class ServiceHPTCP001 extends ServiceBase {
if
(
CollectionUtils
.
isNotEmpty
(
cutterbarWarningBaseList
))
{
cutterbarWarning
=
CutterbarWarning
.
convertBase
(
cutterbarWarningBaseList
.
get
(
0
));
}
hpsb001
.
setId
(
StringUtils
.
uuid
());
hpsb001
.
setErrorCode
(
cutterbarWarning
.
getErrorCode
());
hpsb001
.
setPrio
(
cutterbarWarning
.
getPrio
());
hpsb001
.
setProgramNo
(
cutterbarWarning
.
getProgramNo
());
...
...
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