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
c7a3e335
Commit
c7a3e335
authored
Jan 10, 2024
by
YG6494
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
ssh://10.70.33.7:32359/smart/hp-smart
into dev
parents
8861798f
8da5bfd8
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
653 additions
and
311 deletions
+653
-311
ServiceHPKC008.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
+3
-3
THppz004.java
src/main/java/com/baosight/hpjx/hp/pz/domain/THppz004.java
+28
-49
Thppz008.java
src/main/java/com/baosight/hpjx/hp/pz/domain/Thppz008.java
+1
-1
ServiceHPPZ008.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ008.java
+2
-2
HPPZ004.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
+14
-17
THPSC001.java
src/main/java/com/baosight/hpjx/hp/sc/domain/THPSC001.java
+241
-228
ServiceHPSC001.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC001.java
+129
-0
HPSC001.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC001.xml
+153
-0
tHpsc001.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/tHpsc001.xml
+15
-8
HPPZ002.js
src/main/webapp/HP/PZ/HPPZ002.js
+1
-1
HPPZ004.jsp
src/main/webapp/HP/PZ/HPPZ004.jsp
+2
-2
HPSC001.js
src/main/webapp/HP/SC/HPSC001.js
+16
-0
HPSC001.jsp
src/main/webapp/HP/SC/HPSC001.jsp
+48
-0
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
View file @
c7a3e335
package
com
.
baosight
.
iplat4j
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.
iplat4j
.common.CompanyTypeEnum
;
import
com.baosight.
hpjx
.common.CompanyTypeEnum
;
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
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.hp.kc.domain.Thpkc008
;
import
com.baosight.iplat4j.hp.kc.domain.Thpkc008
;
import
com.baosight.
iplat4j
.util.CommonMethod
;
import
com.baosight.
hpjx
.util.CommonMethod
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/com/baosight/hpjx/hp/pz/domain/THppz004.java
View file @
c7a3e335
/**
/**
* Generate time : 2024-01-10 1
0:59:3
1
* Generate time : 2024-01-10 1
4:11:2
1
* Version : 1.0
* Version : 1.0
*/
*/
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
domain
;
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
domain
;
...
@@ -18,10 +18,9 @@ public class THppz004 extends DaoEPBase {
...
@@ -18,10 +18,9 @@ public class THppz004 extends DaoEPBase {
private
Integer
id
=
0
;
private
Integer
id
=
0
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
inventName
=
" "
;
/* 存货类型*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventCode
=
" "
;
/* 存货类型编码*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
int
inventFatherName
;
/* 存货性质*/
private
int
inventType
;
/* 存货类型*/
private
String
inventFatherCode
=
" "
;
/* 上级存货类型编码*/
private
int
status
;
/* 状态 0未启用 1启用*/
private
int
status
;
/* 状态 0未启用 1启用*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
createdTime
=
" "
;
/* 创建时间*/
...
@@ -44,19 +43,15 @@ EiColumn eiColumn;
...
@@ -44,19 +43,15 @@ EiColumn eiColumn;
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventName"
);
eiColumn
=
new
EiColumn
(
"inventName"
);
eiColumn
.
setDescName
(
"存货
类型
"
);
eiColumn
.
setDescName
(
"存货
名称
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventCode"
);
eiColumn
=
new
EiColumn
(
"inventCode"
);
eiColumn
.
setDescName
(
"存货类型编码"
);
eiColumn
.
setDescName
(
"存货编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventFatherName"
);
eiColumn
.
setDescName
(
"存货性质"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"invent
FatherCod
e"
);
eiColumn
=
new
EiColumn
(
"invent
Typ
e"
);
eiColumn
.
setDescName
(
"
上级存货类型编码
"
);
eiColumn
.
setDescName
(
"
存货类型
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"status"
);
eiColumn
=
new
EiColumn
(
"status"
);
...
@@ -121,7 +116,7 @@ initMetaData();
...
@@ -121,7 +116,7 @@ initMetaData();
this
.
companyCode
=
companyCode
;
this
.
companyCode
=
companyCode
;
}
}
/**
/**
* get the inventName - 存货
类型
* get the inventName - 存货
名称
* @return the inventName
* @return the inventName
*/
*/
public
String
getInventName
()
{
public
String
getInventName
()
{
...
@@ -129,13 +124,13 @@ initMetaData();
...
@@ -129,13 +124,13 @@ initMetaData();
}
}
/**
/**
* set the inventName - 存货
类型
* set the inventName - 存货
名称
*/
*/
public
void
setInventName
(
String
inventName
)
{
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
this
.
inventName
=
inventName
;
}
}
/**
/**
* get the inventCode - 存货
类型
编码
* get the inventCode - 存货编码
* @return the inventCode
* @return the inventCode
*/
*/
public
String
getInventCode
()
{
public
String
getInventCode
()
{
...
@@ -143,53 +138,39 @@ initMetaData();
...
@@ -143,53 +138,39 @@ initMetaData();
}
}
/**
/**
* set the inventCode - 存货
类型
编码
* set the inventCode - 存货编码
*/
*/
public
void
setInventCode
(
String
inventCode
)
{
public
void
setInventCode
(
String
inventCode
)
{
this
.
inventCode
=
inventCode
;
this
.
inventCode
=
inventCode
;
}
}
/**
/**
* get the invent
FatherName - 存货性质
* get the invent
Type - 存货类型
* @return the invent
FatherNam
e
* @return the invent
Typ
e
*/
*/
public
int
getInvent
FatherNam
e
()
{
public
int
getInvent
Typ
e
()
{
return
this
.
invent
FatherNam
e
;
return
this
.
invent
Typ
e
;
}
}
/**
/**
* set the invent
FatherName - 存货性质
* set the invent
Type - 存货类型
*/
*/
public
void
setInvent
FatherName
(
int
inventFatherNam
e
)
{
public
void
setInvent
Type
(
int
inventTyp
e
)
{
this
.
invent
FatherName
=
inventFatherNam
e
;
this
.
invent
Type
=
inventTyp
e
;
}
}
/**
/**
* get the
inventFatherCode - 上级存货类型编码
* get the
status - 状态 0未启用 1启用
* @return the
inventFatherCode
* @return the
status
*/
*/
public
String
getInventFatherCode
()
{
public
int
getStatus
()
{
return
this
.
inventFatherCode
;
return
this
.
status
;
}
}
/**
/**
* set the
inventFatherCode - 上级存货类型编码
* set the
status - 状态 0未启用 1启用
*/
*/
public
void
setInventFatherCode
(
String
inventFatherCode
)
{
public
void
setStatus
(
int
status
)
{
this
.
inventFatherCode
=
inventFatherCode
;
}
/**
* get the status - 状态 0未启用 1启用
* @return the status
*/
public
int
getStatus
()
{
return
this
.
status
;
}
/**
* set the status - 状态 0未启用 1启用
*/
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
this
.
status
=
status
;
}
}
/**
/**
* get the createdBy - 创建人
* get the createdBy - 创建人
* @return the createdBy
* @return the createdBy
...
@@ -269,8 +250,7 @@ public void fromMap(Map map) {
...
@@ -269,8 +250,7 @@ public void fromMap(Map map) {
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
setInventFatherName
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherName"
)),
inventFatherName
));
setInventType
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"inventType"
)),
inventType
));
setInventFatherCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherCode"
)),
inventFatherCode
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
...
@@ -289,8 +269,7 @@ Map map = new HashMap();
...
@@ -289,8 +269,7 @@ Map map = new HashMap();
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
map
.
put
(
"inventName"
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
"inventName"
)));
map
.
put
(
"inventName"
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
"inventName"
)));
map
.
put
(
"inventCode"
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
"inventCode"
)));
map
.
put
(
"inventCode"
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
"inventCode"
)));
map
.
put
(
"inventFatherName"
,
StringUtils
.
toString
(
inventFatherName
,
eiMetadata
.
getMeta
(
"inventFatherName"
)));
map
.
put
(
"inventType"
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
"inventType"
)));
map
.
put
(
"inventFatherCode"
,
StringUtils
.
toString
(
inventFatherCode
,
eiMetadata
.
getMeta
(
"inventFatherCode"
)));
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
(
"createdBy"
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
"createdBy"
)));
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
...
...
src/main/java/com/baosight/hpjx/hp/pz/domain/Thppz008.java
View file @
c7a3e335
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Generate time : 2024-01-09 16:02:58
* Generate time : 2024-01-09 16:02:58
* Version : 1.0
* Version : 1.0
*/
*/
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
domain
;
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
...
...
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ008.java
View file @
c7a3e335
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
service
;
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
;
...
@@ -6,7 +6,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
...
@@ -6,7 +6,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
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
com.baosight.
iplat4j
.hp.pz.domain.Thppz008
;
import
com.baosight.
hpjx
.hp.pz.domain.Thppz008
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Date
;
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
View file @
c7a3e335
...
@@ -23,10 +23,9 @@
...
@@ -23,10 +23,9 @@
SELECT
SELECT
ID as "id",
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
INVENT_NAME as "inventName",
<!-- 存货类型 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
INVENT_CODE as "inventCode",
<!-- 存货类型编码 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_FATHER_NAME as "inventFatherName",
<!-- 存货性质 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_FATHER_CODE as "inventFatherCode",
<!-- 上级存货类型编码 -->
STATUS as "status",
<!-- 状态 0未启用 1启用 -->
STATUS as "status",
<!-- 状态 0未启用 1启用 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
...
@@ -100,16 +99,15 @@
...
@@ -100,16 +99,15 @@
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hppz004 (
INSERT INTO hpjx.t_hppz004 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
COMPANY_CODE,
<!-- 企业编码 预留 -->
INVENT_NAME,
<!-- 存货类型 -->
INVENT_NAME,
<!-- 存货名称 -->
INVENT_CODE,
<!-- 存货类型编码 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_FATHER_NAME,
<!-- 存货性质 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_FATHER_CODE,
<!-- 上级存货类型编码 -->
STATUS,
<!-- 状态 0未启用 1启用 -->
STATUS,
<!-- 状态 0未启用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
CREATED_TIME,
<!-- 创建时间 -->
DEP_CODE
<!-- 部门编码 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES ( #companyCode#, #inventName#, #inventCode#, #invent
FatherName#, #inventFatherCod
e#, #status#, #createdBy#, #createdTime#, #depCode#)
VALUES ( #companyCode#, #inventName#, #inventCode#, #invent
Typ
e#, #status#, #createdBy#, #createdTime#, #depCode#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -120,14 +118,13 @@
...
@@ -120,14 +118,13 @@
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE hpjx.t_hppz004
UPDATE hpjx.t_hppz004
SET
SET
INVENT_NAME = #inventName#,
<!-- 存货类型 -->
INVENT_NAME = #inventName#,
<!-- 存货名称 -->
INVENT_CODE = #inventCode#,
<!-- 存货类型编码 -->
INVENT_CODE = #inventCode#,
<!-- 存货编码 -->
INVENT_FATHER_NAME = #inventFatherName#,
<!-- 上级存货类型 -->
INVENT_TYPE = #inventType#,
<!-- 存货类型 -->
INVENT_FATHER_CODE = #inventFatherCode#,
<!-- 上级存货类型编码 -->
STATUS = #status#,
<!-- 状态 0未启用 1启用 -->
STATUS = #status#,
<!-- 状态 0未启用 1启用 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
...
...
src/main/java/com/baosight/hpjx/hp/sc/domain/TH
psc
001.java
→
src/main/java/com/baosight/hpjx/hp/sc/domain/TH
PSC
001.java
View file @
c7a3e335
/**
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
domain
;
* 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
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
public
class
THPSC001
extends
DaoEPBase
{
* THpsc001
*
private
Long
id
=
0L
;
*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
public
class
THpsc001
extends
DaoEPBase
{
private
Integer
projType
=
0
;
/* 项目类型*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
Long
id
=
0L
;
private
String
projName
=
" "
;
/* 项目名称*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
princ1
=
" "
;
/* 本公司项目负责人*/
private
Integer
projType
=
0
;
/* 项目类型*/
private
String
princ2
=
" "
;
/* 客户项目负责人*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
Integer
status
=
0
;
/* 状态 0-未审核,1-已审核*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
princ1
=
" "
;
/* 本公司项目负责人*/
private
String
createdTime
;
/* 创建时间*/
private
String
princ2
=
" "
;
/* 客户项目负责人*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
Integer
status
=
0
;
/* 状态 0-未审核,1-已审核*/
private
String
updatedTime
;
/* 更新时间*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
Timestamp
createdTime
;
/* 创建时间*/
private
String
remark
=
" "
;
/* 备注*/
private
String
updatedBy
=
" "
;
/* 更新人*/
/**
private
Timestamp
updatedTime
;
/* 更新时间*/
* initialize the metadata
private
String
depCode
=
" "
;
/* 部门编码*/
*/
/**
public
void
initMetaData
()
{
* initialize the metadata
EiColumn
eiColumn
;
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
"id"
);
eiColumn
=
new
EiColumn
(
"id"
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setPrimaryKey
(
true
);
...
@@ -90,238 +83,259 @@ EiColumn eiColumn;
...
@@ -90,238 +83,259 @@ EiColumn eiColumn;
eiColumn
.
setDescName
(
"部门编码"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"remark"
);
eiColumn
.
setDescName
(
"备注"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor
*/
public
THpsc001
()
{
initMetaData
();
}
/**
}
* get the id
/**
* @return the id
* the constructor
*/
*/
public
Long
getId
()
{
public
THPSC001
()
{
initMetaData
();
}
/**
* get the id
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
/**
/**
* set the id
* set the id
*/
*/
public
void
setId
(
Long
id
)
{
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/**
/**
* get the companyCode - 企业编码 预留
* get the companyCode - 企业编码 预留
* @return the companyCode
* @return the companyCode
*/
*/
public
String
getCompanyCode
()
{
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
return
this
.
companyCode
;
}
}
/**
/**
* set the companyCode - 企业编码 预留
* set the companyCode - 企业编码 预留
*/
*/
public
void
setCompanyCode
(
String
companyCode
)
{
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
this
.
companyCode
=
companyCode
;
}
}
/**
/**
* get the projType - 项目类型
* get the projType - 项目类型
* @return the projType
* @return the projType
*/
*/
public
Integer
getProjType
()
{
public
Integer
getProjType
()
{
return
this
.
projType
;
return
this
.
projType
;
}
}
/**
/**
* set the projType - 项目类型
* set the projType - 项目类型
*/
*/
public
void
setProjType
(
Integer
projType
)
{
public
void
setProjType
(
Integer
projType
)
{
this
.
projType
=
projType
;
this
.
projType
=
projType
;
}
}
/**
/**
* get the projCode - 项目编码
* get the projCode - 项目编码
* @return the projCode
* @return the projCode
*/
*/
public
String
getProjCode
()
{
public
String
getProjCode
()
{
return
this
.
projCode
;
return
this
.
projCode
;
}
}
/**
/**
* set the projCode - 项目编码
* set the projCode - 项目编码
*/
*/
public
void
setProjCode
(
String
projCode
)
{
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
this
.
projCode
=
projCode
;
}
}
/**
/**
* get the projName - 项目名称
* get the projName - 项目名称
* @return the projName
* @return the projName
*/
*/
public
String
getProjName
()
{
public
String
getProjName
()
{
return
this
.
projName
;
return
this
.
projName
;
}
}
/**
/**
* set the projName - 项目名称
* set the projName - 项目名称
*/
*/
public
void
setProjName
(
String
projName
)
{
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
this
.
projName
=
projName
;
}
}
/**
/**
* get the princ1 - 本公司项目负责人
* get the princ1 - 本公司项目负责人
* @return the princ1
* @return the princ1
*/
*/
public
String
getPrinc1
()
{
public
String
getPrinc1
()
{
return
this
.
princ1
;
return
this
.
princ1
;
}
}
/**
/**
* set the princ1 - 本公司项目负责人
* set the princ1 - 本公司项目负责人
*/
*/
public
void
setPrinc1
(
String
princ1
)
{
public
void
setPrinc1
(
String
princ1
)
{
this
.
princ1
=
princ1
;
this
.
princ1
=
princ1
;
}
}
/**
/**
* get the princ2 - 客户项目负责人
* get the princ2 - 客户项目负责人
* @return the princ2
* @return the princ2
*/
*/
public
String
getPrinc2
()
{
public
String
getPrinc2
()
{
return
this
.
princ2
;
return
this
.
princ2
;
}
}
/**
/**
* set the princ2 - 客户项目负责人
* set the princ2 - 客户项目负责人
*/
*/
public
void
setPrinc2
(
String
princ2
)
{
public
void
setPrinc2
(
String
princ2
)
{
this
.
princ2
=
princ2
;
this
.
princ2
=
princ2
;
}
}
/**
/**
* get the status - 状态 0-未审核,1-已审核
* get the status - 状态 0-未审核,1-已审核
* @return the status
* @return the status
*/
*/
public
Integer
getStatus
()
{
public
Integer
getStatus
()
{
return
this
.
status
;
return
this
.
status
;
}
}
/**
/**
* set the status - 状态 0-未审核,1-已审核
* set the status - 状态 0-未审核,1-已审核
*/
*/
public
void
setStatus
(
Integer
status
)
{
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
this
.
status
=
status
;
}
}
/**
/**
* 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
)
{
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
this
.
createdBy
=
createdBy
;
}
}
/**
/**
* get the createdTime - 创建时间
* get the createdTime - 创建时间
* @return the createdTime
* @return the createdTime
*/
*/
public
Timestamp
getCreatedTime
()
{
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
/**
/**
* set the createdTime - 创建时间
* set the createdTime - 创建时间
*/
*/
public
void
setCreatedTime
(
Timestamp
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
)
{
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
this
.
updatedBy
=
updatedBy
;
}
}
/**
/**
* get the updatedTime - 更新时间
* get the updatedTime - 更新时间
* @return the updatedTime
* @return the updatedTime
*/
*/
public
Timestamp
getUpdatedTime
()
{
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
return
this
.
updatedTime
;
}
}
/**
/**
* set the updatedTime - 更新时间
* set the updatedTime - 更新时间
*/
*/
public
void
setUpdatedTime
(
Timestamp
updatedTime
)
{
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
this
.
updatedTime
=
updatedTime
;
}
}
/**
/**
* get the depCode - 部门编码
* get the depCode - 部门编码
* @return the depCode
* @return the depCode
*/
*/
public
String
getDepCode
()
{
public
String
getDepCode
()
{
return
this
.
depCode
;
return
this
.
depCode
;
}
}
/**
/**
* set the depCode - 部门编码
* set the depCode - 部门编码
*/
*/
public
void
setDepCode
(
String
depCode
)
{
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
this
.
depCode
=
depCode
;
}
}
/**
* get the value from Map
/**
*/
* get the remark - 备注
public
void
fromMap
(
Map
map
)
{
* @return the remark
*/
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
public
String
getRemark
()
{
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
return
this
.
remark
;
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
));
* set the remark - 备注
setPrinc2
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ2"
)),
princ2
));
*/
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
public
void
setRemark
(
String
remark
)
{
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
this
.
remark
=
remark
;
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"
))));
* get the value from Map
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
*/
}
public
void
fromMap
(
Map
map
)
{
/**
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
* set the value to Map
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
*/
setProjType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"projType"
)),
projType
));
public
Map
toMap
()
{
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"projCode"
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"projName"
)),
projName
));
Map
map
=
new
HashMap
();
setPrinc1
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ1"
)),
princ1
));
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
setPrinc2
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ2"
)),
princ2
));
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
map
.
put
(
"projType"
,
StringUtils
.
toString
(
projType
,
eiMetadata
.
getMeta
(
"projType"
)));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
map
.
put
(
"projCode"
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
"projCode"
)));
setCreatedTime
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)));
map
.
put
(
"projName"
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
"projName"
)));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
map
.
put
(
"princ1"
,
StringUtils
.
toString
(
princ1
,
eiMetadata
.
getMeta
(
"princ1"
)));
setUpdatedTime
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)));
map
.
put
(
"princ2"
,
StringUtils
.
toString
(
princ2
,
eiMetadata
.
getMeta
(
"princ2"
)));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"remark"
)),
remark
));
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"
)));
* set the value to Map
map
.
put
(
"depCode"
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
"depCode"
)));
*/
public
Map
toMap
()
{
return
map
;
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"
)));
map
.
put
(
"remark"
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
"remark"
)));
return
map
;
}
}
}
}
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC001.java
0 → 100644
View file @
c7a3e335
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
service
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.hpjx.hp.sc.domain.THPSC001
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Map
;
/**
*
*/
public
class
ServiceHPSC001
extends
ServiceBase
{
/**
* 画面初始化.
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
THPSC001
hpsc001
=
new
THPSC001
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
hpsc001
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hpsc001
.
eiMetadata
);
return
inInfo
;
}
/**
* 查询操作.
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
/* 调用EI查询方法.*/
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPSC001.query"
,
new
THPSC001
());
return
outInfo
;
}
/**
* 新增操作.
*/
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
THPSC001
hpsc001
=
new
THPSC001
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hpsc001
.
fromMap
(
map
);
hpsc001
.
setCreatedBy
(
UserSession
.
getUserId
());
hpsc001
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
hpsc001
.
setUpdatedBy
(
null
);
hpsc001
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPSC001.insert"
,
hpsc001
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
}
catch
(
PlatException
e
)
{
e
.
printStackTrace
();
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"新增失败!原因参见详细错误描述!"
);
inInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"新增失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
query
(
inInfo
);
}
/**
* 修改操作.
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
THPSC001
hpsc001
=
new
THPSC001
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hpsc001
.
fromMap
(
map
);
hpsc001
.
setUpdatedBy
(
UserSession
.
getUserId
());
hpsc001
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
this
.
dao
.
update
(
"HPSC001.update"
,
hpsc001
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"修改成功!"
);
}
catch
(
PlatException
e
)
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!原因参见详细错误描述!"
);
inInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"修改失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
query
(
inInfo
);
}
/**
* 删除操作.
*/
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
THPSC001
hpsc001
=
new
THPSC001
();
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
try
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hpsc001
.
fromMap
(
map
);
this
.
dao
.
delete
(
"HPPZ001.delete"
,
hpsc001
.
toMap
());
}
}
catch
(
PlatException
e
)
{
eiInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
eiInfo
.
setMsg
(
"删除失败,原因参见详细错误描述!"
);
eiInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"删除失败!"
,
e
.
getMessage
());
return
eiInfo
;
}
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
eiInfo
.
setMsg
(
"删除成功!"
);
return
eiInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC001.xml
0 → 100644
View file @
c7a3e335
<?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=
"HPSC001"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.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>
<isNotEmpty
prepend=
" AND "
property=
"projType"
>
PROJ_TYPE = #projType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isEmpty
property=
"orderBy"
>
CREATED_TIME desc
</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
src/main/java/com/baosight/hpjx/hp/sc/sql/tHpsc001.xml
View file @
c7a3e335
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
UPDATED_TIME DATETIME,
UPDATED_TIME DATETIME,
DEP_CODE VARCHAR
DEP_CODE VARCHAR
-->
-->
<sqlMap
namespace=
"
tHpsc
001"
>
<sqlMap
namespace=
"
HPSC
001"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.sc.domain.TH
psc
001"
>
resultClass=
"com.baosight.iplat4j.hp.sc.domain.TH
PSC
001"
>
SELECT
SELECT
ID as "id",
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
...
@@ -40,13 +40,20 @@
...
@@ -40,13 +40,20 @@
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projType"
>
PROJ_TYPE = #projType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
$orderBy$
CREATED_TIME desc
</isNotEmpty>
</isEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</dynamic>
</select>
</select>
...
...
src/main/webapp/HP/PZ/HPPZ002.js
View file @
c7a3e335
...
@@ -40,7 +40,7 @@ $(function() {
...
@@ -40,7 +40,7 @@ $(function() {
});
});
// 修改
// 修改
$
(
"#UPDATE"
).
on
(
"click"
,
function
()
{
$
(
"#
BTN_
UPDATE"
).
on
(
"click"
,
function
()
{
var
rowCount
=
resultGrid
.
getCheckedRows
();
var
rowCount
=
resultGrid
.
getCheckedRows
();
// 检验是否选中数据
// 检验是否选中数据
if
(
rowCount
==
null
||
rowCount
==
""
)
{
if
(
rowCount
==
null
||
rowCount
==
""
)
{
...
...
src/main/webapp/HP/PZ/HPPZ004.jsp
View file @
c7a3e335
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"类型编码"
width=
"100"
readonly=
"false"
required=
"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=
"inventName"
cname=
"存货
名称
"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"invent
FatherName"
cname=
"存货性质
"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"invent
Type"
cname=
"存货类型
"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
valueField=
"valueField"
width=
"100"
required=
"true"
>
...
...
src/main/webapp/HP/SC/HPSC001.js
0 → 100644
View file @
c7a3e335
$
(
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
});
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
50
,
70
,
100
],
},
}
});
\ No newline at end of file
src/main/webapp/HP/SC/HPSC001.jsp
0 → 100644
View file @
c7a3e335
<!DOCTYPE html>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
<
%
--
<
link
rel=
"stylesheet"
href=
"${ctx}/css/simulatedOperation.css"
/>
--%>
</head>
<EF:EFPage
title=
"项目档案"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projType"
cname=
"项目类型:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFSelect
cname=
"单据状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
>
<EF:EFOption
label=
"未审核"
value=
"0"
/>
<EF:EFOption
label=
"已审核"
value=
"1"
/>
</EF:EFSelect>
</div>
<EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projType"
required=
'true'
cname=
"项目类型"
/>
<EF:EFColumn
required=
"true"
ename=
"projCode"
cname=
"项目编码"
/>
<EF:EFColumn
required=
"true"
ename=
"projName"
cname=
"项目名称"
/>
<EF:EFColumn
required=
"true"
ename=
"princ1"
cname=
"本公司项目负责人"
/>
<EF:EFColumn
required=
"true"
ename=
"princ2"
cname=
"客户项目负责人"
/>
<EF:EFComboColumn
required=
"true"
align=
"center"
ename=
"status"
cname=
"状态"
>
<EF:EFOption
label=
"未审核"
value=
"0"
/>
<EF:EFOption
label=
"已审核"
value=
"1"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HP/PZ/HPSC001.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