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
cfce3314
Commit
cfce3314
authored
Jan 10, 2024
by
徐澳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实体类
parent
561827af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
474 additions
and
0 deletions
+474
-0
THpsc001.java
...main/java/com/baosight/iplat4j/hp/sc/domain/THpsc001.java
+328
-0
tHpsc001.xml
src/main/java/com/baosight/iplat4j/hp/sc/sql/tHpsc001.xml
+146
-0
No files found.
src/main/java/com/baosight/iplat4j/hp/sc/domain/THpsc001.java
0 → 100644
View file @
cfce3314
/**
* Generate time : 2024-01-10 9:33:44
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
sc
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
java.sql.Timestamp
;
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
;
/**
* THpsc001
*
*/
public
class
THpsc001
extends
DaoEPBase
{
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
Integer
projType
=
0
;
/* 项目类型*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
princ1
=
" "
;
/* 本公司项目负责人*/
private
String
princ2
=
" "
;
/* 客户项目负责人*/
private
Integer
status
=
0
;
/* 状态 0-未审核,1-已审核*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
Timestamp
createdTime
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
Timestamp
updatedTime
;
/* 更新时间*/
private
String
depCode
=
" "
;
/* 部门编码*/
/**
* initialize the metadata
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
"id"
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"companyCode"
);
eiColumn
.
setDescName
(
"企业编码 预留"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"projType"
);
eiColumn
.
setDescName
(
"项目类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"projCode"
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"projName"
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"princ1"
);
eiColumn
.
setDescName
(
"本公司项目负责人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"princ2"
);
eiColumn
.
setDescName
(
"客户项目负责人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"status"
);
eiColumn
.
setDescName
(
"状态 0-未审核,1-已审核"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdTime"
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedBy"
);
eiColumn
.
setDescName
(
"更新人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedTime"
);
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"depCode"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor
*/
public
THpsc001
()
{
initMetaData
();
}
/**
* get the id
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the companyCode - 企业编码 预留
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码 预留
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the projType - 项目类型
* @return the projType
*/
public
Integer
getProjType
()
{
return
this
.
projType
;
}
/**
* set the projType - 项目类型
*/
public
void
setProjType
(
Integer
projType
)
{
this
.
projType
=
projType
;
}
/**
* get the projCode - 项目编码
* @return the projCode
*/
public
String
getProjCode
()
{
return
this
.
projCode
;
}
/**
* set the projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
/**
* get the projName - 项目名称
* @return the projName
*/
public
String
getProjName
()
{
return
this
.
projName
;
}
/**
* set the projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
* get the princ1 - 本公司项目负责人
* @return the princ1
*/
public
String
getPrinc1
()
{
return
this
.
princ1
;
}
/**
* set the princ1 - 本公司项目负责人
*/
public
void
setPrinc1
(
String
princ1
)
{
this
.
princ1
=
princ1
;
}
/**
* get the princ2 - 客户项目负责人
* @return the princ2
*/
public
String
getPrinc2
()
{
return
this
.
princ2
;
}
/**
* set the princ2 - 客户项目负责人
*/
public
void
setPrinc2
(
String
princ2
)
{
this
.
princ2
=
princ2
;
}
/**
* get the status - 状态 0-未审核,1-已审核
* @return the status
*/
public
Integer
getStatus
()
{
return
this
.
status
;
}
/**
* set the status - 状态 0-未审核,1-已审核
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
/**
* get the createdBy - 创建人
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdTime - 创建时间
* @return the createdTime
*/
public
Timestamp
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 创建时间
*/
public
void
setCreatedTime
(
Timestamp
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 更新人
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 更新人
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedTime - 更新时间
* @return the updatedTime
*/
public
Timestamp
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 更新时间
*/
public
void
setUpdatedTime
(
Timestamp
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the depCode - 部门编码
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setProjType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"projType"
)),
projType
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"projCode"
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"projName"
)),
projName
));
setPrinc1
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ1"
)),
princ1
));
setPrinc2
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ2"
)),
princ2
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedTime
(
DateUtils
.
toTimestamp
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
))));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedTime
(
DateUtils
.
toTimestamp
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
))));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
}
/**
* set the value to Map
*/
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
map
.
put
(
"projType"
,
StringUtils
.
toString
(
projType
,
eiMetadata
.
getMeta
(
"projType"
)));
map
.
put
(
"projCode"
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
"projCode"
)));
map
.
put
(
"projName"
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
"projName"
)));
map
.
put
(
"princ1"
,
StringUtils
.
toString
(
princ1
,
eiMetadata
.
getMeta
(
"princ1"
)));
map
.
put
(
"princ2"
,
StringUtils
.
toString
(
princ2
,
eiMetadata
.
getMeta
(
"princ2"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
map
.
put
(
"createdBy"
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
"createdBy"
)));
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
map
.
put
(
"depCode"
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
"depCode"
)));
return
map
;
}
}
\ No newline at end of file
src/main/java/com/baosight/iplat4j/hp/sc/sql/tHpsc001.xml
0 → 100644
View file @
cfce3314
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-01-10 9:33:44
Version : 1.0
tableName :hpjx.t_hpsc001
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
PROJ_TYPE TINYINT,
PROJ_CODE VARCHAR,
PROJ_NAME VARCHAR,
PRINC1 VARCHAR,
PRINC2 VARCHAR,
STATUS TINYINT,
CREATED_BY VARCHAR,
CREATED_TIME DATETIME,
UPDATED_BY VARCHAR,
UPDATED_TIME DATETIME,
DEP_CODE VARCHAR
-->
<sqlMap
namespace=
"tHpsc001"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.sc.domain.THpsc001"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
PROJ_TYPE as "projType",
<!-- 项目类型 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRINC1 as "princ1",
<!-- 本公司项目负责人 -->
PRINC2 as "princ2",
<!-- 客户项目负责人 -->
STATUS as "status",
<!-- 状态 0-未审核,1-已审核 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM hpjx.t_hpsc001 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<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 hpjx.t_hpsc001 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projType">
PROJ_TYPE = #projType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="princ1">
PRINC1 = #princ1#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="princ2">
PRINC2 = #princ2#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpsc001 (ID,
COMPANY_CODE,
<!-- 企业编码 预留 -->
PROJ_TYPE,
<!-- 项目类型 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PRINC1,
<!-- 本公司项目负责人 -->
PRINC2,
<!-- 客户项目负责人 -->
STATUS,
<!-- 状态 0-未审核,1-已审核 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME,
<!-- 更新时间 -->
DEP_CODE
<!-- 部门编码 -->
)
VALUES (#id#, #companyCode#, #projType#, #projCode#, #projName#, #princ1#, #princ2#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#, #depCode#)
</insert>
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hpsc001 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hpsc001
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
PROJ_TYPE = #projType#,
<!-- 项目类型 -->
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PRINC1 = #princ1#,
<!-- 本公司项目负责人 -->
PRINC2 = #princ2#,
<!-- 客户项目负责人 -->
STATUS = #status#,
<!-- 状态 0-未审核,1-已审核 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
WHERE
ID = #id#
</update>
</sqlMap>
\ 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