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
b87f8c41
Commit
b87f8c41
authored
Oct 08, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆维保,会议室管理功能开发
parent
51684653
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1639 additions
and
9 deletions
+1639
-9
HPXT003.java
src/main/java/com/baosight/hpjx/hp/xt/domain/HPXT003.java
+500
-0
HPXT004.java
src/main/java/com/baosight/hpjx/hp/xt/domain/HPXT004.java
+599
-0
ServiceHPXT001.java
.../java/com/baosight/hpjx/hp/xt/service/ServiceHPXT001.java
+1
-9
HPXT003.xml
src/main/java/com/baosight/hpjx/hp/xt/sql/HPXT003.xml
+234
-0
HPXT004.xml
src/main/java/com/baosight/hpjx/hp/xt/sql/HPXT004.xml
+305
-0
No files found.
src/main/java/com/baosight/hpjx/hp/xt/domain/HPXT003.java
0 → 100644
View file @
b87f8c41
package
com
.
baosight
.
hpjx
.
hp
.
xt
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:HPXT003.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-10-06 15:42:22 create
*/
public
class
HPXT003
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键id*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码 预留*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 更新人*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 更新人名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 更新时间*/
public
static
final
String
FIELD_MAINTENANCE_DATE
=
"maintenanceDate"
;
/* 维护日期*/
public
static
final
String
FIELD_MAINTENANCE_NUMBER
=
"maintenanceNumber"
;
/* 维保单号*/
public
static
final
String
FIELD_MAINTENANCE_TYPE
=
"maintenanceType"
;
/* 维保类型*/
public
static
final
String
FIELD_LICENSE_PLATE
=
"licensePlate"
;
/* 车牌号*/
public
static
final
String
FIELD_HANDLER
=
"handler"
;
/* 经办人*/
public
static
final
String
FIELD_MAINTENANCE_COST
=
"maintenanceCost"
;
/* 维保费用*/
public
static
final
String
FIELD_MAINTENANCE_REASON
=
"maintenanceReason"
;
/* 维保原因*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 删除标记*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码 预留*/
public
static
final
String
COL_DEP_CODE
=
"DEP_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_MAINTENANCE_DATE
=
"MAINTENANCE_DATE"
;
/* 维护日期*/
public
static
final
String
COL_MAINTENANCE_NUMBER
=
"MAINTENANCE_NUMBER"
;
/* 维保单号*/
public
static
final
String
COL_MAINTENANCE_TYPE
=
"MAINTENANCE_TYPE"
;
/* 维保类型*/
public
static
final
String
COL_LICENSE_PLATE
=
"LICENSE_PLATE"
;
/* 车牌号*/
public
static
final
String
COL_HANDLER
=
"HANDLER"
;
/* 经办人*/
public
static
final
String
COL_MAINTENANCE_COST
=
"MAINTENANCE_COST"
;
/* 维保费用*/
public
static
final
String
COL_MAINTENANCE_REASON
=
"MAINTENANCE_REASON"
;
/* 维保原因*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 删除标记*/
public
static
final
String
QUERY
=
"HPXT003.query"
;
public
static
final
String
COUNT
=
"HPXT003.count"
;
public
static
final
String
INSERT
=
"HPXT003.insert"
;
public
static
final
String
UPDATE
=
"HPXT003.update"
;
public
static
final
String
DELETE
=
"HPXT003.delete"
;
public
static
final
String
DELETE_FLAG
=
"HPXT003.deleteFlag"
;
private
Long
id
=
new
Long
(
0
);
/* 主键id*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
maintenanceDate
=
" "
;
/* 维护日期*/
private
String
maintenanceNumber
=
" "
;
/* 维保单号*/
private
Integer
maintenanceType
=
0
;
/* 维保类型*/
private
String
licensePlate
=
" "
;
/* 车牌号*/
private
String
handler
=
" "
;
/* 经办人*/
private
BigDecimal
maintenanceCost
=
new
BigDecimal
(
"0"
);
/* 维保费用*/
private
String
maintenanceReason
=
" "
;
/* 维保原因*/
private
Integer
deleteFlag
=
0
;
/* 删除标记*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"主键id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"企业编码 预留"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"更新人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAINTENANCE_DATE
);
eiColumn
.
setDescName
(
"维护日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAINTENANCE_NUMBER
);
eiColumn
.
setDescName
(
"维保单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAINTENANCE_TYPE
);
eiColumn
.
setDescName
(
"维保类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_LICENSE_PLATE
);
eiColumn
.
setDescName
(
"车牌号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_HANDLER
);
eiColumn
.
setDescName
(
"经办人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAINTENANCE_COST
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"维保费用"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAINTENANCE_REASON
);
eiColumn
.
setDescName
(
"维保原因"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"删除标记"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPXT003
()
{
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
;
}
/**
* get the companyCode - 企业编码 预留.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码 预留.
*
* @param companyCode - 企业编码 预留
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 更新人.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 更新人.
*
* @param updatedBy - 更新人
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 更新人名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 更新人名称.
*
* @param updatedName - 更新人名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 更新时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 更新时间.
*
* @param updatedTime - 更新时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the maintenanceDate - 维护日期.
* @return the maintenanceDate
*/
public
String
getMaintenanceDate
()
{
return
this
.
maintenanceDate
;
}
/**
* set the maintenanceDate - 维护日期.
*
* @param maintenanceDate - 维护日期
*/
public
void
setMaintenanceDate
(
String
maintenanceDate
)
{
this
.
maintenanceDate
=
maintenanceDate
;
}
/**
* get the maintenanceNumber - 维保单号.
* @return the maintenanceNumber
*/
public
String
getMaintenanceNumber
()
{
return
this
.
maintenanceNumber
;
}
/**
* set the maintenanceNumber - 维保单号.
*
* @param maintenanceNumber - 维保单号
*/
public
void
setMaintenanceNumber
(
String
maintenanceNumber
)
{
this
.
maintenanceNumber
=
maintenanceNumber
;
}
/**
* get the maintenanceType - 维保类型.
* @return the maintenanceType
*/
public
Integer
getMaintenanceType
()
{
return
this
.
maintenanceType
;
}
/**
* set the maintenanceType - 维保类型.
*
* @param maintenanceType - 维保类型
*/
public
void
setMaintenanceType
(
Integer
maintenanceType
)
{
this
.
maintenanceType
=
maintenanceType
;
}
/**
* get the licensePlate - 车牌号.
* @return the licensePlate
*/
public
String
getLicensePlate
()
{
return
this
.
licensePlate
;
}
/**
* set the licensePlate - 车牌号.
*
* @param licensePlate - 车牌号
*/
public
void
setLicensePlate
(
String
licensePlate
)
{
this
.
licensePlate
=
licensePlate
;
}
/**
* get the handler - 经办人.
* @return the handler
*/
public
String
getHandler
()
{
return
this
.
handler
;
}
/**
* set the handler - 经办人.
*
* @param handler - 经办人
*/
public
void
setHandler
(
String
handler
)
{
this
.
handler
=
handler
;
}
/**
* get the maintenanceCost - 维保费用.
* @return the maintenanceCost
*/
public
BigDecimal
getMaintenanceCost
()
{
return
this
.
maintenanceCost
;
}
/**
* set the maintenanceCost - 维保费用.
*
* @param maintenanceCost - 维保费用
*/
public
void
setMaintenanceCost
(
BigDecimal
maintenanceCost
)
{
this
.
maintenanceCost
=
maintenanceCost
;
}
/**
* get the maintenanceReason - 维保原因.
* @return the maintenanceReason
*/
public
String
getMaintenanceReason
()
{
return
this
.
maintenanceReason
;
}
/**
* set the maintenanceReason - 维保原因.
*
* @param maintenanceReason - 维保原因
*/
public
void
setMaintenanceReason
(
String
maintenanceReason
)
{
this
.
maintenanceReason
=
maintenanceReason
;
}
/**
* get the deleteFlag - 删除标记.
* @return the deleteFlag
*/
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
}
/**
* set the deleteFlag - 删除标记.
*
* @param deleteFlag - 删除标记
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
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
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setMaintenanceDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAINTENANCE_DATE
)),
maintenanceDate
));
setMaintenanceNumber
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAINTENANCE_NUMBER
)),
maintenanceNumber
));
setMaintenanceType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAINTENANCE_TYPE
)),
maintenanceType
));
setLicensePlate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LICENSE_PLATE
)),
licensePlate
));
setHandler
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_HANDLER
)),
handler
));
setMaintenanceCost
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAINTENANCE_COST
)),
maintenanceCost
));
setMaintenanceReason
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAINTENANCE_REASON
)),
maintenanceReason
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
}
/**
* set the value to 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_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_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_MAINTENANCE_DATE
,
StringUtils
.
toString
(
maintenanceDate
,
eiMetadata
.
getMeta
(
FIELD_MAINTENANCE_DATE
)));
map
.
put
(
FIELD_MAINTENANCE_NUMBER
,
StringUtils
.
toString
(
maintenanceNumber
,
eiMetadata
.
getMeta
(
FIELD_MAINTENANCE_NUMBER
)));
map
.
put
(
FIELD_MAINTENANCE_TYPE
,
StringUtils
.
toString
(
maintenanceType
,
eiMetadata
.
getMeta
(
FIELD_MAINTENANCE_TYPE
)));
map
.
put
(
FIELD_LICENSE_PLATE
,
StringUtils
.
toString
(
licensePlate
,
eiMetadata
.
getMeta
(
FIELD_LICENSE_PLATE
)));
map
.
put
(
FIELD_HANDLER
,
StringUtils
.
toString
(
handler
,
eiMetadata
.
getMeta
(
FIELD_HANDLER
)));
map
.
put
(
FIELD_MAINTENANCE_COST
,
StringUtils
.
toString
(
maintenanceCost
,
eiMetadata
.
getMeta
(
FIELD_MAINTENANCE_COST
)));
map
.
put
(
FIELD_MAINTENANCE_REASON
,
StringUtils
.
toString
(
maintenanceReason
,
eiMetadata
.
getMeta
(
FIELD_MAINTENANCE_REASON
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/xt/domain/HPXT004.java
0 → 100644
View file @
b87f8c41
package
com
.
baosight
.
hpjx
.
hp
.
xt
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:HPXT004.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-10-06 16:55:04 create
*/
public
class
HPXT004
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键id*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码 预留*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 更新人*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 更新人名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 更新时间*/
public
static
final
String
FIELD_APPLY_DATE
=
"applyDate"
;
/* 申请日期*/
public
static
final
String
FIELD_APPLY_NO
=
"applyNo"
;
/* 申请单号*/
public
static
final
String
FIELD_APPLY_PERSONNEL
=
"applyPersonnel"
;
/* 申请人*/
public
static
final
String
FIELD_MEETING_ROOM
=
"meetingRoom"
;
/* 会议室*/
public
static
final
String
FIELD_MEETING_SUBJECT
=
"meetingSubject"
;
/* 会议主题*/
public
static
final
String
FIELD_MEETING_NATURE
=
"meetingNature"
;
/* 会议性质*/
public
static
final
String
FIELD_IMPORTANCE_LEVEL
=
"importanceLevel"
;
/* 重要程度*/
public
static
final
String
FIELD_START_TIME
=
"startTime"
;
/* 开始时间*/
public
static
final
String
FIELD_END_TIME
=
"endTime"
;
/* 结束时间*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 是否删除0.否1.是*/
public
static
final
String
FIELD_PRO_APPLY_STATUS
=
"proApplyStatus"
;
/* 审批状态 0-未提交 1-已提交*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 返还状态 0-未返还 1-已返还*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码 预留*/
public
static
final
String
COL_DEP_CODE
=
"DEP_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_APPLY_DATE
=
"APPLY_DATE"
;
/* 申请日期*/
public
static
final
String
COL_APPLY_NO
=
"APPLY_NO"
;
/* 申请单号*/
public
static
final
String
COL_APPLY_PERSONNEL
=
"APPLY_PERSONNEL"
;
/* 申请人*/
public
static
final
String
COL_MEETING_ROOM
=
"MEETING_ROOM"
;
/* 会议室*/
public
static
final
String
COL_MEETING_SUBJECT
=
"MEETING_SUBJECT"
;
/* 会议主题*/
public
static
final
String
COL_MEETING_NATURE
=
"MEETING_NATURE"
;
/* 会议性质*/
public
static
final
String
COL_IMPORTANCE_LEVEL
=
"IMPORTANCE_LEVEL"
;
/* 重要程度*/
public
static
final
String
COL_START_TIME
=
"START_TIME"
;
/* 开始时间*/
public
static
final
String
COL_END_TIME
=
"END_TIME"
;
/* 结束时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除0.否1.是*/
public
static
final
String
COL_PRO_APPLY_STATUS
=
"PRO_APPLY_STATUS"
;
/* 审批状态 0-未提交 1-已提交*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 返还状态 0-未返还 1-已返还*/
public
static
final
String
QUERY
=
"HPXT004.query"
;
public
static
final
String
COUNT
=
"HPXT004.count"
;
public
static
final
String
INSERT
=
"HPXT004.insert"
;
public
static
final
String
UPDATE
=
"HPXT004.update"
;
public
static
final
String
DELETE
=
"HPXT004.delete"
;
public
static
final
String
DELETE_FLAG
=
"HPXT004.deleteFlag"
;
public
static
final
String
UPDATE_STATUS
=
"HPXT004.updateStatus"
;
public
static
final
String
UPDATE_PRO_APPLY_STATUS
=
"HPXT004.updateProApplyStatus"
;
private
Long
id
=
new
Long
(
0
);
/* 主键id*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
applyDate
=
" "
;
/* 申请日期*/
private
String
applyNo
=
" "
;
/* 申请单号*/
private
String
applyPersonnel
=
" "
;
/* 申请人*/
private
String
meetingRoom
=
" "
;
/* 会议室*/
private
String
meetingSubject
=
" "
;
/* 会议主题*/
private
String
meetingNature
=
" "
;
/* 会议性质*/
private
String
importanceLevel
=
" "
;
/* 重要程度*/
private
String
startTime
=
" "
;
/* 开始时间*/
private
String
endTime
=
" "
;
/* 结束时间*/
private
Integer
deleteFlag
=
0
;
/* 是否删除0.否1.是*/
private
Integer
proApplyStatus
=
0
;
/* 审批状态 0-未提交 1-已提交*/
private
Integer
status
=
0
;
/* 返还状态 0-未返还 1-已返还*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"主键id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"企业编码 预留"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"更新人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_DATE
);
eiColumn
.
setDescName
(
"申请日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_NO
);
eiColumn
.
setDescName
(
"申请单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_PERSONNEL
);
eiColumn
.
setDescName
(
"申请人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MEETING_ROOM
);
eiColumn
.
setDescName
(
"会议室"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MEETING_SUBJECT
);
eiColumn
.
setDescName
(
"会议主题"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MEETING_NATURE
);
eiColumn
.
setDescName
(
"会议性质"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_IMPORTANCE_LEVEL
);
eiColumn
.
setDescName
(
"重要程度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_START_TIME
);
eiColumn
.
setDescName
(
"开始时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_END_TIME
);
eiColumn
.
setDescName
(
"结束时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"是否删除0.否1.是"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRO_APPLY_STATUS
);
eiColumn
.
setDescName
(
"审批状态 0-未提交 1-已提交"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"返还状态 0-未返还 1-已返还"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPXT004
()
{
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
;
}
/**
* get the companyCode - 企业编码 预留.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码 预留.
*
* @param companyCode - 企业编码 预留
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 更新人.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 更新人.
*
* @param updatedBy - 更新人
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 更新人名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 更新人名称.
*
* @param updatedName - 更新人名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 更新时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 更新时间.
*
* @param updatedTime - 更新时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the applyDate - 申请日期.
* @return the applyDate
*/
public
String
getApplyDate
()
{
return
this
.
applyDate
;
}
/**
* set the applyDate - 申请日期.
*
* @param applyDate - 申请日期
*/
public
void
setApplyDate
(
String
applyDate
)
{
this
.
applyDate
=
applyDate
;
}
/**
* get the applyNo - 申请单号.
* @return the applyNo
*/
public
String
getApplyNo
()
{
return
this
.
applyNo
;
}
/**
* set the applyNo - 申请单号.
*
* @param applyNo - 申请单号
*/
public
void
setApplyNo
(
String
applyNo
)
{
this
.
applyNo
=
applyNo
;
}
/**
* get the applyPersonnel - 申请人.
* @return the applyPersonnel
*/
public
String
getApplyPersonnel
()
{
return
this
.
applyPersonnel
;
}
/**
* set the applyPersonnel - 申请人.
*
* @param applyPersonnel - 申请人
*/
public
void
setApplyPersonnel
(
String
applyPersonnel
)
{
this
.
applyPersonnel
=
applyPersonnel
;
}
/**
* get the meetingRoom - 会议室.
* @return the meetingRoom
*/
public
String
getMeetingRoom
()
{
return
this
.
meetingRoom
;
}
/**
* set the meetingRoom - 会议室.
*
* @param meetingRoom - 会议室
*/
public
void
setMeetingRoom
(
String
meetingRoom
)
{
this
.
meetingRoom
=
meetingRoom
;
}
/**
* get the meetingSubject - 会议主题.
* @return the meetingSubject
*/
public
String
getMeetingSubject
()
{
return
this
.
meetingSubject
;
}
/**
* set the meetingSubject - 会议主题.
*
* @param meetingSubject - 会议主题
*/
public
void
setMeetingSubject
(
String
meetingSubject
)
{
this
.
meetingSubject
=
meetingSubject
;
}
/**
* get the meetingNature - 会议性质.
* @return the meetingNature
*/
public
String
getMeetingNature
()
{
return
this
.
meetingNature
;
}
/**
* set the meetingNature - 会议性质.
*
* @param meetingNature - 会议性质
*/
public
void
setMeetingNature
(
String
meetingNature
)
{
this
.
meetingNature
=
meetingNature
;
}
/**
* get the importanceLevel - 重要程度.
* @return the importanceLevel
*/
public
String
getImportanceLevel
()
{
return
this
.
importanceLevel
;
}
/**
* set the importanceLevel - 重要程度.
*
* @param importanceLevel - 重要程度
*/
public
void
setImportanceLevel
(
String
importanceLevel
)
{
this
.
importanceLevel
=
importanceLevel
;
}
/**
* get the startTime - 开始时间.
* @return the startTime
*/
public
String
getStartTime
()
{
return
this
.
startTime
;
}
/**
* set the startTime - 开始时间.
*
* @param startTime - 开始时间
*/
public
void
setStartTime
(
String
startTime
)
{
this
.
startTime
=
startTime
;
}
/**
* get the endTime - 结束时间.
* @return the endTime
*/
public
String
getEndTime
()
{
return
this
.
endTime
;
}
/**
* set the endTime - 结束时间.
*
* @param endTime - 结束时间
*/
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
/**
* get the proApplyStatus - 审批状态 0-未提交 1-已提交.
* @return the proApplyStatus
*/
public
Integer
getProApplyStatus
()
{
return
this
.
proApplyStatus
;
}
/**
* set the proApplyStatus - 审批状态 0-未提交 1-已提交.
*
* @param proApplyStatus - 审批状态 0-未提交 1-已提交
*/
public
void
setProApplyStatus
(
Integer
proApplyStatus
)
{
this
.
proApplyStatus
=
proApplyStatus
;
}
/**
* get the status - 返还状态 0-未返还 1-已返还.
* @return the status
*/
public
Integer
getStatus
()
{
return
this
.
status
;
}
/**
* set the status - 返还状态 0-未返还 1-已返还.
*
* @param status - 返还状态 0-未返还 1-已返还
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
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
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setApplyDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_DATE
)),
applyDate
));
setApplyNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_NO
)),
applyNo
));
setApplyPersonnel
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_PERSONNEL
)),
applyPersonnel
));
setMeetingRoom
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MEETING_ROOM
)),
meetingRoom
));
setMeetingSubject
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MEETING_SUBJECT
)),
meetingSubject
));
setMeetingNature
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MEETING_NATURE
)),
meetingNature
));
setImportanceLevel
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IMPORTANCE_LEVEL
)),
importanceLevel
));
setStartTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_START_TIME
)),
startTime
));
setEndTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_END_TIME
)),
endTime
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setProApplyStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_APPLY_STATUS
)),
proApplyStatus
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
}
/**
* set the value to 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_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_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_APPLY_DATE
,
StringUtils
.
toString
(
applyDate
,
eiMetadata
.
getMeta
(
FIELD_APPLY_DATE
)));
map
.
put
(
FIELD_APPLY_NO
,
StringUtils
.
toString
(
applyNo
,
eiMetadata
.
getMeta
(
FIELD_APPLY_NO
)));
map
.
put
(
FIELD_APPLY_PERSONNEL
,
StringUtils
.
toString
(
applyPersonnel
,
eiMetadata
.
getMeta
(
FIELD_APPLY_PERSONNEL
)));
map
.
put
(
FIELD_MEETING_ROOM
,
StringUtils
.
toString
(
meetingRoom
,
eiMetadata
.
getMeta
(
FIELD_MEETING_ROOM
)));
map
.
put
(
FIELD_MEETING_SUBJECT
,
StringUtils
.
toString
(
meetingSubject
,
eiMetadata
.
getMeta
(
FIELD_MEETING_SUBJECT
)));
map
.
put
(
FIELD_MEETING_NATURE
,
StringUtils
.
toString
(
meetingNature
,
eiMetadata
.
getMeta
(
FIELD_MEETING_NATURE
)));
map
.
put
(
FIELD_IMPORTANCE_LEVEL
,
StringUtils
.
toString
(
importanceLevel
,
eiMetadata
.
getMeta
(
FIELD_IMPORTANCE_LEVEL
)));
map
.
put
(
FIELD_START_TIME
,
StringUtils
.
toString
(
startTime
,
eiMetadata
.
getMeta
(
FIELD_START_TIME
)));
map
.
put
(
FIELD_END_TIME
,
StringUtils
.
toString
(
endTime
,
eiMetadata
.
getMeta
(
FIELD_END_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_PRO_APPLY_STATUS
,
StringUtils
.
toString
(
proApplyStatus
,
eiMetadata
.
getMeta
(
FIELD_PRO_APPLY_STATUS
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/xt/service/ServiceHPXT001.java
View file @
b87f8c41
package
com
.
baosight
.
hpjx
.
hp
.
xt
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
xt
.
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.common.InventTypeEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.cg.domain.HPCG001
;
import
com.baosight.hpjx.hp.cg.domain.HPCG002
;
import
com.baosight.hpjx.hp.cg.domain.HPCG002A
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC010
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ006
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.hp.sb.domain.HPSB003
;
import
com.baosight.hpjx.hp.xt.domain.HPXT001
;
import
com.baosight.hpjx.hp.xt.domain.HPXT001
;
import
com.baosight.hpjx.util.*
;
import
com.baosight.hpjx.util.*
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.hpjx.util.contants.ACConstants
;
...
...
src/main/java/com/baosight/hpjx/hp/xt/sql/HPXT003.xml
0 → 100644
View file @
b87f8c41
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-10-06 15:42:22
Version : 1.0
schema : hpjx
tableName : T_HPXT003
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
MAINTENANCE_DATE VARCHAR,
MAINTENANCE_NUMBER VARCHAR,
MAINTENANCE_TYPE VARCHAR,
LICENSE_PLATE VARCHAR,
HANDLER VARCHAR,
MAINTENANCE_COST DECIMAL,
MAINTENANCE_REASON VARCHAR,
DELETE_FLAG TINYINT
-->
<sqlMap
namespace=
"HPXT003"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"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
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"maintenanceDate"
>
MAINTENANCE_DATE = #maintenanceDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"maintenanceNumber"
>
MAINTENANCE_NUMBER = #maintenanceNumber#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"maintenanceType"
>
MAINTENANCE_TYPE = #maintenanceType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"licensePlate"
>
LICENSE_PLATE = #licensePlate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"handler"
>
HANDLER = #handler#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"maintenanceCost"
>
MAINTENANCE_COST = #maintenanceCost#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"maintenanceReason"
>
MAINTENANCE_REASON = #maintenanceReason#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.xt.domain.HPXT003"
>
SELECT
ID as "id",
<!-- 主键id -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
MAINTENANCE_DATE as "maintenanceDate",
<!-- 维护日期 -->
MAINTENANCE_NUMBER as "maintenanceNumber",
<!-- 维保单号 -->
MAINTENANCE_TYPE as "maintenanceType",
<!-- 维保类型 -->
LICENSE_PLATE as "licensePlate",
<!-- 车牌号 -->
HANDLER as "handler",
<!-- 经办人 -->
MAINTENANCE_COST as "maintenanceCost",
<!-- 维保费用 -->
MAINTENANCE_REASON as "maintenanceReason",
<!-- 维保原因 -->
DELETE_FLAG as "deleteFlag"
<!-- 删除标记 -->
FROM ${hpjxSchema}.T_HPXT003 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPXT003 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="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 prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceDate">
MAINTENANCE_DATE = #maintenanceDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceNumber">
MAINTENANCE_NUMBER = #maintenanceNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceType">
MAINTENANCE_TYPE = #maintenanceType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="licensePlate">
LICENSE_PLATE = #licensePlate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="handler">
HANDLER = #handler#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceCost">
MAINTENANCE_COST = #maintenanceCost#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceReason">
MAINTENANCE_REASON = #maintenanceReason#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPXT003 (ID,
<!-- 主键id -->
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_NAME,
<!-- 更新人名称 -->
UPDATED_TIME,
<!-- 更新时间 -->
MAINTENANCE_DATE,
<!-- 维护日期 -->
MAINTENANCE_NUMBER,
<!-- 维保单号 -->
MAINTENANCE_TYPE,
<!-- 维保类型 -->
LICENSE_PLATE,
<!-- 车牌号 -->
HANDLER,
<!-- 经办人 -->
MAINTENANCE_COST,
<!-- 维保费用 -->
MAINTENANCE_REASON,
<!-- 维保原因 -->
DELETE_FLAG
<!-- 删除标记 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #maintenanceDate#, #maintenanceNumber#, #maintenanceType#, #licensePlate#, #handler#, #maintenanceCost#, #maintenanceReason#, #deleteFlag#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPXT003 WHERE
ID = #id#
</delete>
<update
id=
"deleteFlag"
>
UPDATE ${hpjxSchema}.T_HPXT003
SET
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 修改时间 -->
DELETE_FLAG = #deleteFlag#
<!-- 是否删除0:否1.是 -->
WHERE
ID = #id#
</update>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.T_HPXT003
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
DEP_CODE = #depCode#,
<!-- 部门编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
MAINTENANCE_DATE = #maintenanceDate#,
<!-- 维护日期 -->
MAINTENANCE_NUMBER = #maintenanceNumber#,
<!-- 维保单号 -->
MAINTENANCE_TYPE = #maintenanceType#,
<!-- 维保类型 -->
LICENSE_PLATE = #licensePlate#,
<!-- 车牌号 -->
HANDLER = #handler#,
<!-- 经办人 -->
MAINTENANCE_COST = #maintenanceCost#,
<!-- 维保费用 -->
MAINTENANCE_REASON = #maintenanceReason#,
<!-- 维保原因 -->
DELETE_FLAG = #deleteFlag#
<!-- 删除标记 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/xt/sql/HPXT004.xml
0 → 100644
View file @
b87f8c41
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-10-06 16:55:04
Version : 1.0
schema : hpjx
tableName : T_HPXT004
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
APPLY_DATE VARCHAR,
APPLY_NO VARCHAR,
APPLY_PERSONNEL VARCHAR,
MEETING_ROOM VARCHAR,
MEETING_SUBJECT VARCHAR,
MEETING_NATURE VARCHAR,
IMPORTANCE_LEVEL VARCHAR,
START_TIME VARCHAR,
END_TIME VARCHAR,
DELETE_FLAG TINYINT,
PRO_APPLY_STATUS TINYINT,
STATUS TINYINT
-->
<sqlMap
namespace=
"HPXT004"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"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
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyDate"
>
APPLY_DATE = #applyDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyNo"
>
APPLY_NO = #applyNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyPersonnel"
>
APPLY_PERSONNEL = #applyPersonnel#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"meetingRoom"
>
MEETING_ROOM = #meetingRoom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"meetingSubject"
>
MEETING_SUBJECT = #meetingSubject#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"meetingNature"
>
MEETING_NATURE = #meetingNature#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"importanceLevel"
>
IMPORTANCE_LEVEL = #importanceLevel#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"startTime"
>
START_TIME = #startTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"endTime"
>
END_TIME = #endTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"proApplyStatus"
>
PRO_APPLY_STATUS = #proApplyStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateFrom"
>
CREATED_TIME
>
= REPLACE(#createdDateFrom#, '-', '')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateTo"
>
CREATED_TIME
<
= REPLACE(#createdDateTo#, '-', '')
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.xt.domain.HPXT004"
>
SELECT
ID as "id",
<!-- 主键id -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
APPLY_DATE as "applyDate",
<!-- 申请日期 -->
APPLY_NO as "applyNo",
<!-- 申请单号 -->
APPLY_PERSONNEL as "applyPersonnel",
<!-- 申请人 -->
MEETING_ROOM as "meetingRoom",
<!-- 会议室 -->
MEETING_SUBJECT as "meetingSubject",
<!-- 会议主题 -->
MEETING_NATURE as "meetingNature",
<!-- 会议性质 -->
IMPORTANCE_LEVEL as "importanceLevel",
<!-- 重要程度 -->
START_TIME as "startTime",
<!-- 开始时间 -->
END_TIME as "endTime",
<!-- 结束时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 是否删除0.否1.是 -->
PRO_APPLY_STATUS as "proApplyStatus",
<!-- 审批状态 0-未提交 1-已提交 -->
STATUS as "status"
<!-- 返还状态 0-未返还 1-已返还 -->
FROM ${hpjxSchema}.T_HPXT004 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPXT004 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="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 prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="applyDate">
APPLY_DATE = #applyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="applyNo">
APPLY_NO = #applyNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="applyPersonnel">
APPLY_PERSONNEL = #applyPersonnel#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="meetingRoom">
MEETING_ROOM = #meetingRoom#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="meetingSubject">
MEETING_SUBJECT = #meetingSubject#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="meetingNature">
MEETING_NATURE = #meetingNature#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="importanceLevel">
IMPORTANCE_LEVEL = #importanceLevel#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="startTime">
START_TIME = #startTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="endTime">
END_TIME = #endTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="proApplyStatus">
PRO_APPLY_STATUS = #proApplyStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPXT004 (ID,
<!-- 主键id -->
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_NAME,
<!-- 更新人名称 -->
UPDATED_TIME,
<!-- 更新时间 -->
APPLY_DATE,
<!-- 申请日期 -->
APPLY_NO,
<!-- 申请单号 -->
APPLY_PERSONNEL,
<!-- 申请人 -->
MEETING_ROOM,
<!-- 会议室 -->
MEETING_SUBJECT,
<!-- 会议主题 -->
MEETING_NATURE,
<!-- 会议性质 -->
IMPORTANCE_LEVEL,
<!-- 重要程度 -->
START_TIME,
<!-- 开始时间 -->
END_TIME,
<!-- 结束时间 -->
DELETE_FLAG,
<!-- 是否删除0.否1.是 -->
PRO_APPLY_STATUS,
<!-- 审批状态 0-未提交 1-已提交 -->
STATUS
<!-- 返还状态 0-未返还 1-已返还 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #applyDate#, #applyNo#, #applyPersonnel#, #meetingRoom#, #meetingSubject#, #meetingNature#, #importanceLevel#, #startTime#, #endTime#, #deleteFlag#, #proApplyStatus#, #status#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPXT004 WHERE
ID = #id#
</delete>
<update
id=
"deleteFlag"
>
UPDATE ${hpjxSchema}.T_HPXT004
SET
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 修改时间 -->
DELETE_FLAG = #deleteFlag#
<!-- 是否删除0:否1.是 -->
WHERE
ID = #id#
</update>
<!--修改提交状态-->
<update
id=
"updateProApplyStatus"
>
UPDATE ${hpjxSchema}.T_HPXT004
SET
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
PRO_APPLY_STATUS = #proApplyStatus#
<!-- 提交状态 0-未提交 1-已提交 -->
WHERE
ID = #id#
</update>
<!--修改返还状态-->
<update
id=
"updateStatus"
>
UPDATE ${hpjxSchema}.T_HPXT004
SET
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
STATUS = #status#
<!-- 提交状态 0-未提交 1-已提交 -->
WHERE
ID = #id#
</update>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.T_HPXT004
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
DEP_CODE = #depCode#,
<!-- 部门编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
APPLY_DATE = #applyDate#,
<!-- 申请日期 -->
APPLY_NO = #applyNo#,
<!-- 申请单号 -->
APPLY_PERSONNEL = #applyPersonnel#,
<!-- 申请人 -->
MEETING_ROOM = #meetingRoom#,
<!-- 会议室 -->
MEETING_SUBJECT = #meetingSubject#,
<!-- 会议主题 -->
MEETING_NATURE = #meetingNature#,
<!-- 会议性质 -->
IMPORTANCE_LEVEL = #importanceLevel#,
<!-- 重要程度 -->
START_TIME = #startTime#,
<!-- 开始时间 -->
END_TIME = #endTime#,
<!-- 结束时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 是否删除0.否1.是 -->
PRO_APPLY_STATUS = #proApplyStatus#,
<!-- 审批状态 0-未提交 1-已提交 -->
STATUS = #status#
<!-- 返还状态 0-未返还 1-已返还 -->
WHERE
ID = #id#
</update>
</sqlMap>
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