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
97317e0e
Commit
97317e0e
authored
Apr 25, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-25 设备日志和设备异常显示优化和调整
parent
316ce184
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1099 additions
and
729 deletions
+1099
-729
DdynamicEnum.java
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
+6
-0
LogInformationController.java
...om/baosight/hpjx/controller/LogInformationController.java
+3
-3
CutterbarWarning.java
...m/baosight/hpjx/equipment/hp/domain/CutterbarWarning.java
+1
-1
HPSB001.java
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB001.java
+418
-288
HPSB002.java
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB002.java
+337
-223
ServiceHPSB001.java
.../java/com/baosight/hpjx/hp/sb/service/ServiceHPSB001.java
+14
-12
ServiceHPSB002.java
.../java/com/baosight/hpjx/hp/sb/service/ServiceHPSB002.java
+16
-11
HPSB001.xml
src/main/java/com/baosight/hpjx/hp/sb/sql/HPSB001.xml
+94
-99
HPSB002.xml
src/main/java/com/baosight/hpjx/hp/sb/sql/HPSB002.xml
+118
-69
HPSB003.xml
src/main/java/com/baosight/hpjx/hp/sb/sql/HPSB003.xml
+9
-0
ServiceHPTCP001.java
...java/com/baosight/hpjx/hp/tc/service/ServiceHPTCP001.java
+50
-5
HPSB001.jsp
src/main/webapp/HP/SB/HPSB001.jsp
+18
-10
HPSB002.jsp
src/main/webapp/HP/SB/HPSB002.jsp
+15
-8
No files found.
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
View file @
97317e0e
...
@@ -386,6 +386,12 @@ public enum DdynamicEnum {
...
@@ -386,6 +386,12 @@ public enum DdynamicEnum {
WORKER_BLOCK_ID
(
"worker_block_id"
,
"userId"
,
"userName"
,
"HPPZ013.queryComboBox"
),
WORKER_BLOCK_ID
(
"worker_block_id"
,
"userId"
,
"userName"
,
"HPPZ013.queryComboBox"
),
PLAN_SALES_CODE_BLOCK_ID
(
"planSalesCode_block_id"
,
"planSalesCode"
,
"yearMonth"
,
"HPPZ018.queryPlanSalesCode"
),
PLAN_SALES_CODE_BLOCK_ID
(
"planSalesCode_block_id"
,
"planSalesCode"
,
"yearMonth"
,
"HPPZ018.queryPlanSalesCode"
),
/**
* 模块:设备编码
* 用途:设备日志下拉框
* 编写:ly
*/
DEVICE_CODE_BLOCK_ID
(
"deviceCode_block_id"
,
"deviceCode"
,
"deviceName"
,
"HPSB003.queryDeviceCode"
),
;
;
...
...
src/main/java/com/baosight/hpjx/controller/LogInformationController.java
View file @
97317e0e
...
@@ -52,7 +52,7 @@ public class LogInformationController {
...
@@ -52,7 +52,7 @@ public class LogInformationController {
if
(
equipmentType
.
equals
(
HPConstants
.
STARUS_TYPE
))
{
if
(
equipmentType
.
equals
(
HPConstants
.
STARUS_TYPE
))
{
//解析设备状态
//解析设备状态
List
<
CutterbarStatus
>
cutterbarStatusList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarStatus
.
class
);
List
<
CutterbarStatus
>
cutterbarStatusList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarStatus
.
class
);
hpsb002
.
setId
(
StringUtils
.
uuid
());
//
hpsb002.setId(StringUtils.uuid());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setLogValue
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
());
hpsb002
.
setLogValue
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
());
...
@@ -68,7 +68,7 @@ public class LogInformationController {
...
@@ -68,7 +68,7 @@ public class LogInformationController {
if
(
equipmentType
.
equals
(
HPConstants
.
TIME_TYPE
))
{
if
(
equipmentType
.
equals
(
HPConstants
.
TIME_TYPE
))
{
//解析开机时间
//解析开机时间
List
<
CutterbarTime
>
cutterbarTimeList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarTime
.
class
);
List
<
CutterbarTime
>
cutterbarTimeList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarTime
.
class
);
hpsb002
.
setId
(
StringUtils
.
uuid
());
//
hpsb002.setId(StringUtils.uuid());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setLogValue
(
cutterbarTimeList
.
get
(
0
).
getTime
());
hpsb002
.
setLogValue
(
cutterbarTimeList
.
get
(
0
).
getTime
());
...
@@ -88,7 +88,7 @@ public class LogInformationController {
...
@@ -88,7 +88,7 @@ public class LogInformationController {
if
(
CollectionUtils
.
isNotEmpty
(
cutterbarWarningBaseList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
cutterbarWarningBaseList
))
{
cutterbarWarning
=
CutterbarWarning
.
convertBase
(
cutterbarWarningBaseList
.
get
(
0
));
cutterbarWarning
=
CutterbarWarning
.
convertBase
(
cutterbarWarningBaseList
.
get
(
0
));
}
}
hpsb001
.
setId
(
StringUtils
.
uuid
());
//
hpsb001.setId(StringUtils.uuid());
hpsb001
.
setErrorCode
(
cutterbarWarning
.
getErrorCode
());
hpsb001
.
setErrorCode
(
cutterbarWarning
.
getErrorCode
());
hpsb001
.
setPrio
(
cutterbarWarning
.
getPrio
());
hpsb001
.
setPrio
(
cutterbarWarning
.
getPrio
());
hpsb001
.
setProgramNo
(
cutterbarWarning
.
getProgramNo
());
hpsb001
.
setProgramNo
(
cutterbarWarning
.
getProgramNo
());
...
...
src/main/java/com/baosight/hpjx/equipment/hp/domain/CutterbarWarning.java
View file @
97317e0e
...
@@ -59,7 +59,7 @@ public class CutterbarWarning {
...
@@ -59,7 +59,7 @@ public class CutterbarWarning {
warning
.
setFileName
(
base
.
getFileName
());
warning
.
setFileName
(
base
.
getFileName
());
}
else
if
(
no
.
compareTo
(
new
Integer
(
300
))>=
0
&&
no
.
compareTo
(
new
Integer
(
399
))<=
0
){
}
else
if
(
no
.
compareTo
(
new
Integer
(
300
))>=
0
&&
no
.
compareTo
(
new
Integer
(
399
))<=
0
){
warning
.
setRowNo
(
base
.
getArg1
());
warning
.
setRowNo
(
base
.
getArg1
());
warning
.
setFileName
(
warning
.
getFileName
());
warning
.
setFileName
(
warning
.
getFileName
()
==
null
?
base
.
getFileName
():
warning
.
getFileName
()
);
}
}
}
}
return
warning
;
return
warning
;
...
...
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB001.java
View file @
97317e0e
...
@@ -15,374 +15,503 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -15,374 +15,503 @@ import com.baosight.iplat4j.core.util.StringUtils;
*
*
*/
*/
public
class
HPSB001
extends
DaoEPBase
{
public
class
HPSB001
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
id
=
" "
;
/* ID*/
private
String
errorCode
=
" "
;
/* 异常编码*/
public
static
final
String
FIELD_ID
=
"id"
;
/* ID*/
private
String
prio
=
" "
;
/* 异常登记*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
private
String
programNo
=
" "
;
/* 程序号*/
public
static
final
String
FIELD_ERROR_CODE
=
"errorCode"
;
/* 异常编码*/
private
String
rowno
=
" "
;
/* 行号*/
public
static
final
String
FIELD_PRIO
=
"prio"
;
/* 异常登记*/
private
String
gotoRowNone
=
" "
;
/* 不存在跳转行*/
public
static
final
String
FIELD_PROGRAM_NO
=
"programNo"
;
/* 程序号*/
private
String
fileName
=
" "
;
/* 文件名*/
public
static
final
String
FIELD_ROWNO
=
"rowno"
;
/* 行号*/
private
String
equipmentType
=
" "
;
/* 设备状态*/
public
static
final
String
FIELD_GOTO_ROW_NONE
=
"gotoRowNone"
;
/* 不存在跳转行*/
private
String
equipmentCode
=
" "
;
/* 设备编码*/
public
static
final
String
FIELD_FILE_NAME
=
"fileName"
;
/* 文件名*/
private
String
createdBy
=
" "
;
/* 创建人*/
public
static
final
String
FIELD_EQUIPMENT_TYPE
=
"equipmentType"
;
/* 设备状态*/
private
String
createdName
=
" "
;
/* 创建人名称*/
public
static
final
String
FIELD_EQUIPMENT_CODE
=
"equipmentCode"
;
/* 设备编码*/
private
String
createdTime
=
" "
;
/* 创建时间*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
private
String
updatedBy
=
" "
;
/* 更新人*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 更新人*/
private
Integer
deleteFlag
=
Integer
.
valueOf
(
0
);
/* 是否删除0.否1.是*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 更新人名称*/
/**
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 更新时间*/
* initialize the metadata
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 是否删除0.否1.是*/
*/
public
static
final
String
FIELD_ERROR_TEXT
=
"errorText"
;
/* 异常文本*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
public
static
final
String
COL_ID
=
"ID"
;
/* ID*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
eiColumn
=
new
EiColumn
(
"id"
);
public
static
final
String
COL_ERROR_CODE
=
"ERROR_CODE"
;
/* 异常编码*/
public
static
final
String
COL_PRIO
=
"PRIO"
;
/* 异常登记*/
public
static
final
String
COL_PROGRAM_NO
=
"PROGRAM_NO"
;
/* 程序号*/
public
static
final
String
COL_ROWNO
=
"ROWNO"
;
/* 行号*/
public
static
final
String
COL_GOTO_ROW_NONE
=
"GOTO_ROW_NONE"
;
/* 不存在跳转行*/
public
static
final
String
COL_FILE_NAME
=
"FILE_NAME"
;
/* 文件名*/
public
static
final
String
COL_EQUIPMENT_TYPE
=
"EQUIPMENT_TYPE"
;
/* 设备状态*/
public
static
final
String
COL_EQUIPMENT_CODE
=
"EQUIPMENT_CODE"
;
/* 设备编码*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 创建人*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 创建人名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 更新人*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 更新人名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 更新时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除0.否1.是*/
public
static
final
String
COL_ERROR_TEXT
=
"ERROR_TEXT"
;
/* 异常文本*/
public
static
final
String
QUERY
=
"t_hpsb001.query"
;
public
static
final
String
COUNT
=
"t_hpsb001.count"
;
public
static
final
String
INSERT
=
"t_hpsb001.insert"
;
public
static
final
String
UPDATE
=
"t_hpsb001.update"
;
public
static
final
String
DELETE
=
"t_hpsb001.delete"
;
private
Long
id
=
new
Long
(
0
);
/* ID*/
private
String
companyCode
=
" "
;
private
String
errorCode
=
" "
;
/* 异常编码*/
private
String
prio
=
" "
;
/* 异常登记*/
private
String
programNo
=
" "
;
/* 程序号*/
private
String
rowno
=
" "
;
/* 行号*/
private
String
gotoRowNone
=
" "
;
/* 不存在跳转行*/
private
String
fileName
=
" "
;
/* 文件名*/
private
String
equipmentType
=
" "
;
/* 设备状态*/
private
String
equipmentCode
=
" "
;
/* 设备编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
Integer
deleteFlag
=
new
Integer
(
0
);
/* 是否删除0.否1.是*/
private
String
errorText
=
" "
;
/* 异常文本*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"ID"
);
eiColumn
.
setDescName
(
"ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"errorCode"
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ERROR_CODE
);
eiColumn
.
setDescName
(
"异常编码"
);
eiColumn
.
setDescName
(
"异常编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"prio"
);
eiColumn
=
new
EiColumn
(
FIELD_PRIO
);
eiColumn
.
setDescName
(
"异常登记"
);
eiColumn
.
setDescName
(
"异常登记"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"programNo"
);
eiColumn
=
new
EiColumn
(
FIELD_PROGRAM_NO
);
eiColumn
.
setDescName
(
"程序号"
);
eiColumn
.
setDescName
(
"程序号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"rowno"
);
eiColumn
=
new
EiColumn
(
FIELD_ROWNO
);
eiColumn
.
setDescName
(
"行号"
);
eiColumn
.
setDescName
(
"行号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"gotoRowNone"
);
eiColumn
=
new
EiColumn
(
FIELD_GOTO_ROW_NONE
);
eiColumn
.
setDescName
(
"不存在跳转行"
);
eiColumn
.
setDescName
(
"不存在跳转行"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"fileName"
);
eiColumn
=
new
EiColumn
(
FIELD_FILE_NAME
);
eiColumn
.
setDescName
(
"文件名"
);
eiColumn
.
setDescName
(
"文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"equipmentType"
);
eiColumn
=
new
EiColumn
(
FIELD_EQUIPMENT_TYPE
);
eiColumn
.
setDescName
(
"设备状态"
);
eiColumn
.
setDescName
(
"设备状态"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"equipmentCode"
);
eiColumn
=
new
EiColumn
(
FIELD_EQUIPMENT_CODE
);
eiColumn
.
setDescName
(
"设备编码"
);
eiColumn
.
setDescName
(
"设备编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"创建人"
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdName"
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdTime"
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"创建时间"
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedBy"
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"更新人"
);
eiColumn
.
setDescName
(
"更新人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedName"
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedTime"
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"更新时间"
);
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"deleteFlag"
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"是否删除0.否1.是"
);
eiColumn
.
setDescName
(
"是否删除0.否1.是"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ERROR_TEXT
);
eiColumn
.
setDescName
(
"异常文本"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor
*/
public
HPSB001
()
{
initMetaData
();
}
/**
* get the id - ID
* @return the id
*/
public
String
getId
()
{
return
this
.
id
;
}
/**
}
* set the id - ID
*/
/**
public
void
setId
(
String
id
)
{
* the constructor.
*/
public
HPSB001
()
{
initMetaData
();
}
/**
* get the id - ID.
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id - ID.
*
* @param id - ID
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/**
/**
* get the errorCode - 异常编码
* get the companyCode .
* @return the errorCode
* @return the companyCode
*/
*/
public
String
getErrorCode
()
{
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode .
*
* @param companyCode
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the errorCode - 异常编码.
* @return the errorCode
*/
public
String
getErrorCode
()
{
return
this
.
errorCode
;
return
this
.
errorCode
;
}
}
/**
/**
* set the errorCode - 异常编码
* set the errorCode - 异常编码.
*/
*
public
void
setErrorCode
(
String
errorCode
)
{
* @param errorCode - 异常编码
*/
public
void
setErrorCode
(
String
errorCode
)
{
this
.
errorCode
=
errorCode
;
this
.
errorCode
=
errorCode
;
}
}
/**
/**
* get the prio - 异常登记
* get the prio - 异常登记.
* @return the prio
* @return the prio
*/
*/
public
String
getPrio
()
{
public
String
getPrio
()
{
return
this
.
prio
;
return
this
.
prio
;
}
}
/**
/**
* set the prio - 异常登记
* set the prio - 异常登记.
*/
*
public
void
setPrio
(
String
prio
)
{
* @param prio - 异常登记
*/
public
void
setPrio
(
String
prio
)
{
this
.
prio
=
prio
;
this
.
prio
=
prio
;
}
}
/**
/**
* get the programNo - 程序号
* get the programNo - 程序号.
* @return the programNo
* @return the programNo
*/
*/
public
String
getProgramNo
()
{
public
String
getProgramNo
()
{
return
this
.
programNo
;
return
this
.
programNo
;
}
}
/**
/**
* set the programNo - 程序号
* set the programNo - 程序号.
*/
*
public
void
setProgramNo
(
String
programNo
)
{
* @param programNo - 程序号
*/
public
void
setProgramNo
(
String
programNo
)
{
this
.
programNo
=
programNo
;
this
.
programNo
=
programNo
;
}
}
/**
/**
* get the rowno - 行号
* get the rowno - 行号.
* @return the rowno
* @return the rowno
*/
*/
public
String
getRowno
()
{
public
String
getRowno
()
{
return
this
.
rowno
;
return
this
.
rowno
;
}
}
/**
/**
* set the rowno - 行号
* set the rowno - 行号.
*/
*
public
void
setRowno
(
String
rowno
)
{
* @param rowno - 行号
*/
public
void
setRowno
(
String
rowno
)
{
this
.
rowno
=
rowno
;
this
.
rowno
=
rowno
;
}
}
/**
/**
* get the gotoRowNone - 不存在跳转行
* get the gotoRowNone - 不存在跳转行.
* @return the gotoRowNone
* @return the gotoRowNone
*/
*/
public
String
getGotoRowNone
()
{
public
String
getGotoRowNone
()
{
return
this
.
gotoRowNone
;
return
this
.
gotoRowNone
;
}
}
/**
/**
* set the gotoRowNone - 不存在跳转行
* set the gotoRowNone - 不存在跳转行.
*/
*
public
void
setGotoRowNone
(
String
gotoRowNone
)
{
* @param gotoRowNone - 不存在跳转行
*/
public
void
setGotoRowNone
(
String
gotoRowNone
)
{
this
.
gotoRowNone
=
gotoRowNone
;
this
.
gotoRowNone
=
gotoRowNone
;
}
}
/**
/**
* get the fileName - 文件名
* get the fileName - 文件名.
* @return the fileName
* @return the fileName
*/
*/
public
String
getFileName
()
{
public
String
getFileName
()
{
return
this
.
fileName
;
return
this
.
fileName
;
}
}
/**
/**
* set the fileName - 文件名
* set the fileName - 文件名.
*/
*
public
void
setFileName
(
String
fileName
)
{
* @param fileName - 文件名
*/
public
void
setFileName
(
String
fileName
)
{
this
.
fileName
=
fileName
;
this
.
fileName
=
fileName
;
}
}
/**
/**
* get the equipmentType - 设备状态
* get the equipmentType - 设备状态.
* @return the equipmentType
* @return the equipmentType
*/
*/
public
String
getEquipmentType
()
{
public
String
getEquipmentType
()
{
return
this
.
equipmentType
;
return
this
.
equipmentType
;
}
}
/**
/**
* set the equipmentType - 设备状态
* set the equipmentType - 设备状态.
*/
*
public
void
setEquipmentType
(
String
equipmentType
)
{
* @param equipmentType - 设备状态
*/
public
void
setEquipmentType
(
String
equipmentType
)
{
this
.
equipmentType
=
equipmentType
;
this
.
equipmentType
=
equipmentType
;
}
}
/**
/**
* get the equipmentCode - 设备编码
* get the equipmentCode - 设备编码.
* @return the equipmentCode
* @return the equipmentCode
*/
*/
public
String
getEquipmentCode
()
{
public
String
getEquipmentCode
()
{
return
this
.
equipmentCode
;
return
this
.
equipmentCode
;
}
}
/**
/**
* set the equipmentCode - 设备编码
* set the equipmentCode - 设备编码.
*/
*
public
void
setEquipmentCode
(
String
equipmentCode
)
{
* @param equipmentCode - 设备编码
*/
public
void
setEquipmentCode
(
String
equipmentCode
)
{
this
.
equipmentCode
=
equipmentCode
;
this
.
equipmentCode
=
equipmentCode
;
}
}
/**
/**
* get the createdBy - 创建人
* get the createdBy - 创建人.
* @return the createdBy
* @return the createdBy
*/
*/
public
String
getCreatedBy
()
{
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
return
this
.
createdBy
;
}
}
/**
/**
* set the createdBy - 创建人
* set the createdBy - 创建人.
*/
*
public
void
setCreatedBy
(
String
createdBy
)
{
* @param createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
this
.
createdBy
=
createdBy
;
}
}
/**
/**
* get the createdName - 创建人名称
* get the createdName - 创建人名称.
* @return the createdName
* @return the createdName
*/
*/
public
String
getCreatedName
()
{
public
String
getCreatedName
()
{
return
this
.
createdName
;
return
this
.
createdName
;
}
}
/**
/**
* set the createdName - 创建人名称
* set the createdName - 创建人名称.
*/
*
public
void
setCreatedName
(
String
createdName
)
{
* @param createdName - 创建人名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
this
.
createdName
=
createdName
;
}
}
/**
/**
* get the createdTime - 创建时间
* get the createdTime - 创建时间.
* @return the createdTime
* @return the createdTime
*/
*/
public
String
getCreatedTime
()
{
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
/**
/**
* set the createdTime - 创建时间
* set the createdTime - 创建时间.
*/
*
public
void
setCreatedTime
(
String
createdTime
)
{
* @param createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
this
.
createdTime
=
createdTime
;
}
}
/**
/**
* get the updatedBy - 更新人
* get the updatedBy - 更新人.
* @return the updatedBy
* @return the updatedBy
*/
*/
public
String
getUpdatedBy
()
{
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
return
this
.
updatedBy
;
}
}
/**
/**
* set the updatedBy - 更新人
* set the updatedBy - 更新人.
*/
*
public
void
setUpdatedBy
(
String
updatedBy
)
{
* @param updatedBy - 更新人
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
this
.
updatedBy
=
updatedBy
;
}
}
/**
/**
* get the updatedName - 更新人名称
* get the updatedName - 更新人名称.
* @return the updatedName
* @return the updatedName
*/
*/
public
String
getUpdatedName
()
{
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
return
this
.
updatedName
;
}
}
/**
/**
* set the updatedName - 更新人名称
* set the updatedName - 更新人名称.
*/
*
public
void
setUpdatedName
(
String
updatedName
)
{
* @param updatedName - 更新人名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
this
.
updatedName
=
updatedName
;
}
}
/**
/**
* get the updatedTime - 更新时间
* get the updatedTime - 更新时间.
* @return the updatedTime
* @return the updatedTime
*/
*/
public
String
getUpdatedTime
()
{
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
return
this
.
updatedTime
;
}
}
/**
/**
* set the updatedTime - 更新时间
* set the updatedTime - 更新时间.
*/
*
public
void
setUpdatedTime
(
String
updatedTime
)
{
* @param updatedTime - 更新时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
this
.
updatedTime
=
updatedTime
;
}
}
/**
/**
* get the deleteFlag - 是否删除0.否1.是
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
* @return the deleteFlag
*/
*/
public
Integer
getDeleteFlag
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
return
this
.
deleteFlag
;
}
}
/**
/**
* set the deleteFlag - 是否删除0.否1.是
* set the deleteFlag - 是否删除0.否1.是.
*/
*
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
* @param deleteFlag - 是否删除0.否1.是
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
this
.
deleteFlag
=
deleteFlag
;
}
}
/**
/**
* get the value from Map
* get the errorText - 异常文本.
*/
* @return the errorText
public
void
fromMap
(
Map
map
)
{
*/
public
String
getErrorText
()
{
setId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
return
this
.
errorText
;
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
));
/**
setRowno
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"rowno"
)),
rowno
));
* set the errorText - 异常文本.
setGotoRowNone
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"gotoRowNone"
)),
gotoRowNone
));
*
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"fileName"
)),
fileName
));
* @param errorText - 异常文本
setEquipmentType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"equipmentType"
)),
equipmentType
));
*/
setEquipmentCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"equipmentCode"
)),
equipmentCode
));
public
void
setErrorText
(
String
errorText
)
{
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
this
.
errorText
=
errorText
;
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdName"
)),
createdName
));
}
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
/**
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
* get the value from Map.
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedName"
)),
updatedName
));
*
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
* @param map - source data map
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"deleteFlag"
)),
deleteFlag
));
*/
}
@Override
public
void
fromMap
(
Map
map
)
{
/**
* set the value to Map
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
*/
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
public
Map
toMap
()
{
setErrorCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ERROR_CODE
)),
errorCode
));
setPrio
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIO
)),
prio
));
Map
map
=
new
HashMap
();
setProgramNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROGRAM_NO
)),
programNo
));
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
setRowno
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ROWNO
)),
rowno
));
map
.
put
(
"errorCode"
,
StringUtils
.
toString
(
errorCode
,
eiMetadata
.
getMeta
(
"errorCode"
)));
setGotoRowNone
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_GOTO_ROW_NONE
)),
gotoRowNone
));
map
.
put
(
"prio"
,
StringUtils
.
toString
(
prio
,
eiMetadata
.
getMeta
(
"prio"
)));
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_NAME
)),
fileName
));
map
.
put
(
"programNo"
,
StringUtils
.
toString
(
programNo
,
eiMetadata
.
getMeta
(
"programNo"
)));
setEquipmentType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_EQUIPMENT_TYPE
)),
equipmentType
));
map
.
put
(
"rowno"
,
StringUtils
.
toString
(
rowno
,
eiMetadata
.
getMeta
(
"rowno"
)));
setEquipmentCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_EQUIPMENT_CODE
)),
equipmentCode
));
map
.
put
(
"gotoRowNone"
,
StringUtils
.
toString
(
gotoRowNone
,
eiMetadata
.
getMeta
(
"gotoRowNone"
)));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
map
.
put
(
"fileName"
,
StringUtils
.
toString
(
fileName
,
eiMetadata
.
getMeta
(
"fileName"
)));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
map
.
put
(
"equipmentType"
,
StringUtils
.
toString
(
equipmentType
,
eiMetadata
.
getMeta
(
"equipmentType"
)));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
map
.
put
(
"equipmentCode"
,
StringUtils
.
toString
(
equipmentCode
,
eiMetadata
.
getMeta
(
"equipmentCode"
)));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
map
.
put
(
"createdBy"
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
"createdBy"
)));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
map
.
put
(
"createdName"
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
"createdName"
)));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
setErrorText
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ERROR_TEXT
)),
errorText
));
map
.
put
(
"updatedName"
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
"updatedName"
)));
}
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
map
.
put
(
"deleteFlag"
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
"deleteFlag"
)));
/**
* set the value to Map.
return
map
;
*/
@Override
}
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_ERROR_CODE
,
StringUtils
.
toString
(
errorCode
,
eiMetadata
.
getMeta
(
FIELD_ERROR_CODE
)));
map
.
put
(
FIELD_PRIO
,
StringUtils
.
toString
(
prio
,
eiMetadata
.
getMeta
(
FIELD_PRIO
)));
map
.
put
(
FIELD_PROGRAM_NO
,
StringUtils
.
toString
(
programNo
,
eiMetadata
.
getMeta
(
FIELD_PROGRAM_NO
)));
map
.
put
(
FIELD_ROWNO
,
StringUtils
.
toString
(
rowno
,
eiMetadata
.
getMeta
(
FIELD_ROWNO
)));
map
.
put
(
FIELD_GOTO_ROW_NONE
,
StringUtils
.
toString
(
gotoRowNone
,
eiMetadata
.
getMeta
(
FIELD_GOTO_ROW_NONE
)));
map
.
put
(
FIELD_FILE_NAME
,
StringUtils
.
toString
(
fileName
,
eiMetadata
.
getMeta
(
FIELD_FILE_NAME
)));
map
.
put
(
FIELD_EQUIPMENT_TYPE
,
StringUtils
.
toString
(
equipmentType
,
eiMetadata
.
getMeta
(
FIELD_EQUIPMENT_TYPE
)));
map
.
put
(
FIELD_EQUIPMENT_CODE
,
StringUtils
.
toString
(
equipmentCode
,
eiMetadata
.
getMeta
(
FIELD_EQUIPMENT_CODE
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_ERROR_TEXT
,
StringUtils
.
toString
(
errorText
,
eiMetadata
.
getMeta
(
FIELD_ERROR_TEXT
)));
return
map
;
}
}
}
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sb/domain/HPSB002.java
View file @
97317e0e
...
@@ -16,289 +16,402 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -16,289 +16,402 @@ import com.baosight.iplat4j.core.util.StringUtils;
*/
*/
public
class
HPSB002
extends
DaoEPBase
{
public
class
HPSB002
extends
DaoEPBase
{
private
String
id
=
" "
;
/* ID*/
private
static
final
long
serialVersionUID
=
1L
;
private
String
fileName
=
" "
;
/* 文件名*/
private
String
equipmentType
=
" "
;
/* 设备状态*/
public
static
final
String
FIELD_ID
=
"id"
;
/* ID*/
private
String
equipmentCode
=
" "
;
/* 设备编码*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
private
String
logValue
=
" "
;
/* 日志类容*/
public
static
final
String
FIELD_FILE_NAME
=
"fileName"
;
/* 文件名*/
private
String
createdBy
=
" "
;
/* 创建人*/
public
static
final
String
FIELD_EQUIPMENT_TYPE
=
"equipmentType"
;
/* 设备状态*/
private
String
createdName
=
" "
;
/* 创建人名称*/
public
static
final
String
FIELD_EQUIPMENT_CODE
=
"equipmentCode"
;
/* 设备编码*/
private
String
createdTime
=
" "
;
/* 创建时间*/
public
static
final
String
FIELD_LOG_INIVALUE
=
"logInivalue"
;
/* 初始类容*/
private
String
updatedBy
=
" "
;
/* 更新人*/
public
static
final
String
FIELD_LOG_VALUE
=
"logValue"
;
/* 日志类容*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
private
Integer
deleteFlag
=
Integer
.
valueOf
(
0
);
/* 是否删除0.否1.是*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
/**
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 更新人*/
* initialize the metadata
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 更新人名称*/
*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 更新时间*/
public
void
initMetaData
()
{
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 是否删除0.否1.是*/
EiColumn
eiColumn
;
public
static
final
String
COL_ID
=
"ID"
;
/* ID*/
eiColumn
=
new
EiColumn
(
"id"
);
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
public
static
final
String
COL_FILE_NAME
=
"FILE_NAME"
;
/* 文件名*/
public
static
final
String
COL_EQUIPMENT_TYPE
=
"EQUIPMENT_TYPE"
;
/* 设备状态*/
public
static
final
String
COL_EQUIPMENT_CODE
=
"EQUIPMENT_CODE"
;
/* 设备编码*/
public
static
final
String
COL_LOG_INIVALUE
=
"LOG_INIVALUE"
;
/* 初始类容*/
public
static
final
String
COL_LOG_VALUE
=
"LOG_VALUE"
;
/* 日志类容*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 创建人*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 创建人名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 更新人*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 更新人名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 更新时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除0.否1.是*/
public
static
final
String
QUERY
=
"HPSB002.query"
;
public
static
final
String
COUNT
=
"HPSB002.count"
;
public
static
final
String
INSERT
=
"HPSB002.insert"
;
public
static
final
String
UPDATE
=
"HPSB002.update"
;
public
static
final
String
DELETE
=
"HPSB002.delete"
;
private
Long
id
=
new
Long
(
0
);
/* ID*/
private
String
companyCode
=
" "
;
private
String
fileName
=
" "
;
/* 文件名*/
private
String
equipmentType
=
" "
;
/* 设备状态*/
private
String
equipmentCode
=
" "
;
/* 设备编码*/
private
String
logInivalue
=
" "
;
/* 初始类容*/
private
String
logValue
=
" "
;
/* 日志类容*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
Integer
deleteFlag
=
new
Integer
(
0
);
/* 是否删除0.否1.是*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"ID"
);
eiColumn
.
setDescName
(
"ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"fileName"
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_FILE_NAME
);
eiColumn
.
setDescName
(
"文件名"
);
eiColumn
.
setDescName
(
"文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"equipmentType"
);
eiColumn
=
new
EiColumn
(
FIELD_EQUIPMENT_TYPE
);
eiColumn
.
setDescName
(
"设备状态"
);
eiColumn
.
setDescName
(
"设备状态"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"equipmentCode"
);
eiColumn
=
new
EiColumn
(
FIELD_EQUIPMENT_CODE
);
eiColumn
.
setDescName
(
"设备编码"
);
eiColumn
.
setDescName
(
"设备编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"logValue"
);
eiColumn
=
new
EiColumn
(
FIELD_LOG_INIVALUE
);
eiColumn
.
setDescName
(
"初始类容"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_LOG_VALUE
);
eiColumn
.
setDescName
(
"日志类容"
);
eiColumn
.
setDescName
(
"日志类容"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"创建人"
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdName"
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdTime"
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"创建时间"
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedBy"
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"更新人"
);
eiColumn
.
setDescName
(
"更新人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedName"
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedTime"
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"更新时间"
);
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"deleteFlag"
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"是否删除0.否1.是"
);
eiColumn
.
setDescName
(
"是否删除0.否1.是"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
* the constructor
/**
*/
* the constructor.
public
HPSB002
()
{
*/
initMetaData
();
public
HPSB002
()
{
}
initMetaData
();
}
/**
* get the id - ID
* @return the id
*/
public
String
getId
()
{
return
this
.
id
;
}
/**
/**
* set the id - ID
* get the id - ID.
*/
* @return the id
public
void
setId
(
String
id
)
{
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id - ID.
*
* @param id - ID
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/**
/**
* get the fileName - 文件名
* get the companyCode .
* @return the fileName
* @return the companyCode
*/
*/
public
String
getFileName
()
{
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode .
*
* @param companyCode
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the fileName - 文件名.
* @return the fileName
*/
public
String
getFileName
()
{
return
this
.
fileName
;
return
this
.
fileName
;
}
}
/**
/**
* set the fileName - 文件名
* set the fileName - 文件名.
*/
*
public
void
setFileName
(
String
fileName
)
{
* @param fileName - 文件名
*/
public
void
setFileName
(
String
fileName
)
{
this
.
fileName
=
fileName
;
this
.
fileName
=
fileName
;
}
}
/**
/**
* get the equipmentType - 设备状态
* get the equipmentType - 设备状态.
* @return the equipmentType
* @return the equipmentType
*/
*/
public
String
getEquipmentType
()
{
public
String
getEquipmentType
()
{
return
this
.
equipmentType
;
return
this
.
equipmentType
;
}
}
/**
/**
* set the equipmentType - 设备状态
* set the equipmentType - 设备状态.
*/
*
public
void
setEquipmentType
(
String
equipmentType
)
{
* @param equipmentType - 设备状态
*/
public
void
setEquipmentType
(
String
equipmentType
)
{
this
.
equipmentType
=
equipmentType
;
this
.
equipmentType
=
equipmentType
;
}
}
/**
/**
* get the equipmentCode - 设备编码
* get the equipmentCode - 设备编码.
* @return the equipmentCode
* @return the equipmentCode
*/
*/
public
String
getEquipmentCode
()
{
public
String
getEquipmentCode
()
{
return
this
.
equipmentCode
;
return
this
.
equipmentCode
;
}
}
/**
/**
* set the equipmentCode - 设备编码
* set the equipmentCode - 设备编码.
*/
*
public
void
setEquipmentCode
(
String
equipmentCode
)
{
* @param equipmentCode - 设备编码
*/
public
void
setEquipmentCode
(
String
equipmentCode
)
{
this
.
equipmentCode
=
equipmentCode
;
this
.
equipmentCode
=
equipmentCode
;
}
}
/**
/**
* get the logValue - 日志类容
* get the logInivalue - 初始类容.
* @return the logValue
* @return the logInivalue
*/
*/
public
String
getLogValue
()
{
public
String
getLogInivalue
()
{
return
this
.
logInivalue
;
}
/**
* set the logInivalue - 初始类容.
*
* @param logInivalue - 初始类容
*/
public
void
setLogInivalue
(
String
logInivalue
)
{
this
.
logInivalue
=
logInivalue
;
}
/**
* get the logValue - 日志类容.
* @return the logValue
*/
public
String
getLogValue
()
{
return
this
.
logValue
;
return
this
.
logValue
;
}
}
/**
/**
* set the logValue - 日志类容
* set the logValue - 日志类容.
*/
*
public
void
setLogValue
(
String
logValue
)
{
* @param logValue - 日志类容
*/
public
void
setLogValue
(
String
logValue
)
{
this
.
logValue
=
logValue
;
this
.
logValue
=
logValue
;
}
}
/**
/**
* get the createdBy - 创建人
* get the createdBy - 创建人.
* @return the createdBy
* @return the createdBy
*/
*/
public
String
getCreatedBy
()
{
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
return
this
.
createdBy
;
}
}
/**
/**
* set the createdBy - 创建人
* set the createdBy - 创建人.
*/
*
public
void
setCreatedBy
(
String
createdBy
)
{
* @param createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
this
.
createdBy
=
createdBy
;
}
}
/**
/**
* get the createdName - 创建人名称
* get the createdName - 创建人名称.
* @return the createdName
* @return the createdName
*/
*/
public
String
getCreatedName
()
{
public
String
getCreatedName
()
{
return
this
.
createdName
;
return
this
.
createdName
;
}
}
/**
/**
* set the createdName - 创建人名称
* set the createdName - 创建人名称.
*/
*
public
void
setCreatedName
(
String
createdName
)
{
* @param createdName - 创建人名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
this
.
createdName
=
createdName
;
}
}
/**
/**
* get the createdTime - 创建时间
* get the createdTime - 创建时间.
* @return the createdTime
* @return the createdTime
*/
*/
public
String
getCreatedTime
()
{
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
/**
/**
* set the createdTime - 创建时间
* set the createdTime - 创建时间.
*/
*
public
void
setCreatedTime
(
String
createdTime
)
{
* @param createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
this
.
createdTime
=
createdTime
;
}
}
/**
/**
* get the updatedBy - 更新人
* get the updatedBy - 更新人.
* @return the updatedBy
* @return the updatedBy
*/
*/
public
String
getUpdatedBy
()
{
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
return
this
.
updatedBy
;
}
}
/**
/**
* set the updatedBy - 更新人
* set the updatedBy - 更新人.
*/
*
public
void
setUpdatedBy
(
String
updatedBy
)
{
* @param updatedBy - 更新人
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
this
.
updatedBy
=
updatedBy
;
}
}
/**
/**
* get the updatedName - 更新人名称
* get the updatedName - 更新人名称.
* @return the updatedName
* @return the updatedName
*/
*/
public
String
getUpdatedName
()
{
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
return
this
.
updatedName
;
}
}
/**
/**
* set the updatedName - 更新人名称
* set the updatedName - 更新人名称.
*/
*
public
void
setUpdatedName
(
String
updatedName
)
{
* @param updatedName - 更新人名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
this
.
updatedName
=
updatedName
;
}
}
/**
/**
* get the updatedTime - 更新时间
* get the updatedTime - 更新时间.
* @return the updatedTime
* @return the updatedTime
*/
*/
public
String
getUpdatedTime
()
{
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
return
this
.
updatedTime
;
}
}
/**
/**
* set the updatedTime - 更新时间
* set the updatedTime - 更新时间.
*/
*
public
void
setUpdatedTime
(
String
updatedTime
)
{
* @param updatedTime - 更新时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
this
.
updatedTime
=
updatedTime
;
}
}
/**
/**
* get the deleteFlag - 是否删除0.否1.是
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
* @return the deleteFlag
*/
*/
public
Integer
getDeleteFlag
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
return
this
.
deleteFlag
;
}
}
/**
/**
* set the deleteFlag - 是否删除0.否1.是
* set the deleteFlag - 是否删除0.否1.是.
*/
*
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
* @param deleteFlag - 是否删除0.否1.是
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
this
.
deleteFlag
=
deleteFlag
;
}
}
/**
/**
* get the value from Map
* get the value from Map.
*/
*
public
void
fromMap
(
Map
map
)
{
* @param map - source data map
*/
setId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
@Override
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"fileName"
)),
fileName
));
public
void
fromMap
(
Map
map
)
{
setEquipmentType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"equipmentType"
)),
equipmentType
));
setEquipmentCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"equipmentCode"
)),
equipmentCode
));
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setLogValue
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"logValue"
)),
logValue
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_NAME
)),
fileName
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdName"
)),
createdName
));
setEquipmentType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_EQUIPMENT_TYPE
)),
equipmentType
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
setEquipmentCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_EQUIPMENT_CODE
)),
equipmentCode
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setLogInivalue
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LOG_INIVALUE
)),
logInivalue
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedName"
)),
updatedName
));
setLogValue
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LOG_VALUE
)),
logValue
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"deleteFlag"
)),
deleteFlag
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
}
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
/**
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
* set the value to Map
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
*/
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
public
Map
toMap
()
{
}
Map
map
=
new
HashMap
();
/**
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
* set the value to Map.
map
.
put
(
"fileName"
,
StringUtils
.
toString
(
fileName
,
eiMetadata
.
getMeta
(
"fileName"
)));
*/
map
.
put
(
"equipmentType"
,
StringUtils
.
toString
(
equipmentType
,
eiMetadata
.
getMeta
(
"equipmentType"
)));
@Override
map
.
put
(
"equipmentCode"
,
StringUtils
.
toString
(
equipmentCode
,
eiMetadata
.
getMeta
(
"equipmentCode"
)));
public
Map
toMap
()
{
map
.
put
(
"logValue"
,
StringUtils
.
toString
(
logValue
,
eiMetadata
.
getMeta
(
"logValue"
)));
map
.
put
(
"createdBy"
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
"createdBy"
)));
Map
map
=
new
HashMap
();
map
.
put
(
"createdName"
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
"createdName"
)));
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
map
.
put
(
FIELD_FILE_NAME
,
StringUtils
.
toString
(
fileName
,
eiMetadata
.
getMeta
(
FIELD_FILE_NAME
)));
map
.
put
(
"updatedName"
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
"updatedName"
)));
map
.
put
(
FIELD_EQUIPMENT_TYPE
,
StringUtils
.
toString
(
equipmentType
,
eiMetadata
.
getMeta
(
FIELD_EQUIPMENT_TYPE
)));
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
map
.
put
(
FIELD_EQUIPMENT_CODE
,
StringUtils
.
toString
(
equipmentCode
,
eiMetadata
.
getMeta
(
FIELD_EQUIPMENT_CODE
)));
map
.
put
(
"deleteFlag"
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
"deleteFlag"
)));
map
.
put
(
FIELD_LOG_INIVALUE
,
StringUtils
.
toString
(
logInivalue
,
eiMetadata
.
getMeta
(
FIELD_LOG_INIVALUE
)));
map
.
put
(
FIELD_LOG_VALUE
,
StringUtils
.
toString
(
logValue
,
eiMetadata
.
getMeta
(
FIELD_LOG_VALUE
)));
return
map
;
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
}
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
return
map
;
}
}
}
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sb/service/ServiceHPSB001.java
View file @
97317e0e
...
@@ -5,6 +5,7 @@ import com.baosight.hpjx.common.DdynamicEnum;
...
@@ -5,6 +5,7 @@ import com.baosight.hpjx.common.DdynamicEnum;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.hp.sb.domain.HPSB001
;
import
com.baosight.hpjx.hp.sb.domain.HPSB001
;
import
com.baosight.hpjx.hp.sb.domain.HPSB003
;
import
com.baosight.hpjx.hp.sc.domain.HPSC001
;
import
com.baosight.hpjx.hp.sc.domain.HPSC001
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
...
@@ -18,10 +19,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
...
@@ -18,10 +19,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Arrays
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
*
*
...
@@ -35,10 +33,12 @@ public class ServiceHPSB001 extends ServiceBase {
...
@@ -35,10 +33,12 @@ public class ServiceHPSB001 extends ServiceBase {
*/
*/
@OperationLogAnnotation
(
operModul
=
"设备异常日志"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"设备异常日志"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPSB001
hpsb001
=
new
HPSB001
();
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPSB001.query"
,
new
HPSB001
());
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
hpsb001
);
CommonMethod
.
initBlock
(
outInfo
,
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hpsb001
.
eiMetadata
);
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BLOCK_ID
),
return
inInfo
;
new
HashMap
<
String
,
Object
>(){}
);
return
outInfo
;
}
}
...
@@ -67,10 +67,12 @@ public class ServiceHPSB001 extends ServiceBase {
...
@@ -67,10 +67,12 @@ public class ServiceHPSB001 extends ServiceBase {
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hpsb001
.
fromMap
(
map
);
hpsb001
.
fromMap
(
map
);
hpsb001
.
setCreatedBy
(
UserSession
.
getUserId
());
List
<
HPSB003
>
list
=
this
.
dao
.
query
(
HPSB003
.
QUERY
,
new
HashMap
<
String
,
Object
>(){{
hpsb001
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
put
(
HPSB003
.
FIELD_DEVICE_CODE
,
hpsb001
.
getEquipmentCode
());
hpsb001
.
setUpdatedBy
(
null
);
}});
hpsb001
.
setUpdatedTime
(
null
);
if
(
list
.
size
()
>
0
)
{
hpsb001
.
setCompanyCode
(
list
.
get
(
0
).
getCompanyCode
());
}
DaoUtils
.
insert
(
"HPSB001.insert"
,
hpsb001
.
toMap
());
DaoUtils
.
insert
(
"HPSB001.insert"
,
hpsb001
.
toMap
());
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
src/main/java/com/baosight/hpjx/hp/sb/service/ServiceHPSB002.java
View file @
97317e0e
package
com
.
baosight
.
hpjx
.
hp
.
sb
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
sb
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.sb.domain.HPSB002
;
import
com.baosight.hpjx.hp.sb.domain.HPSB002
;
import
com.baosight.hpjx.hp.sb.domain.HPSB003
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -13,9 +16,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
...
@@ -13,9 +16,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
*
*
...
@@ -29,10 +30,12 @@ public class ServiceHPSB002 extends ServiceBase {
...
@@ -29,10 +30,12 @@ public class ServiceHPSB002 extends ServiceBase {
*/
*/
@OperationLogAnnotation
(
operModul
=
"设备日志"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"设备日志"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPSB002
hpsb002
=
new
HPSB002
();
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPSB002.query"
,
new
HPSB002
());
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
hpsb002
);
CommonMethod
.
initBlock
(
outInfo
,
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hpsb002
.
eiMetadata
);
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BLOCK_ID
),
return
inInfo
;
new
HashMap
<
String
,
Object
>(){}
);
return
outInfo
;
}
}
...
@@ -61,10 +64,12 @@ public class ServiceHPSB002 extends ServiceBase {
...
@@ -61,10 +64,12 @@ public class ServiceHPSB002 extends ServiceBase {
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hpsb002
.
fromMap
(
map
);
hpsb002
.
fromMap
(
map
);
hpsb002
.
setCreatedBy
(
UserSession
.
getUserId
());
List
<
HPSB003
>
list
=
this
.
dao
.
query
(
HPSB003
.
QUERY
,
new
HashMap
<
String
,
Object
>(){{
hpsb002
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
put
(
HPSB003
.
FIELD_DEVICE_CODE
,
hpsb002
.
getEquipmentCode
());
hpsb002
.
setUpdatedBy
(
null
);
}});
hpsb002
.
setUpdatedTime
(
null
);
if
(
list
.
size
()
>
0
)
{
hpsb002
.
setCompanyCode
(
list
.
get
(
0
).
getCompanyCode
());
}
DaoUtils
.
insert
(
"HPSB002.insert"
,
hpsb002
.
toMap
());
DaoUtils
.
insert
(
"HPSB002.insert"
,
hpsb002
.
toMap
());
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
src/main/java/com/baosight/hpjx/hp/sb/sql/HPSB001.xml
View file @
97317e0e
...
@@ -23,66 +23,16 @@
...
@@ -23,66 +23,16 @@
-->
-->
<sqlMap
namespace=
"HPSB001"
>
<sqlMap
namespace=
"HPSB001"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<sql
id=
"condition"
>
resultClass=
"com.baosight.hpjx.hp.sb.domain.HPSB001"
>
SELECT
ID as "id",
<!-- ID -->
ERROR_CODE as "errorCode",
<!-- 异常编码 -->
PRIO as "prio",
<!-- 异常登记 -->
PROGRAM_NO as "programNo",
<!-- 程序号 -->
ROWNO as "rowno",
<!-- 行号 -->
GOTO_ROW_NONE as "gotoRowNone",
<!-- 不存在跳转行 -->
FILE_NAME as "fileName",
<!-- 文件名 -->
EQUIPMENT_TYPE as "equipmentType",
<!-- 设备状态 -->
EQUIPMENT_CODE as "equipmentCode",
<!-- 设备编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DELETE_FLAG as "deleteFlag"
<!-- 是否删除0.否1.是 -->
FROM hpjx.t_hpsb001 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"c
reatedBy
"
>
<isNotEmpty
prepend=
" AND "
property=
"c
ompanyCode
"
>
C
REATED_BY LIKE CONCAT('%', #createdBy#, '%')
C
OMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"errorCode"
>
<isNotEmpty
prepend=
" AND "
property=
"errorCode"
>
ERROR_CODE LIKE CONCAT('%', #errorCode#, '%')
ERROR_CODE LIKE CONCAT('%', #errorCode#, '%')
</isNotEmpty>
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.t_hpsb001 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY LIKE CONCAT('%', #createdBy#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"errorCode"
>
ERROR_CODE LIKE CONCAT('%', #errorCode#, '%')
</isNotEmpty>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="errorCode">
ERROR_CODE = #errorCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prio"
>
<isNotEmpty
prepend=
" AND "
property=
"prio"
>
PRIO = #prio#
PRIO = #prio#
</isNotEmpty>
</isNotEmpty>
...
@@ -102,7 +52,7 @@
...
@@ -102,7 +52,7 @@
EQUIPMENT_TYPE = #equipmentType#
EQUIPMENT_TYPE = #equipmentType#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"equipmentCode"
>
<isNotEmpty
prepend=
" AND "
property=
"equipmentCode"
>
EQUIPMENT_CODE
= #equipmentCode#
EQUIPMENT_CODE
LIKE CONCAT('%', #equipmentCode#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
CREATED_BY = #createdBy#
...
@@ -125,59 +75,105 @@
...
@@ -125,59 +75,105 @@
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
</isNotEmpty>
-->
<isNotEmpty
prepend=
" AND "
property=
"errorText"
>
ERROR_TEXT = #errorText#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.sb.domain.HPSB001"
>
SELECT
ID as "id",
<!-- ID -->
COMPANY_CODE as "companyCode",
ERROR_CODE as "errorCode",
<!-- 异常编码 -->
PRIO as "prio",
<!-- 异常登记 -->
PROGRAM_NO as "programNo",
<!-- 程序号 -->
ROWNO as "rowno",
<!-- 行号 -->
GOTO_ROW_NONE as "gotoRowNone",
<!-- 不存在跳转行 -->
FILE_NAME as "fileName",
<!-- 文件名 -->
EQUIPMENT_TYPE as "equipmentType",
<!-- 设备状态 -->
EQUIPMENT_CODE as "equipmentCode",
<!-- 设备编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 是否删除0.否1.是 -->
ERROR_TEXT as "errorText"
<!-- 异常文本 -->
FROM ${hpjxSchema}.T_HPSB001 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME DESC
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPSB001 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpsb001 (ID,
<!-- ID -->
INSERT INTO ${hpjxSchema}.T_HPSB001 (ID,
<!-- ID -->
ERROR_CODE,
<!-- 异常编码 -->
COMPANY_CODE,
PRIO,
<!-- 异常登记 -->
ERROR_CODE,
<!-- 异常编码 -->
PROGRAM_NO,
<!-- 程序号 -->
PRIO,
<!-- 异常登记 -->
ROWNO,
<!-- 行号 -->
PROGRAM_NO,
<!-- 程序号 -->
GOTO_ROW_NONE,
<!-- 不存在跳转行 -->
ROWNO,
<!-- 行号 -->
FILE_NAME,
<!-- 文件名 -->
GOTO_ROW_NONE,
<!-- 不存在跳转行 -->
EQUIPMENT_TYPE,
<!-- 设备状态 -->
FILE_NAME,
<!-- 文件名 -->
EQUIPMENT_CODE,
<!-- 设备编码 -->
EQUIPMENT_TYPE,
<!-- 设备状态 -->
CREATED_BY,
<!-- 创建人 -->
EQUIPMENT_CODE,
<!-- 设备编码 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
CREATED_NAME,
<!-- 创建人名称 -->
UPDATED_BY,
<!-- 更新人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_NAME,
<!-- 更新人名称 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME,
<!-- 更新时间 -->
UPDATED_NAME,
<!-- 更新人名称 -->
DELETE_FLAG
<!-- 是否删除0.否1.是 -->
UPDATED_TIME,
<!-- 更新时间 -->
)
DELETE_FLAG,
<!-- 是否删除0.否1.是 -->
VALUES (#id#, #errorCode#, #prio#, #programNo#, #rowno#, #gotoRowNone#, #fileName#, #equipmentType#, #equipmentCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#)
ERROR_TEXT
<!-- 异常文本 -->
)
VALUES (#id#, #companyCode#, #errorCode#, #prio#, #programNo#, #rowno#, #gotoRowNone#, #fileName#, #equipmentType#, #equipmentCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #errorText#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE FROM
hpjx.t_hpsb001 WHERE
DELETE FROM
${hpjxSchema}.T_HPSB001 WHERE
ID = #id#
ID = #id#
</delete>
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.T_HPSB001
SET
COMPANY_CODE = #companyCode#,
ERROR_CODE = #errorCode#,
<!-- 异常编码 -->
PRIO = #prio#,
<!-- 异常登记 -->
PROGRAM_NO = #programNo#,
<!-- 程序号 -->
ROWNO = #rowno#,
<!-- 行号 -->
GOTO_ROW_NONE = #gotoRowNone#,
<!-- 不存在跳转行 -->
FILE_NAME = #fileName#,
<!-- 文件名 -->
EQUIPMENT_TYPE = #equipmentType#,
<!-- 设备状态 -->
EQUIPMENT_CODE = #equipmentCode#,
<!-- 设备编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 是否删除0.否1.是 -->
ERROR_TEXT = #errorText#
<!-- 异常文本 -->
WHERE
ID = #id#
</update>
<delete
id=
"deleteByCreatedTime"
>
<delete
id=
"deleteByCreatedTime"
>
DELETE FROM hpjx.t_hpsb001 WHERE
DELETE FROM hpjx.t_hpsb001 WHERE
SUBSTR(CREATED_TIME,1,8)
<
DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 30 day),'%Y%m%d')
SUBSTR(CREATED_TIME,1,8)
<
DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 30 day),'%Y%m%d')
</delete>
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hpsb001
SET
ERROR_CODE = #errorCode#,
<!-- 异常编码 -->
PRIO = #prio#,
<!-- 异常登记 -->
PROGRAM_NO = #programNo#,
<!-- 程序号 -->
ROWNO = #rowno#,
<!-- 行号 -->
GOTO_ROW_NONE = #gotoRowNone#,
<!-- 不存在跳转行 -->
FILE_NAME = #fileName#,
<!-- 文件名 -->
EQUIPMENT_TYPE = #equipmentType#,
<!-- 设备状态 -->
EQUIPMENT_CODE = #equipmentCode#,
<!-- 设备编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#
<!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
</sqlMap>
</sqlMap>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sb/sql/HPSB002.xml
View file @
97317e0e
...
@@ -19,53 +19,93 @@
...
@@ -19,53 +19,93 @@
-->
-->
<sqlMap
namespace=
"HPSB002"
>
<sqlMap
namespace=
"HPSB002"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<sql
id=
"condition"
>
resultClass=
"com.baosight.hpjx.hp.sb.domain.HPSB002"
>
SELECT
ID as "id",
<!-- ID -->
FILE_NAME as "fileName",
<!-- 文件名 -->
EQUIPMENT_TYPE as "equipmentType",
<!-- 设备状态 -->
EQUIPMENT_CODE as "equipmentCode",
<!-- 设备编码 -->
LOG_VALUE as "logValue",
<!-- 日志类容 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DELETE_FLAG as "deleteFlag"
<!-- 是否删除0.否1.是 -->
FROM hpjx.t_hpsb002 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"fileName"
>
FILE_NAME = #fileName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"equipmentType"
>
EQUIPMENT_TYPE = #equipmentType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"equipmentCode"
>
EQUIPMENT_CODE LIKE CONCAT('%', #equipmentCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logInivalue"
>
LOG_INIVALUE = #logInivalue#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValue"
>
LOG_VALUE = #logValue#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY LIKE CONCAT('%', #createdBy#, '%')
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.sb.domain.HPSB002"
>
SELECT
ID as "id",
<!-- ID -->
COMPANY_CODE as "companyCode",
FILE_NAME as "fileName",
<!-- 文件名 -->
EQUIPMENT_TYPE as "equipmentType",
<!-- 设备状态 -->
EQUIPMENT_CODE as "equipmentCode",
<!-- 设备编码 -->
LOG_INIVALUE as "logInivalue",
<!-- 初始类容 -->
LOG_VALUE as "logValue",
<!-- 日志类容 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DELETE_FLAG as "deleteFlag"
<!-- 是否删除0.否1.是 -->
FROM ${hpjxSchema}.T_HPSB002 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
CREATED_TIME desc
CREATED_TIME DESC
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.t_hpsb002 WHERE 1=1
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPSB002 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<include
refid=
"condition"
/>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY LIKE CONCAT('%', #createdBy#, '%')
</isNotEmpty>
</select>
</select>
<!--
<!--
<isNotEmpty prepend=" AND " property="id">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="fileName">
<isNotEmpty prepend=" AND " property="fileName">
FILE_NAME = #fileName#
FILE_NAME = #fileName#
</isNotEmpty>
</isNotEmpty>
...
@@ -75,6 +115,9 @@
...
@@ -75,6 +115,9 @@
<isNotEmpty prepend=" AND " property="equipmentCode">
<isNotEmpty prepend=" AND " property="equipmentCode">
EQUIPMENT_CODE = #equipmentCode#
EQUIPMENT_CODE = #equipmentCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="logInivalue">
LOG_INIVALUE = #logInivalue#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="logValue">
<isNotEmpty prepend=" AND " property="logValue">
LOG_VALUE = #logValue#
LOG_VALUE = #logValue#
</isNotEmpty>
</isNotEmpty>
...
@@ -102,48 +145,53 @@
...
@@ -102,48 +145,53 @@
-->
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpsb002 (ID,
<!-- ID -->
INSERT INTO ${hpjxSchema}.T_HPSB002 (ID,
<!-- ID -->
FILE_NAME,
<!-- 文件名 -->
COMPANY_CODE,
EQUIPMENT_TYPE,
<!-- 设备状态 -->
FILE_NAME,
<!-- 文件名 -->
EQUIPMENT_CODE,
<!-- 设备编码 -->
EQUIPMENT_TYPE,
<!-- 设备状态 -->
LOG_VALUE,
<!-- 日志类容 -->
EQUIPMENT_CODE,
<!-- 设备编码 -->
CREATED_BY,
<!-- 创建人 -->
LOG_INIVALUE,
<!-- 初始类容 -->
CREATED_NAME,
<!-- 创建人名称 -->
LOG_VALUE,
<!-- 日志类容 -->
CREATED_TIME,
<!-- 创建时间 -->
CREATED_BY,
<!-- 创建人 -->
UPDATED_BY,
<!-- 更新人 -->
CREATED_NAME,
<!-- 创建人名称 -->
UPDATED_NAME,
<!-- 更新人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_TIME,
<!-- 更新时间 -->
UPDATED_BY,
<!-- 更新人 -->
DELETE_FLAG
<!-- 是否删除0.否1.是 -->
UPDATED_NAME,
<!-- 更新人名称 -->
)
UPDATED_TIME,
<!-- 更新时间 -->
VALUES (#id#, #fileName#, #equipmentType#, #equipmentCode#, #logValue#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#)
DELETE_FLAG
<!-- 是否删除0.否1.是 -->
)
VALUES (#id#, #companyCode#, #fileName#, #equipmentType#, #equipmentCode#, #logInivalue#, #logValue#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE FROM
hpjx.t_hpsb002 WHERE
DELETE FROM
${hpjxSchema}.T_HPSB002 WHERE
ID = #id#
ID = #id#
</delete>
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.T_HPSB002
SET
COMPANY_CODE = #companyCode#,
FILE_NAME = #fileName#,
<!-- 文件名 -->
EQUIPMENT_TYPE = #equipmentType#,
<!-- 设备状态 -->
EQUIPMENT_CODE = #equipmentCode#,
<!-- 设备编码 -->
LOG_INIVALUE = #logInivalue#,
<!-- 初始类容 -->
LOG_VALUE = #logValue#,
<!-- 日志类容 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#
<!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
<delete
id=
"deleteByCreatedTime"
>
<delete
id=
"deleteByCreatedTime"
>
DELETE FROM hpjx.t_hpsb002 WHERE
DELETE FROM hpjx.t_hpsb002 WHERE
SUBSTR(CREATED_TIME,1,8)
<
DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 30 day),'%Y%m%d')
SUBSTR(CREATED_TIME,1,8)
<
DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 30 day),'%Y%m%d')
</delete>
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hpsb002
SET
FILE_NAME = #fileName#,
<!-- 文件名 -->
EQUIPMENT_TYPE = #equipmentType#,
<!-- 设备状态 -->
EQUIPMENT_CODE = #equipmentCode#,
<!-- 设备编码 -->
LOG_VALUE = #logValue#,
<!-- 日志类容 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#
<!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
</sqlMap>
</sqlMap>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sb/sql/HPSB003.xml
View file @
97317e0e
...
@@ -377,4 +377,13 @@
...
@@ -377,4 +377,13 @@
</isNotEmpty>-->
</isNotEmpty>-->
</select>
</select>
<select
id=
"queryDeviceCode"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select distinct
DEVICE_NAME as "deviceName",
<!-- 设备名称 -->
DEVICE_CODE as "deviceCode"
<!-- 设备编码 -->
FROM ${hpjxSchema}.T_HPSB003
WHERE 1=1
<include
refid=
"condition"
/>
</select>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/tc/service/ServiceHPTCP001.java
View file @
97317e0e
package
com
.
baosight
.
hpjx
.
hp
.
tc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
tc
.
service
;
import
com.baosight.hpjx.common.HPConstants
;
import
com.baosight.hpjx.common.HPConstants
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarStatus
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarStatus
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarTime
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarTime
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarWarning
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarWarning
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarWarningBase
;
import
com.baosight.hpjx.equipment.hp.domain.CutterbarWarningBase
;
import
com.baosight.hpjx.hp.sb.domain.HPSB001
;
import
com.baosight.hpjx.hp.sb.domain.HPSB001
;
import
com.baosight.hpjx.hp.sb.domain.HPSB002
;
import
com.baosight.hpjx.hp.sb.domain.HPSB002
;
import
com.baosight.hpjx.hp.sb.domain.HPSB003
;
import
com.baosight.hpjx.hp.sb.domain.HPSB00A
;
import
com.baosight.hpjx.hp.sb.domain.HPSB00A
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.StringUtils
;
import
com.baosight.hpjx.util.StringUtils
;
...
@@ -17,6 +19,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
...
@@ -17,6 +19,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
public
class
ServiceHPTCP001
extends
ServiceBase
{
public
class
ServiceHPTCP001
extends
ServiceBase
{
...
@@ -36,15 +39,23 @@ public class ServiceHPTCP001 extends ServiceBase {
...
@@ -36,15 +39,23 @@ public class ServiceHPTCP001 extends ServiceBase {
hpsb00A
.
setDataContent
(
dataContent
);
hpsb00A
.
setDataContent
(
dataContent
);
hpsb00A
.
setEquipmentType
(
equipmentType
);
hpsb00A
.
setEquipmentType
(
equipmentType
);
hpsb00A
.
setEquipmentCode
(
equipmentCode
);
hpsb00A
.
setEquipmentCode
(
equipmentCode
);
List
<
HPSB003
>
list
=
this
.
dao
.
query
(
HPSB003
.
QUERY
,
new
HashMap
<
String
,
Object
>(){{
put
(
HPSB003
.
FIELD_DEVICE_CODE
,
equipmentCode
);
put
(
HPSB003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
}});
if
(
list
.
size
()
>
0
)
{
hpsb001
.
setCompanyCode
(
list
.
get
(
0
).
getCompanyCode
());
hpsb002
.
setCompanyCode
(
list
.
get
(
0
).
getCompanyCode
());
}
if
(
StringUtils
.
isNotEmpty
(
equipmentType
))
{
if
(
StringUtils
.
isNotEmpty
(
equipmentType
))
{
if
(
equipmentType
.
equals
(
HPConstants
.
STARUS_TYPE
))
{
if
(
equipmentType
.
equals
(
HPConstants
.
STARUS_TYPE
))
{
//解析设备状态
//解析设备状态
List
<
CutterbarStatus
>
cutterbarStatusList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarStatus
.
class
);
List
<
CutterbarStatus
>
cutterbarStatusList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarStatus
.
class
);
hpsb002
.
setId
(
StringUtils
.
uuid
());
//
hpsb002.setId(StringUtils.uuid());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setLogValue
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
());
hpsb002
.
setLogValue
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
());
hpsb002
.
setLogInivalue
(
formatStatus
(
cutterbarStatusList
.
get
(
0
).
getStatus
().
toString
()));
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
...
@@ -55,10 +66,11 @@ public class ServiceHPTCP001 extends ServiceBase {
...
@@ -55,10 +66,11 @@ public class ServiceHPTCP001 extends ServiceBase {
if
(
equipmentType
.
equals
(
HPConstants
.
TIME_TYPE
))
{
if
(
equipmentType
.
equals
(
HPConstants
.
TIME_TYPE
))
{
//解析开机时间
//解析开机时间
List
<
CutterbarTime
>
cutterbarTimeList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarTime
.
class
);
List
<
CutterbarTime
>
cutterbarTimeList
=
XmlUtils
.
readXml
(
hpsb00A
.
getDataContent
(),
CutterbarTime
.
class
);
hpsb002
.
setId
(
StringUtils
.
uuid
());
//
hpsb002.setId(StringUtils.uuid());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb002
.
setLogValue
(
cutterbarTimeList
.
get
(
0
).
getTime
());
hpsb002
.
setLogValue
(
cutterbarTimeList
.
get
(
0
).
getTime
());
hpsb002
.
setLogInivalue
(
String
.
format
(
"开机启动时间[%s]"
,
cutterbarTimeList
.
get
(
0
).
getTime
()));
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedBy
(
"自动化中转程序"
);
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
hpsb002
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
this
.
dao
.
insert
(
"HPSB002.insert"
,
hpsb002
);
...
@@ -73,7 +85,7 @@ public class ServiceHPTCP001 extends ServiceBase {
...
@@ -73,7 +85,7 @@ public class ServiceHPTCP001 extends ServiceBase {
if
(
CollectionUtils
.
isNotEmpty
(
cutterbarWarningBaseList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
cutterbarWarningBaseList
))
{
cutterbarWarning
=
CutterbarWarning
.
convertBase
(
cutterbarWarningBaseList
.
get
(
0
));
cutterbarWarning
=
CutterbarWarning
.
convertBase
(
cutterbarWarningBaseList
.
get
(
0
));
}
}
hpsb001
.
setId
(
StringUtils
.
uuid
());
//
hpsb001.setId(StringUtils.uuid());
hpsb001
.
setErrorCode
(
cutterbarWarning
.
getErrorCode
());
hpsb001
.
setErrorCode
(
cutterbarWarning
.
getErrorCode
());
hpsb001
.
setPrio
(
cutterbarWarning
.
getPrio
());
hpsb001
.
setPrio
(
cutterbarWarning
.
getPrio
());
hpsb001
.
setProgramNo
(
cutterbarWarning
.
getProgramNo
());
hpsb001
.
setProgramNo
(
cutterbarWarning
.
getProgramNo
());
...
@@ -82,9 +94,18 @@ public class ServiceHPTCP001 extends ServiceBase {
...
@@ -82,9 +94,18 @@ public class ServiceHPTCP001 extends ServiceBase {
hpsb001
.
setFileName
(
cutterbarWarning
.
getFileName
());
hpsb001
.
setFileName
(
cutterbarWarning
.
getFileName
());
hpsb001
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb001
.
setEquipmentCode
(
hpsb00A
.
getEquipmentCode
());
hpsb001
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
hpsb001
.
setEquipmentType
(
hpsb00A
.
getEquipmentType
());
Integer
errorCode
=
Integer
.
parseInt
(
cutterbarWarning
.
getErrorCode
());
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
()));
}
else
if
(
errorCode
.
compareTo
(
new
Integer
(
300
))>=
0
&&
errorCode
.
compareTo
(
new
Integer
(
399
))<=
0
){
hpsb001
.
setErrorText
(
String
.
format
(
" (文件:%s,行号 %s)括号不匹配"
,
cutterbarWarning
.
getFileName
(),
cutterbarWarning
.
getRowNo
()));
}
hpsb001
.
setCreatedBy
(
"自动化中转程序"
);
hpsb001
.
setCreatedBy
(
"自动化中转程序"
);
hpsb001
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
hpsb001
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
this
.
dao
.
insert
(
"HPSB001.insert"
,
hpsb00
2
);
this
.
dao
.
insert
(
"HPSB001.insert"
,
hpsb00
1
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
outInfo
.
getMsg
());
inInfo
.
setMsg
(
outInfo
.
getMsg
());
return
inInfo
;
return
inInfo
;
...
@@ -95,4 +116,28 @@ public class ServiceHPTCP001 extends ServiceBase {
...
@@ -95,4 +116,28 @@ public class ServiceHPTCP001 extends ServiceBase {
return
inInfo
;
return
inInfo
;
}
}
public
String
formatStatus
(
String
status
){
String
str
=
""
;
switch
(
status
){
case
"2"
:
str
=
"运行状态"
;
break
;
case
"3"
:
str
=
"暂停状态"
;
break
;
case
"4"
:
str
=
"复位状态"
;
break
;
case
"5"
:
str
=
"一级报警状态"
;
break
;
case
"6"
:
str
=
"二级报警状态"
;
break
;
default
:
str
=
"默认状态"
;
}
return
str
;
}
}
}
src/main/webapp/HP/SB/HPSB001.jsp
View file @
97317e0e
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"
操作人"
ename=
"inqu_status-0-createdBy
"
colWidth=
"3"
/>
<EF:EFInput
cname=
"
设备编码"
ename=
"inqu_status-0-equipmentCode
"
colWidth=
"3"
/>
<EF:EFInput
cname=
"异常编码"
ename=
"inqu_status-0-errorCode"
colWidth=
"3"
/>
<EF:EFInput
cname=
"异常编码"
ename=
"inqu_status-0-errorCode"
colWidth=
"3"
/>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -17,16 +17,24 @@
...
@@ -17,16 +17,24 @@
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"主键id"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键id"
hidden=
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"操作人"
enable=
"false"
readonly=
"true"
width=
"150"
align=
"center"
/>
<
%
--
<
EF:EFColumn
ename=
"createdBy"
cname=
"操作人"
enable=
"false"
readonly=
"true"
width=
"150"
align=
"center"
/>
--%>
<EF:EFColumn
ename=
"errorCode"
cname=
"异常编码"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"equipmentType"
cname=
"日志类型"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
>
<EF:EFColumn
ename=
"programNo"
cname=
"程序号"
enable=
"false"
readonly=
"true"
width=
"80"
align=
"center"
/>
<EF:EFOption
label=
""
value=
""
/>
<EF:EFColumn
ename=
"equipmentType"
cname=
"设备状态"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFOption
label=
"异常报警"
value=
"WARNING_TYPE"
/>
<EF:EFColumn
ename=
"equipmentCode"
cname=
"设备编码"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"prio"
cname=
"数据内容"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"equipmentCode"
cname=
"设备编码"
blockName=
"deviceCode_block_id"
<EF:EFColumn
ename=
"rowno"
cname=
"行号"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
columnTemplate=
"#=valueField#-#=textField#"
itemTemplate=
"#=valueField#-#=textField#"
<EF:EFColumn
ename=
"gotoRowNone"
cname=
"不存在跳转行"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
textField=
"#=textField#"
valueField=
"valueField"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"errorCode"
cname=
"异常编码"
enable=
"false"
readonly=
"true"
width=
"40"
align=
"center"
/>
<EF:EFColumn
ename=
"programNo"
cname=
"程序号"
enable=
"false"
readonly=
"true"
width=
"40"
align=
"center"
/>
<EF:EFColumn
ename=
"prio"
cname=
"数据内容"
enable=
"false"
readonly=
"true"
width=
"40"
align=
"center"
/>
<EF:EFColumn
ename=
"rowno"
cname=
"行号"
enable=
"false"
readonly=
"true"
width=
"30"
align=
"center"
/>
<EF:EFColumn
ename=
"gotoRowNone"
cname=
"不存在跳转行"
enable=
"false"
readonly=
"true"
width=
"50"
align=
"center"
/>
<EF:EFColumn
ename=
"fileName"
cname=
"文件名"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"fileName"
cname=
"文件名"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
readonly=
"true"
width=
"120"
align=
"center"
<EF:EFColumn
ename=
"errorText"
cname=
"异常文本"
width=
"150"
readonly=
"true"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HP/SB/HPSB002.jsp
View file @
97317e0e
...
@@ -9,17 +9,25 @@
...
@@ -9,17 +9,25 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"
操作人"
ename=
"inqu_status-0-createdBy
"
colWidth=
"3"
/>
<EF:EFInput
cname=
"
设备编码"
ename=
"inqu_status-0-equipmentCode
"
colWidth=
"3"
/>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"主键id"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键id"
hidden=
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"操作人"
enable=
"false"
readonly=
"true"
width=
"150"
align=
"center"
/>
<
%
--
<
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:EFColumn
ename=
"equipmentType"
cname=
"日志类型"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"equipmentCode"
cname=
"设备编码"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"equipmentType"
cname=
"日志类型"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
>
<EF:EFColumn
ename=
"logValue"
cname=
"数据内容"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFOption
label=
"设备状态"
value=
"STARUS_TYPE"
/>
<EF:EFOption
label=
"开机时间"
value=
"TIME_TYPE"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"equipmentCode"
cname=
"设备编码"
blockName=
"deviceCode_block_id"
columnTemplate=
"#=valueField#-#=textField#"
itemTemplate=
"#=valueField#-#=textField#"
textField=
"#=textField#"
valueField=
"valueField"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"logInivalue"
cname=
"数据内容"
enable=
"false"
readonly=
"true"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
readonly=
"true"
width=
"120"
align=
"center"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
readonly=
"true"
width=
"120"
align=
"center"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
</EF:EFGrid>
</EF:EFGrid>
...
@@ -29,6 +37,4 @@
...
@@ -29,6 +37,4 @@
<script>
<script>
var
ctx
=
"${ctx}"
;
var
ctx
=
"${ctx}"
;
</script>
</script>
<script
src=
"${ctx}/HP/SB/HPSB002.js"
></script>
<script
src=
"${ctx}/HP/SB/HPSB002.js"
></script>
\ No newline at end of file
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