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
6ff5ff0e
Commit
6ff5ff0e
authored
Jan 10, 2024
by
徐澳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实体类文件
parent
fb832d60
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
107 additions
and
65 deletions
+107
-65
THppz002.java
...main/java/com/baosight/iplat4j/hp/pz/domain/THppz002.java
+30
-9
THppz004.java
...main/java/com/baosight/iplat4j/hp/pz/domain/THppz004.java
+30
-9
HPPZ002.xml
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ002.xml
+23
-23
HPPZ004.xml
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ004.xml
+23
-23
HPPZ004.jsp
src/main/webapp/HP/PZ/HPPZ004.jsp
+1
-1
No files found.
src/main/java/com/baosight/iplat4j/hp/pz/domain/THppz002.java
View file @
6ff5ff0e
/**
* Generate time : 2024-01-
09 19:08:59
* Generate time : 2024-01-
10 10:28:33
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
domain
;
...
...
@@ -18,7 +18,7 @@ public class THppz002 extends DaoEPBase {
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
Integer
custType
=
0
;
/* 供应商类型 1 国企 : 2 民营*/
private
int
custType
;
/* 供应商类型 1 国企 : 2 民营*/
private
String
custCode
=
" "
;
/* 供应商编码*/
private
String
custName
=
" "
;
/* 供应商名称*/
private
String
address
=
" "
;
/* 地址*/
...
...
@@ -27,6 +27,7 @@ public class THppz002 extends DaoEPBase {
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
depCode
=
" "
;
/* 部门编码*/
/**
* initialize the metadata
*/
...
...
@@ -59,7 +60,7 @@ EiColumn eiColumn;
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"status"
);
eiColumn
.
setDescName
(
"状态 0
未启
用 1启用"
);
eiColumn
.
setDescName
(
"状态 0
禁
用 1启用"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
...
...
@@ -78,6 +79,10 @@ EiColumn eiColumn;
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"depCode"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
...
...
@@ -119,15 +124,15 @@ initMetaData();
* get the custType - 供应商类型 1 国企 : 2 民营
* @return the custType
*/
public
Integer
getCustType
()
{
return
this
.
custType
;
public
int
getCustType
()
{
return
this
.
custType
;
}
/**
* set the custType - 供应商类型 1 国企 : 2 民营
*/
public
void
setCustType
(
Integer
custType
)
{
this
.
custType
=
custType
;
public
void
setCustType
(
int
custType
)
{
this
.
custType
=
custType
;
}
/**
* get the custCode - 供应商编码
...
...
@@ -241,6 +246,20 @@ initMetaData();
public
void
setUpdatedTime
(
String
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
*/
...
...
@@ -248,7 +267,7 @@ public void fromMap(Map map) {
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setCustType
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
"custType"
)),
custType
));
setCustType
(
NumberUtils
.
to
int
(
StringUtils
.
toString
(
map
.
get
(
"custType"
)),
custType
));
setCustCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custCode"
)),
custCode
));
setCustName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custName"
)),
custName
));
setAddress
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"address"
)),
address
));
...
...
@@ -257,6 +276,7 @@ public void fromMap(Map map) {
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
}
/**
...
...
@@ -271,11 +291,12 @@ Map map = new HashMap();
map
.
put
(
"custCode"
,
StringUtils
.
toString
(
custCode
,
eiMetadata
.
getMeta
(
"custCode"
)));
map
.
put
(
"custName"
,
StringUtils
.
toString
(
custName
,
eiMetadata
.
getMeta
(
"custName"
)));
map
.
put
(
"address"
,
StringUtils
.
toString
(
address
,
eiMetadata
.
getMeta
(
"address"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
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
;
...
...
src/main/java/com/baosight/iplat4j/hp/pz/domain/THppz004.java
View file @
6ff5ff0e
/**
* Generate time : 2024-01-
09 19:25:19
* Generate time : 2024-01-
10 10:59:31
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
domain
;
...
...
@@ -20,13 +20,14 @@ public class THppz004 extends DaoEPBase {
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
inventName
=
" "
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货类型编码*/
private
String
inventFatherName
=
" "
;
/* 上级存货类型
*/
private
int
inventFatherName
;
/* 存货性质
*/
private
String
inventFatherCode
=
" "
;
/* 上级存货类型编码*/
private
int
status
;
/* 状态 0
禁
用 1启用*/
private
int
status
;
/* 状态 0
未启
用 1启用*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
depCode
=
" "
;
/* 部门编码*/
/**
* initialize the metadata
*/
...
...
@@ -51,7 +52,7 @@ EiColumn eiColumn;
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventFatherName"
);
eiColumn
.
setDescName
(
"
上级存货类型
"
);
eiColumn
.
setDescName
(
"
存货性质
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventFatherCode"
);
...
...
@@ -78,6 +79,10 @@ EiColumn eiColumn;
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"depCode"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
...
...
@@ -144,17 +149,17 @@ initMetaData();
this
.
inventCode
=
inventCode
;
}
/**
* get the inventFatherName -
上级存货类型
* get the inventFatherName -
存货性质
* @return the inventFatherName
*/
public
String
getInventFatherName
()
{
public
int
getInventFatherName
()
{
return
this
.
inventFatherName
;
}
/**
* set the inventFatherName -
上级存货类型
* set the inventFatherName -
存货性质
*/
public
void
setInventFatherName
(
String
inventFatherName
)
{
public
void
setInventFatherName
(
int
inventFatherName
)
{
this
.
inventFatherName
=
inventFatherName
;
}
/**
...
...
@@ -241,6 +246,20 @@ initMetaData();
public
void
setUpdatedTime
(
String
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
*/
...
...
@@ -250,13 +269,14 @@ public void fromMap(Map map) {
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
setInventFatherName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherName"
)),
inventFatherName
));
setInventFatherName
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherName"
)),
inventFatherName
));
setInventFatherCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherCode"
)),
inventFatherCode
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
}
/**
...
...
@@ -276,6 +296,7 @@ Map map = new HashMap();
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
;
...
...
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ002.xml
View file @
6ff5ff0e
...
...
@@ -21,17 +21,18 @@
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.pz.domain.THppz002"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
CUST_TYPE as "custType",
<!-- 供应商类型 1 国企 : 2 民营 -->
CUST_CODE as "custCode",
<!-- 供应商编码 -->
CUST_NAME as "custName",
<!-- 供应商名称 -->
ADDRESS as "address",
<!-- 地址 -->
STATUS as "status",
<!-- 状态 0禁用 1启用 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
CUST_TYPE as "custType",
<!-- 供应商类型 1 国企 : 2 民营 -->
CUST_CODE as "custCode",
<!-- 供应商编码 -->
CUST_NAME as "custName",
<!-- 供应商名称 -->
ADDRESS as "address",
<!-- 地址 -->
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_hppz002 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
...
...
@@ -98,18 +99,17 @@
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hppz002 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
CUST_TYPE,
<!-- 供应商类型 1 国企 : 2 民营 -->
CUST_CODE,
<!-- 供应商编码 -->
CUST_NAME,
<!-- 供应商名称 -->
ADDRESS,
<!-- 地址 -->
STATUS,
<!-- 状态 0禁用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME
<!-- 更新时间 -->
)
VALUES (#companyCode#, #custType#, #custCode#, #custName#, #address#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
COMPANY_CODE,
<!-- 企业编码 预留 -->
CUST_TYPE,
<!-- 供应商类型 1 国企 : 2 民营 -->
CUST_CODE,
<!-- 供应商编码 -->
CUST_NAME,
<!-- 供应商名称 -->
ADDRESS,
<!-- 地址 -->
STATUS,
<!-- 状态 0禁用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
DEP_CODE
<!-- 部门编码 -->
)
VALUES ( #companyCode#, #custType#, #custCode#, #custName#, #address#, #status#, #createdBy#, #createdTime#, #depCode#)
</insert>
<delete
id=
"delete"
>
...
...
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ004.xml
View file @
6ff5ff0e
...
...
@@ -21,17 +21,18 @@
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.pz.domain.THppz004"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
INVENT_NAME as "inventName",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货类型编码 -->
INVENT_FATHER_NAME as "inventFatherName",
<!-- 上级存货类型 -->
INVENT_FATHER_CODE as "inventFatherCode",
<!-- 上级存货类型编码 -->
STATUS as "status",
<!-- 状态 0未启用 1启用 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
INVENT_NAME as "inventName",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货类型编码 -->
INVENT_FATHER_NAME as "inventFatherName",
<!-- 存货性质 -->
INVENT_FATHER_CODE as "inventFatherCode",
<!-- 上级存货类型编码 -->
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_hppz004 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
...
...
@@ -98,18 +99,17 @@
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hppz004 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
INVENT_NAME,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货类型编码 -->
INVENT_FATHER_NAME,
<!-- 上级存货类型 -->
INVENT_FATHER_CODE,
<!-- 上级存货类型编码 -->
STATUS,
<!-- 状态 0未启用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME
<!-- 更新时间 -->
)
VALUES (#companyCode#, #inventName#, #inventCode#, #inventFatherName#, #inventFatherCode#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
COMPANY_CODE,
<!-- 企业编码 预留 -->
INVENT_NAME,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货类型编码 -->
INVENT_FATHER_NAME,
<!-- 存货性质 -->
INVENT_FATHER_CODE,
<!-- 上级存货类型编码 -->
STATUS,
<!-- 状态 0未启用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
DEP_CODE
<!-- 部门编码 -->
)
VALUES ( #companyCode#, #inventName#, #inventCode#, #inventFatherName#, #inventFatherCode#, #status#, #createdBy#, #createdTime#, #depCode#)
</insert>
<delete
id=
"delete"
>
...
...
src/main/webapp/HP/PZ/HPPZ004.jsp
View file @
6ff5ff0e
...
...
@@ -24,7 +24,7 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"类型编码"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货类型"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventFatherName"
cname=
"
上级名称
"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventFatherName"
cname=
"
存货性质
"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
...
...
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