Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
0640485c
Commit
0640485c
authored
Aug 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-19 文档库
parent
5b79a625
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
5 deletions
+60
-5
HGWD001.java
src/main/java/com/baosight/hggp/hg/wd/domain/HGWD001.java
+35
-0
HGWD001.xml
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
+25
-5
No files found.
src/main/java/com/baosight/hggp/hg/wd/domain/HGWD001.java
View file @
0640485c
...
@@ -35,6 +35,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -35,6 +35,7 @@ public class HGWD001 extends DaoEPBase {
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_FILE_ID
=
" "
;
/*文件ID*/
public
static
final
String
FIELD_FILE_TYPE
=
"fileType"
;
/* 文件类型*/
public
static
final
String
FIELD_FILE_TYPE
=
"fileType"
;
/* 文件类型*/
public
static
final
String
FIELD_FILE_NAME
=
"fileName"
;
/* 文件名称*/
public
static
final
String
FIELD_FILE_NAME
=
"fileName"
;
/* 文件名称*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件号*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件号*/
...
@@ -42,6 +43,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -42,6 +43,7 @@ public class HGWD001 extends DaoEPBase {
public
static
final
String
FIELD_DOC_VERSION
=
"docVersion"
;
/* 文件版本号*/
public
static
final
String
FIELD_DOC_VERSION
=
"docVersion"
;
/* 文件版本号*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态*/
public
static
final
String
FIELD_REMARK
=
"remark"
;
/* 备注*/
public
static
final
String
FIELD_REMARK
=
"remark"
;
/* 备注*/
public
static
final
String
FIELD_RELEASE_DATE
=
"releaseDate"
;
/* 发布时间*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
...
@@ -70,6 +72,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -70,6 +72,7 @@ public class HGWD001 extends DaoEPBase {
public
static
final
String
INSERT
=
"HGWD001.insert"
;
public
static
final
String
INSERT
=
"HGWD001.insert"
;
public
static
final
String
UPDATE
=
"HGWD001.update"
;
public
static
final
String
UPDATE
=
"HGWD001.update"
;
public
static
final
String
DELETE
=
"HGWD001.delete"
;
public
static
final
String
DELETE
=
"HGWD001.delete"
;
public
static
final
String
RELEASE_DATE
=
"HGWD001.releaseDate"
;
private
Long
id
=
new
Long
(
0
);
private
Long
id
=
new
Long
(
0
);
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
accountCode
=
" "
;
/* 企业编码*/
...
@@ -85,6 +88,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -85,6 +88,7 @@ public class HGWD001 extends DaoEPBase {
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
fileId
=
" "
;
private
String
fileType
=
" "
;
/* 文件类型*/
private
String
fileType
=
" "
;
/* 文件类型*/
private
String
fileName
=
" "
;
/* 文件名称*/
private
String
fileName
=
" "
;
/* 文件名称*/
private
String
docId
=
" "
;
/* 文件号*/
private
String
docId
=
" "
;
/* 文件号*/
...
@@ -92,6 +96,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -92,6 +96,7 @@ public class HGWD001 extends DaoEPBase {
private
Integer
docVersion
=
new
Integer
(
0
);
/* 文件版本号*/
private
Integer
docVersion
=
new
Integer
(
0
);
/* 文件版本号*/
private
Integer
status
;
/* 状态*/
private
Integer
status
;
/* 状态*/
private
String
remark
=
" "
;
/* 备注*/
private
String
remark
=
" "
;
/* 备注*/
private
String
releaseDate
=
" "
;
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -156,6 +161,10 @@ public class HGWD001 extends DaoEPBase {
...
@@ -156,6 +161,10 @@ public class HGWD001 extends DaoEPBase {
eiColumn
.
setDescName
(
"项目名称"
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_FILE_ID
);
eiColumn
.
setDescName
(
"文件ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_FILE_TYPE
);
eiColumn
=
new
EiColumn
(
FIELD_FILE_TYPE
);
eiColumn
.
setDescName
(
"文件类型"
);
eiColumn
.
setDescName
(
"文件类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -184,6 +193,10 @@ public class HGWD001 extends DaoEPBase {
...
@@ -184,6 +193,10 @@ public class HGWD001 extends DaoEPBase {
eiColumn
.
setDescName
(
"备注"
);
eiColumn
.
setDescName
(
"备注"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RELEASE_DATE
);
eiColumn
.
setDescName
(
"发布时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
...
@@ -418,6 +431,15 @@ public class HGWD001 extends DaoEPBase {
...
@@ -418,6 +431,15 @@ public class HGWD001 extends DaoEPBase {
public
void
setProjName
(
String
projName
)
{
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
this
.
projName
=
projName
;
}
}
public
String
getFileId
()
{
return
fileId
;
}
public
void
setFileId
(
String
fileId
)
{
this
.
fileId
=
fileId
;
}
/**
/**
* get the fileType - 文件类型.
* get the fileType - 文件类型.
* @return the fileType
* @return the fileType
...
@@ -530,6 +552,15 @@ public class HGWD001 extends DaoEPBase {
...
@@ -530,6 +552,15 @@ public class HGWD001 extends DaoEPBase {
public
void
setRemark
(
String
remark
)
{
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
this
.
remark
=
remark
;
}
}
public
String
getReleaseDate
()
{
return
releaseDate
;
}
public
void
setReleaseDate
(
String
releaseDate
)
{
this
.
releaseDate
=
releaseDate
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -552,6 +583,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -552,6 +583,7 @@ public class HGWD001 extends DaoEPBase {
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setFileId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_ID
)),
fileId
));
setFileType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_TYPE
)),
fileType
));
setFileType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_TYPE
)),
fileType
));
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_NAME
)),
fileName
));
setFileName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FILE_NAME
)),
fileName
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
...
@@ -559,6 +591,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -559,6 +591,7 @@ public class HGWD001 extends DaoEPBase {
setDocVersion
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_VERSION
)),
docVersion
));
setDocVersion
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_VERSION
)),
docVersion
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMARK
)),
remark
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMARK
)),
remark
));
setReleaseDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RELEASE_DATE
)),
releaseDate
));
}
}
/**
/**
...
@@ -582,6 +615,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -582,6 +615,7 @@ public class HGWD001 extends DaoEPBase {
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_FILE_ID
,
StringUtils
.
toString
(
fileId
,
eiMetadata
.
getMeta
(
FIELD_FILE_ID
)));
map
.
put
(
FIELD_FILE_TYPE
,
StringUtils
.
toString
(
fileType
,
eiMetadata
.
getMeta
(
FIELD_FILE_TYPE
)));
map
.
put
(
FIELD_FILE_TYPE
,
StringUtils
.
toString
(
fileType
,
eiMetadata
.
getMeta
(
FIELD_FILE_TYPE
)));
map
.
put
(
FIELD_FILE_NAME
,
StringUtils
.
toString
(
fileName
,
eiMetadata
.
getMeta
(
FIELD_FILE_NAME
)));
map
.
put
(
FIELD_FILE_NAME
,
StringUtils
.
toString
(
fileName
,
eiMetadata
.
getMeta
(
FIELD_FILE_NAME
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
...
@@ -589,6 +623,7 @@ public class HGWD001 extends DaoEPBase {
...
@@ -589,6 +623,7 @@ public class HGWD001 extends DaoEPBase {
map
.
put
(
FIELD_DOC_VERSION
,
StringUtils
.
toString
(
docVersion
,
eiMetadata
.
getMeta
(
FIELD_DOC_VERSION
)));
map
.
put
(
FIELD_DOC_VERSION
,
StringUtils
.
toString
(
docVersion
,
eiMetadata
.
getMeta
(
FIELD_DOC_VERSION
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_REMARK
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
FIELD_REMARK
)));
map
.
put
(
FIELD_REMARK
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
FIELD_REMARK
)));
map
.
put
(
FIELD_RELEASE_DATE
,
StringUtils
.
toString
(
releaseDate
,
eiMetadata
.
getMeta
(
FIELD_RELEASE_DATE
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
View file @
0640485c
...
@@ -17,13 +17,15 @@
...
@@ -17,13 +17,15 @@
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
FILE_ID as "fileId",
FILE_TYPE as "fileType",
<!-- 文件类型 -->
FILE_TYPE as "fileType",
<!-- 文件类型 -->
FILE_NAME as "fileName",
<!-- 文件名称 -->
FILE_NAME as "fileName",
<!-- 文件名称 -->
DOC_ID as "docId",
<!-- 文件号 -->
DOC_ID as "docId",
<!-- 文件号 -->
DOC_NAME as "docName",
<!-- 文件附件名称 -->
DOC_NAME as "docName",
<!-- 文件附件名称 -->
DOC_VERSION as "docVersion",
<!-- 文件版本号 -->
DOC_VERSION as "docVersion",
<!-- 文件版本号 -->
STATUS as "status",
<!-- 状态 -->
STATUS as "status",
<!-- 状态 -->
REMARK as "remark"
<!-- 备注 -->
REMARK as "remark",
<!-- 备注 -->
RELEASE_DATE as "releaseDate"
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
...
@@ -69,6 +71,9 @@
...
@@ -69,6 +71,9 @@
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName#, '%')
PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"fileId"
>
FILE_ID = #fileId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"fileType"
>
<isNotEmpty
prepend=
" AND "
property=
"fileType"
>
FILE_TYPE = #fileType#
FILE_TYPE = #fileType#
</isNotEmpty>
</isNotEmpty>
...
@@ -90,6 +95,9 @@
...
@@ -90,6 +95,9 @@
<isNotEmpty
prepend=
" AND "
property=
"remark"
>
<isNotEmpty
prepend=
" AND "
property=
"remark"
>
REMARK = #remark#
REMARK = #remark#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"releaseDate"
>
RELEASE_DATE = #releaseDate#
</isNotEmpty>
</sql>
</sql>
<sql
id=
"orderBy"
>
<sql
id=
"orderBy"
>
...
@@ -98,7 +106,7 @@
...
@@ -98,7 +106,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID
a
sc
ID
de
sc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</sql>
</sql>
...
@@ -130,17 +138,19 @@
...
@@ -130,17 +138,19 @@
COMPANY_NAME,
<!-- 公司名称 -->
COMPANY_NAME,
<!-- 公司名称 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PROJ_NAME,
<!-- 项目名称 -->
FILE_ID,
<!-- 文件ID -->
,
FILE_TYPE,
<!-- 文件类型 -->
FILE_TYPE,
<!-- 文件类型 -->
FILE_NAME,
<!-- 文件名称 -->
FILE_NAME,
<!-- 文件名称 -->
DOC_ID,
<!-- 文件号 -->
DOC_ID,
<!-- 文件号 -->
DOC_NAME,
<!-- 文件附件名称 -->
DOC_NAME,
<!-- 文件附件名称 -->
DOC_VERSION,
<!-- 文件版本号 -->
DOC_VERSION,
<!-- 文件版本号 -->
STATUS,
<!-- 状态 -->
STATUS,
<!-- 状态 -->
REMARK
<!-- 备注 -->
REMARK,
<!-- 备注 -->
RELEASE_DATE
) VALUES (
) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #companyCode#, #companyName#, #projCode#, #projName#, #fileType#, #fileName#,
#deleteFlag#, #companyCode#, #companyName#, #projCode#, #projName#, #file
Id#, #file
Type#, #fileName#,
#docId#, #docName#, #docVersion#, #status#, #remark#
#docId#, #docName#, #docVersion#, #status#, #remark#
, #releaseDate#
)
)
</insert>
</insert>
...
@@ -160,6 +170,16 @@
...
@@ -160,6 +170,16 @@
DOC_VERSION = #docVersion#,
<!-- 文件版本号 -->
DOC_VERSION = #docVersion#,
<!-- 文件版本号 -->
STATUS = #status#,
<!-- 状态 -->
STATUS = #status#,
<!-- 状态 -->
REMARK = #remark#,
<!-- 备注 -->
REMARK = #remark#,
<!-- 备注 -->
RELEASE_DATE = #releaseDate#,
<!--发布时间-->
<include
refid=
"SqlBase.updateRevise"
/>
WHERE ID = #id#
</update>
<update
id=
"updateReleaseDate"
>
UPDATE ${hggpSchema}.HGWD001
SET
RELEASE_DATE = #releaseDate#,
<!--发布时间-->
STATUS = #status#,
<!-- 状态 -->
<include
refid=
"SqlBase.updateRevise"
/>
<include
refid=
"SqlBase.updateRevise"
/>
WHERE ID = #id#
WHERE ID = #id#
</update>
</update>
...
...
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