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
43dbaa5b
Commit
43dbaa5b
authored
Mar 28, 2024
by
wasx8023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.质量异议表部门字段修正
parent
02a23e9c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
ServiceHPMT002.java
.../java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
+2
-2
ServiceHPSC001.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC001.java
+1
-1
HPZL001A.java
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL001A.java
+14
-14
HPZL001A.xml
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001A.xml
+5
-5
No files found.
src/main/java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
View file @
43dbaa5b
...
...
@@ -298,7 +298,7 @@ public class ServiceHPMT002 extends ServiceBase {
int
num
=
0
;
while
(
num
<
docIds
.
length
)
{
HPZL001A
HPZL001A
=
new
HPZL001A
();
HPZL001A
.
setDep
t
Code
(
CommonConstant
.
YesNo
.
YES
);
HPZL001A
.
setDepCode
(
CommonConstant
.
YesNo
.
YES
);
HPZL001A
.
setDocType
(
CommonConstant
.
YesNo
.
YES_1
);
HPZL001A
.
setBizType
(
"XJ_WC"
);
HPZL001A
.
setDocId
(
docIds
[
num
]);
...
...
@@ -347,7 +347,7 @@ public class ServiceHPMT002 extends ServiceBase {
int
num
=
0
;
while
(
num
<
docIds
.
length
)
{
HPZL001A
HPZL001A
=
new
HPZL001A
();
HPZL001A
.
setDep
t
Code
(
CommonConstant
.
YesNo
.
YES
);
HPZL001A
.
setDepCode
(
CommonConstant
.
YesNo
.
YES
);
HPZL001A
.
setDocType
(
2
);
HPZL001A
.
setBizType
(
"XJ_CL"
);
HPZL001A
.
setDocId
(
docIds
[
num
]);
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC001.java
View file @
43dbaa5b
...
...
@@ -236,7 +236,7 @@ public class ServiceHPSC001 extends ServiceBase {
hpsc001
.
fromMap
(
map
);
Map
hpsc002
=
new
HashMap
();
hpsc002
.
put
(
"companyCode"
,
hpsc001
.
getCompanyCode
());
hpsc002
.
put
(
"dep
t
Code"
,
hpsc001
.
getDepCode
());
hpsc002
.
put
(
"depCode"
,
hpsc001
.
getDepCode
());
hpsc002
.
put
(
"projCode"
,
hpsc001
.
getProjCode
());
hpsc002
.
put
(
"projName"
,
hpsc001
.
getProjName
());
hpsc002
.
put
(
"parentId"
,
"root"
);
//固定写死
...
...
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL001A.java
View file @
43dbaa5b
...
...
@@ -24,7 +24,7 @@ public class HPZL001A extends DaoEPBase {
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键ID*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码 预留*/
public
static
final
String
FIELD_DEP
T_CODE
=
"dept
Code"
;
/* 部门编码 预留*/
public
static
final
String
FIELD_DEP
_CODE
=
"dep
Code"
;
/* 部门编码 预留*/
public
static
final
String
FIELD_DOC_TYPE
=
"docType"
;
/* 附件类型*/
public
static
final
String
FIELD_CHECK_ID
=
"checkId"
;
/* 质量巡检单ID*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件ID*/
...
...
@@ -39,7 +39,7 @@ public class HPZL001A extends DaoEPBase {
public
static
final
String
COL_ID
=
"ID"
;
/* 主键ID*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码 预留*/
public
static
final
String
COL_DEP
T_CODE
=
"DEPT
_CODE"
;
/* 部门编码 预留*/
public
static
final
String
COL_DEP
_CODE
=
"DEP
_CODE"
;
/* 部门编码 预留*/
public
static
final
String
COL_DOC_TYPE
=
"DOC_TYPE"
;
/* 附件类型*/
public
static
final
String
COL_CHECK_ID
=
"CHECK_ID"
;
/* 质量巡检单ID*/
public
static
final
String
COL_DOC_ID
=
"DOC_ID"
;
/* 文件ID*/
...
...
@@ -60,7 +60,7 @@ public class HPZL001A extends DaoEPBase {
private
Long
id
;
/* 主键ID*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
dep
t
Code
=
" "
;
/* 部门编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码 预留*/
private
Integer
docType
;
/* 附件类型*/
private
Long
checkId
;
/* 质量巡检单ID*/
private
String
docId
=
" "
;
/* 文件ID*/
...
...
@@ -88,7 +88,7 @@ public class HPZL001A extends DaoEPBase {
eiColumn
.
setDescName
(
"企业编码 预留"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP
T
_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码 预留"
);
eiMetadata
.
addMeta
(
eiColumn
);
...
...
@@ -179,20 +179,20 @@ public class HPZL001A extends DaoEPBase {
this
.
companyCode
=
companyCode
;
}
/**
* get the dep
t
Code - 部门编码 预留.
* @return the dep
t
Code
* get the depCode - 部门编码 预留.
* @return the depCode
*/
public
String
getDep
t
Code
()
{
return
this
.
dep
t
Code
;
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the dep
t
Code - 部门编码 预留.
* set the depCode - 部门编码 预留.
*
* @param dep
t
Code - 部门编码 预留
* @param depCode - 部门编码 预留
*/
public
void
setDep
tCode
(
String
dept
Code
)
{
this
.
dep
tCode
=
dept
Code
;
public
void
setDep
Code
(
String
dep
Code
)
{
this
.
dep
Code
=
dep
Code
;
}
/**
* get the docType - 附件类型.
...
...
@@ -380,7 +380,7 @@ public class HPZL001A extends DaoEPBase {
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDep
tCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEPT_CODE
)),
dept
Code
));
setDep
Code
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
dep
Code
));
setDocType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_TYPE
)),
docType
));
setCheckId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_ID
)),
checkId
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
...
...
@@ -403,7 +403,7 @@ public class HPZL001A extends DaoEPBase {
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
T_CODE
,
StringUtils
.
toString
(
deptCode
,
eiMetadata
.
getMeta
(
FIELD_DEPT
_CODE
)));
map
.
put
(
FIELD_DEP
_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP
_CODE
)));
map
.
put
(
FIELD_DOC_TYPE
,
StringUtils
.
toString
(
docType
,
eiMetadata
.
getMeta
(
FIELD_DOC_TYPE
)));
map
.
put
(
FIELD_CHECK_ID
,
StringUtils
.
toString
(
checkId
,
eiMetadata
.
getMeta
(
FIELD_CHECK_ID
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
...
...
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001A.xml
View file @
43dbaa5b
...
...
@@ -5,7 +5,7 @@
<sql
id=
"column"
>
A.ID as "id",
A.COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
A.DEP
T_CODE as "dept
Code",
<!-- 部门编码 预留 -->
A.DEP
_CODE as "dep
Code",
<!-- 部门编码 预留 -->
A.CHECK_ID as "checkId",
<!-- 检查单ID -->
A.DOC_TYPE as "docType",
<!-- 文件类型 -->
A.DOC_ID as "docId",
<!-- 文件ID -->
...
...
@@ -47,8 +47,8 @@
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"dep
t
Code"
>
A.DEP
T_CODE = #dept
Code#
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
A.DEP
_CODE = #dep
Code#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkId"
>
A.CHECK_ID = #checkId#
...
...
@@ -154,7 +154,7 @@
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPZL001A (
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP
T
_CODE,
<!-- 部门编码 预留 -->
DEP_CODE,
<!-- 部门编码 预留 -->
CHECK_ID,
<!-- 巡检单ID -->
DOC_TYPE,
<!-- 文件类型 -->
DOC_ID,
<!-- 文件ID -->
...
...
@@ -162,7 +162,7 @@
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME
<!-- 创建时间 -->
) VALUES (
#companyCode#, #dep
t
Code#, #checkId#, #docType#, #docId#, #createdBy#,
#companyCode#, #depCode#, #checkId#, #docType#, #docId#, #createdBy#,
#createdName#, #createdTime#
)
</insert>
...
...
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