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
636d636e
Commit
636d636e
authored
Mar 06, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/03/06 附件同步删除
parent
fcda275c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1222 additions
and
0 deletions
+1222
-0
HPDS001.java
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS001.java
+295
-0
HPDS002.java
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS002.java
+452
-0
ServiceHPDS001.java
.../java/com/baosight/hpjx/hp/ds/service/ServiceHPDS001.java
+26
-0
ServiceHPDS002.java
.../java/com/baosight/hpjx/hp/ds/service/ServiceHPDS002.java
+70
-0
HPDS001.xml
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS001.xml
+148
-0
HPDS002.xml
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS002.xml
+231
-0
No files found.
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS001.java
0 → 100644
View file @
636d636e
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
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
;
/**
* Project: <br>
* Title:SysOperationLog.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-03-04 15:58:48 create
*/
public
class
HPDS001
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键id*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
public
static
final
String
FIELD_OPER_MODUL
=
"operModul"
;
/* 操作模块*/
public
static
final
String
FIELD_OPER_TYPE
=
"operType"
;
/* 操作类型*/
public
static
final
String
FIELD_OPER_DESC
=
"operDesc"
;
/* 操作说明*/
public
static
final
String
FIELD_OPER_CONTENT
=
"operContent"
;
/* 操作内容*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 创建人*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 创建人名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 创建时间*/
public
static
final
String
COL_OPER_MODUL
=
"OPER_MODUL"
;
/* 操作模块*/
public
static
final
String
COL_OPER_TYPE
=
"OPER_TYPE"
;
/* 操作类型*/
public
static
final
String
COL_OPER_DESC
=
"OPER_DESC"
;
/* 操作说明*/
public
static
final
String
COL_OPER_CONTENT
=
"OPER_CONTENT"
;
/* 操作内容*/
public
static
final
String
QUERY
=
"sys_operation_log.query"
;
public
static
final
String
COUNT
=
"sys_operation_log.count"
;
public
static
final
String
INSERT
=
"sys_operation_log.insert"
;
public
static
final
String
UPDATE
=
"sys_operation_log.update"
;
public
static
final
String
DELETE
=
"sys_operation_log.delete"
;
private
Long
id
=
new
Long
(
0
);
/* 主键id*/
private
String
companyCode
=
" "
;
/* 企业编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
operModul
=
" "
;
/* 操作模块*/
private
String
operType
=
" "
;
/* 操作类型*/
private
String
operDesc
=
" "
;
/* 操作说明*/
private
String
operContent
=
" "
;
/* 操作内容*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"主键id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_MODUL
);
eiColumn
.
setDescName
(
"操作模块"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_TYPE
);
eiColumn
.
setDescName
(
"操作类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_DESC
);
eiColumn
.
setDescName
(
"操作说明"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_CONTENT
);
eiColumn
.
setDescName
(
"操作内容"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPDS001
()
{
initMetaData
();
}
/**
* get the id - 主键id.
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id - 主键id.
*
* @param id - 主键id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the operModul - 操作模块.
* @return the operModul
*/
public
String
getOperModul
()
{
return
this
.
operModul
;
}
/**
* set the operModul - 操作模块.
*
* @param operModul - 操作模块
*/
public
void
setOperModul
(
String
operModul
)
{
this
.
operModul
=
operModul
;
}
/**
* get the operType - 操作类型.
* @return the operType
*/
public
String
getOperType
()
{
return
this
.
operType
;
}
/**
* set the operType - 操作类型.
*
* @param operType - 操作类型
*/
public
void
setOperType
(
String
operType
)
{
this
.
operType
=
operType
;
}
/**
* get the operDesc - 操作说明.
* @return the operDesc
*/
public
String
getOperDesc
()
{
return
this
.
operDesc
;
}
/**
* set the operDesc - 操作说明.
*
* @param operDesc - 操作说明
*/
public
void
setOperDesc
(
String
operDesc
)
{
this
.
operDesc
=
operDesc
;
}
/**
* get the operContent - 操作内容.
* @return the operContent
*/
public
String
getOperContent
()
{
return
this
.
operContent
;
}
/**
* set the operContent - 操作内容.
*
* @param operContent - 操作内容
*/
public
void
setOperContent
(
String
operContent
)
{
this
.
operContent
=
operContent
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setOperModul
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_MODUL
)),
operModul
));
setOperType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_TYPE
)),
operType
));
setOperDesc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_DESC
)),
operDesc
));
setOperContent
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_CONTENT
)),
operContent
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
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_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_OPER_MODUL
,
StringUtils
.
toString
(
operModul
,
eiMetadata
.
getMeta
(
FIELD_OPER_MODUL
)));
map
.
put
(
FIELD_OPER_TYPE
,
StringUtils
.
toString
(
operType
,
eiMetadata
.
getMeta
(
FIELD_OPER_TYPE
)));
map
.
put
(
FIELD_OPER_DESC
,
StringUtils
.
toString
(
operDesc
,
eiMetadata
.
getMeta
(
FIELD_OPER_DESC
)));
map
.
put
(
FIELD_OPER_CONTENT
,
StringUtils
.
toString
(
operContent
,
eiMetadata
.
getMeta
(
FIELD_OPER_CONTENT
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS002.java
0 → 100644
View file @
636d636e
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
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
;
/**
* Project: <br>
* Title:TeudmTemp.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-03-06 16:14:16 create
*/
public
class
HPDS002
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件标识*/
public
static
final
String
FIELD_DIR_ID
=
"dirId"
;
/* 目录标识*/
public
static
final
String
FIELD_DOC_NAME
=
"docName"
;
/* 文件名*/
public
static
final
String
FIELD_CHG_NAME
=
"chgName"
;
/* 物理文件名*/
public
static
final
String
FIELD_DOC_SIZE
=
"docSize"
;
/* 文件大小*/
public
static
final
String
FIELD_DOC_TAG
=
"docTag"
;
/* 文件标签*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_ARCHIVE_FLAG
=
"archiveFlag"
;
/* 同步标记*/
public
static
final
String
FIELD_REAL_PATH
=
"realPath"
;
/* 物理路径*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DOC_ID
=
"DOC_ID"
;
/* 文件标识*/
public
static
final
String
COL_DIR_ID
=
"DIR_ID"
;
/* 目录标识*/
public
static
final
String
COL_DOC_NAME
=
"DOC_NAME"
;
/* 文件名*/
public
static
final
String
COL_CHG_NAME
=
"CHG_NAME"
;
/* 物理文件名*/
public
static
final
String
COL_DOC_SIZE
=
"DOC_SIZE"
;
/* 文件大小*/
public
static
final
String
COL_DOC_TAG
=
"DOC_TAG"
;
/* 文件标签*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_ARCHIVE_FLAG
=
"ARCHIVE_FLAG"
;
/* 同步标记*/
public
static
final
String
COL_REAL_PATH
=
"REAL_PATH"
;
/* 物理路径*/
public
static
final
String
QUERY
=
"HPDS002.query"
;
public
static
final
String
COUNT
=
"HPDS002.count"
;
public
static
final
String
INSERT
=
"HPDS002.insert"
;
public
static
final
String
UPDATE
=
"HPDS002.update"
;
public
static
final
String
DELETE
=
"HPDS002.delete"
;
public
static
final
String
DELETE_BATCH
=
"HPDS002.deleteByBatch"
;
private
String
companyCode
=
" "
;
/* 企业编码*/
private
String
docId
=
" "
;
/* 文件标识*/
private
String
dirId
=
" "
;
/* 目录标识*/
private
String
docName
=
" "
;
/* 文件名*/
private
String
chgName
=
" "
;
/* 物理文件名*/
private
BigDecimal
docSize
=
new
BigDecimal
(
0
);
/* 文件大小*/
private
String
docTag
=
" "
;
/* 文件标签*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
archiveFlag
=
" "
;
/* 同步标记*/
private
String
realPath
=
" "
;
/* 物理路径*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"文件标识"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DIR_ID
);
eiColumn
.
setDescName
(
"目录标识"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_NAME
);
eiColumn
.
setDescName
(
"文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHG_NAME
);
eiColumn
.
setDescName
(
"物理文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_SIZE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
16
);
eiColumn
.
setDescName
(
"文件大小"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_TAG
);
eiColumn
.
setDescName
(
"文件标签"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ARCHIVE_FLAG
);
eiColumn
.
setDescName
(
"同步标记"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REAL_PATH
);
eiColumn
.
setDescName
(
"物理路径"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPDS002
()
{
initMetaData
();
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the docId - 文件标识.
* @return the docId
*/
public
String
getDocId
()
{
return
this
.
docId
;
}
/**
* set the docId - 文件标识.
*
* @param docId - 文件标识
*/
public
void
setDocId
(
String
docId
)
{
this
.
docId
=
docId
;
}
/**
* get the dirId - 目录标识.
* @return the dirId
*/
public
String
getDirId
()
{
return
this
.
dirId
;
}
/**
* set the dirId - 目录标识.
*
* @param dirId - 目录标识
*/
public
void
setDirId
(
String
dirId
)
{
this
.
dirId
=
dirId
;
}
/**
* get the docName - 文件名.
* @return the docName
*/
public
String
getDocName
()
{
return
this
.
docName
;
}
/**
* set the docName - 文件名.
*
* @param docName - 文件名
*/
public
void
setDocName
(
String
docName
)
{
this
.
docName
=
docName
;
}
/**
* get the chgName - 物理文件名.
* @return the chgName
*/
public
String
getChgName
()
{
return
this
.
chgName
;
}
/**
* set the chgName - 物理文件名.
*
* @param chgName - 物理文件名
*/
public
void
setChgName
(
String
chgName
)
{
this
.
chgName
=
chgName
;
}
/**
* get the docSize - 文件大小.
* @return the docSize
*/
public
BigDecimal
getDocSize
()
{
return
this
.
docSize
;
}
/**
* set the docSize - 文件大小.
*
* @param docSize - 文件大小
*/
public
void
setDocSize
(
BigDecimal
docSize
)
{
this
.
docSize
=
docSize
;
}
/**
* get the docTag - 文件标签.
* @return the docTag
*/
public
String
getDocTag
()
{
return
this
.
docTag
;
}
/**
* set the docTag - 文件标签.
*
* @param docTag - 文件标签
*/
public
void
setDocTag
(
String
docTag
)
{
this
.
docTag
=
docTag
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the archiveFlag - 同步标记.
* @return the archiveFlag
*/
public
String
getArchiveFlag
()
{
return
this
.
archiveFlag
;
}
/**
* set the archiveFlag - 同步标记.
*
* @param archiveFlag - 同步标记
*/
@Override
public
void
setArchiveFlag
(
String
archiveFlag
)
{
this
.
archiveFlag
=
archiveFlag
;
}
/**
* get the realPath - 物理路径.
* @return the realPath
*/
public
String
getRealPath
()
{
return
this
.
realPath
;
}
/**
* set the realPath - 物理路径.
*
* @param realPath - 物理路径
*/
public
void
setRealPath
(
String
realPath
)
{
this
.
realPath
=
realPath
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
setDirId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DIR_ID
)),
dirId
));
setDocName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_NAME
)),
docName
));
setChgName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHG_NAME
)),
chgName
));
setDocSize
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_SIZE
)),
docSize
));
setDocTag
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_TAG
)),
docTag
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setArchiveFlag
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ARCHIVE_FLAG
)),
archiveFlag
));
setRealPath
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REAL_PATH
)),
realPath
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
map
.
put
(
FIELD_DIR_ID
,
StringUtils
.
toString
(
dirId
,
eiMetadata
.
getMeta
(
FIELD_DIR_ID
)));
map
.
put
(
FIELD_DOC_NAME
,
StringUtils
.
toString
(
docName
,
eiMetadata
.
getMeta
(
FIELD_DOC_NAME
)));
map
.
put
(
FIELD_CHG_NAME
,
StringUtils
.
toString
(
chgName
,
eiMetadata
.
getMeta
(
FIELD_CHG_NAME
)));
map
.
put
(
FIELD_DOC_SIZE
,
StringUtils
.
toString
(
docSize
,
eiMetadata
.
getMeta
(
FIELD_DOC_SIZE
)));
map
.
put
(
FIELD_DOC_TAG
,
StringUtils
.
toString
(
docTag
,
eiMetadata
.
getMeta
(
FIELD_DOC_TAG
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_ARCHIVE_FLAG
,
StringUtils
.
toString
(
archiveFlag
,
eiMetadata
.
getMeta
(
FIELD_ARCHIVE_FLAG
)));
map
.
put
(
FIELD_REAL_PATH
,
StringUtils
.
toString
(
realPath
,
eiMetadata
.
getMeta
(
FIELD_REAL_PATH
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/ds/service/ServiceHPDS001.java
0 → 100644
View file @
636d636e
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.hp.ds.domain.HPDS001
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
/**
* Title: 历史数据清理 <br>
* @author LiuYang
* @version 1.0 2024/3/4
*/
public
class
ServiceHPDS001
extends
ServiceEPBase
{
@Override
@OperationLogAnnotation
(
operModul
=
"系统操作日志"
,
operType
=
"页面初始化"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
return
super
.
initLoad
(
inInfo
);
}
@OperationLogAnnotation
(
operModul
=
"系统操作日志"
,
operType
=
"删除"
,
operDesc
=
"删除6个月之前的历史数据"
)
public
EiInfo
deleteHistory
(
EiInfo
inInfo
)
{
return
super
.
delete
(
inInfo
,
"HPDS001.deleteHistory"
);
}
}
src/main/java/com/baosight/hpjx/hp/ds/service/ServiceHPDS002.java
0 → 100644
View file @
636d636e
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.ds.domain.HPDS002
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.LogUtils
;
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.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* Title:文件备份 <br>
* @author LiuYang
* @version 1.0 2024/3/5
*/
public
class
ServiceHPDS002
extends
ServiceEPBase
{
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
return
super
.
initLoad
(
inInfo
);
}
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
return
super
.
query
(
inInfo
);
}
@Override
@OperationLogAnnotation
(
operModul
=
"文件备份"
,
operType
=
"删除"
,
operDesc
=
"删除文件备份数据"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
return
super
.
delete
(
inInfo
);
}
@Override
@OperationLogAnnotation
(
operModul
=
"文件备份"
,
operType
=
"修改"
,
operDesc
=
"修改文件备份数据"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
return
super
.
update
(
inInfo
);
}
@Override
@OperationLogAnnotation
(
operModul
=
"文件备份"
,
operType
=
"新增"
,
operDesc
=
"新增文件备份数据"
)
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
EiBlock
block
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
block
.
getRowCount
();
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>(
1
);
map
.
put
(
"docId"
,
block
.
getCellStr
(
i
,
HPDS002
.
FIELD_DOC_ID
));
List
<
Map
<
String
,
Object
>>
list
=
this
.
dao
.
query
(
"EUDM02.query"
,
map
);
HPDS002
hpds002
=
new
HPDS002
();
hpds002
.
fromMap
(
block
.
getRow
(
i
));
hpds002
.
setChgName
(
list
.
get
(
0
).
get
(
"chgName"
).
toString
());
hpds002
.
setDirId
(
list
.
get
(
0
).
get
(
"dirId"
).
toString
());
DaoUtils
.
insert
(
HPDS002
.
INSERT
,
hpds002
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
block
.
getRowCount
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
){
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS001.xml
0 → 100644
View file @
636d636e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-03-04 15:58:48
Version : 1.0
schema : hpjx
tableName : SYS_OPERATION_LOG
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
OPER_MODUL VARCHAR,
OPER_TYPE VARCHAR,
OPER_DESC VARCHAR,
OPER_CONTENT VARCHAR
-->
<sqlMap
namespace=
"HPDS001"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operModul"
>
OPER_MODUL = #operModul#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operType"
>
OPER_TYPE = #operType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operDesc"
>
OPER_DESC = #operDesc#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operContent"
>
OPER_CONTENT = #operContent#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.ds.domain.HPDS001"
>
SELECT
ID as "id",
<!-- 主键id -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
OPER_MODUL as "operModul",
<!-- 操作模块 -->
OPER_TYPE as "operType",
<!-- 操作类型 -->
OPER_DESC as "operDesc",
<!-- 操作说明 -->
OPER_CONTENT as "operContent"
<!-- 操作内容 -->
FROM ${hpjxSchema}.SYS_OPERATION_LOG WHERE 1=1
<include
refid=
"condition"
/>
<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 ${hpjxSchema}.SYS_OPERATION_LOG WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operModul">
OPER_MODUL = #operModul#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operType">
OPER_TYPE = #operType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operDesc">
OPER_DESC = #operDesc#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operContent">
OPER_CONTENT = #operContent#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.SYS_OPERATION_LOG (ID,
<!-- 主键id -->
COMPANY_CODE,
<!-- 企业编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
OPER_MODUL,
<!-- 操作模块 -->
OPER_TYPE,
<!-- 操作类型 -->
OPER_DESC,
<!-- 操作说明 -->
OPER_CONTENT
<!-- 操作内容 -->
)
VALUES (#id#, #companyCode#, #createdBy#, #createdName#, #createdTime#, #operModul#, #operType#, #operDesc#, #operContent#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.SYS_OPERATION_LOG WHERE
ID = #id#
</delete>
<!--删除6个月以前的历史数据-->
<delete
id=
"deleteHistory"
>
delete from ${hpjxSchema}.SYS_OPERATION_LOG where left(CREATED_TIME,8)
<
= DATE_FORMAT(DATE_SUB(CURDATE(), interval 6 month), '%Y%m%d')
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.SYS_OPERATION_LOG
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
OPER_MODUL = #operModul#,
<!-- 操作模块 -->
OPER_TYPE = #operType#,
<!-- 操作类型 -->
OPER_DESC = #operDesc#,
<!-- 操作说明 -->
OPER_CONTENT = #operContent#
<!-- 操作内容 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS002.xml
0 → 100644
View file @
636d636e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-03-06 16:14:16
Version : 1.0
schema : hpjx
tableName : TEUDM_TEMP
COMPANY_CODE VARCHAR NOT NULL primarykey,
DOC_ID VARCHAR NOT NULL primarykey,
DIR_ID VARCHAR NOT NULL,
DOC_NAME VARCHAR NOT NULL,
CHG_NAME VARCHAR NOT NULL,
DOC_SIZE DECIMAL NOT NULL,
DOC_TAG VARCHAR NOT NULL,
CREATED_BY VARCHAR NOT NULL,
CREATED_NAME VARCHAR NOT NULL,
CREATED_TIME VARCHAR NOT NULL,
UPDATED_BY VARCHAR NOT NULL,
UPDATED_NAME VARCHAR NOT NULL,
UPDATED_TIME VARCHAR NOT NULL,
ARCHIVE_FLAG VARCHAR NOT NULL,
REAL_PATH VARCHAR
-->
<sqlMap
namespace=
"HPDS002"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"dirId"
>
DIR_ID = #dirId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
DOC_NAME = #docName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"chgName"
>
CHG_NAME = #chgName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docSize"
>
DOC_SIZE = #docSize#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docTag"
>
DOC_TAG = #docTag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"archiveFlag"
>
ARCHIVE_FLAG = #archiveFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"realPath"
>
REAL_PATH = #realPath#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.ds.domain.HPDS002"
>
SELECT
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
DOC_ID as "docId",
<!-- 文件标识 -->
DIR_ID as "dirId",
<!-- 目录标识 -->
DOC_NAME as "docName",
<!-- 文件名 -->
CHG_NAME as "chgName",
<!-- 物理文件名 -->
DOC_SIZE as "docSize",
<!-- 文件大小 -->
DOC_TAG as "docTag",
<!-- 文件标签 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
ARCHIVE_FLAG as "archiveFlag",
<!-- 同步标记 -->
REAL_PATH as "realPath"
<!-- 物理路径 -->
FROM ${hpjxSchema}.TEUDM_TEMP WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
COMPANY_CODE asc,
DOC_ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.TEUDM_TEMP WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docId">
DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="dirId">
DIR_ID = #dirId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docName">
DOC_NAME = #docName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="chgName">
CHG_NAME = #chgName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docSize">
DOC_SIZE = #docSize#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docTag">
DOC_TAG = #docTag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="archiveFlag">
ARCHIVE_FLAG = #archiveFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="realPath">
REAL_PATH = #realPath#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.TEUDM_TEMP (COMPANY_CODE,
<!-- 企业编码 -->
DOC_ID,
<!-- 文件标识 -->
DIR_ID,
<!-- 目录标识 -->
DOC_NAME,
<!-- 文件名 -->
CHG_NAME,
<!-- 物理文件名 -->
DOC_SIZE,
<!-- 文件大小 -->
DOC_TAG,
<!-- 文件标签 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
ARCHIVE_FLAG,
<!-- 同步标记 -->
REAL_PATH
<!-- 物理路径 -->
)
VALUES (#companyCode#, #docId#, #dirId#, #docName#, #chgName#, #docSize#, #docTag#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #archiveFlag#, #realPath#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.TEUDM_TEMP WHERE
COMPANY_CODE = #companyCode# AND
DOC_ID = #docId#
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.TEUDM_TEMP
SET
DIR_ID = #dirId#,
<!-- 目录标识 -->
DOC_NAME = #docName#,
<!-- 文件名 -->
CHG_NAME = #chgName#,
<!-- 物理文件名 -->
DOC_SIZE = #docSize#,
<!-- 文件大小 -->
DOC_TAG = #docTag#,
<!-- 文件标签 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
ARCHIVE_FLAG = #archiveFlag#,
<!-- 同步标记 -->
REAL_PATH = #realPath#
<!-- 物理路径 -->
WHERE
COMPANY_CODE = #companyCode# AND
DOC_ID = #docId#
</update>
<!--批量删除-->
<delete
id=
"deleteByBatch"
>
DELETE FROM hpjx.TEUDM_TEMP WHERE DOC_ID in $docId$
</delete>
<!--查询物料清单文件ID-->
<select
id=
"queryByDocId"
parameterMap=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
DOC_ID as "docId",
<!-- 文件标识 -->
DIR_ID as "dirId",
<!-- 目录标识 -->
DOC_NAME as "docName",
<!-- 文件名 -->
CHG_NAME as "chgName",
<!-- 物理文件名 -->
DOC_SIZE as "docSize",
<!-- 文件大小 -->
DOC_TAG as "docTag",
<!-- 文件标签 -->
REC_CREATOR as "recCreator",
<!-- 记录创建者 -->
REC_CREATE_TIME as "recCreateTime",
<!-- 记录创建时间 -->
REC_REVISOR as "recRevisor",
<!-- 记录修改者 -->
REC_REVISE_TIME as "recReviseTime",
<!-- 记录修改时间 -->
ARCHIVE_FLAG as "archiveFlag",
<!-- 同步标记 -->
REAL_PATH as "realPath"
<!-- 物理路径 -->
from
HPJX.TEUDM_TEMP
where
DOC_ID in $docId$
</select>
</sqlMap>
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