Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
4e6dda63
Commit
4e6dda63
authored
Dec 15, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复实体关系
parent
eed1072e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
YzgFileDaoImpl.java
...a/com/yanzuoguang/cloud/file/dao/impl/YzgFileDaoImpl.java
+20
-13
No files found.
yzg-util-file/src/main/java/com/yanzuoguang/cloud/file/dao/impl/YzgFileDaoImpl.java
View file @
4e6dda63
...
...
@@ -20,19 +20,26 @@ import java.util.List;
@Component
public
class
YzgFileDaoImpl
extends
BaseDaoImpl
implements
YzgFileDao
,
InitializingBean
{
private
static
final
String
QUERY_TABLE_SQL
=
"SHOW TABLES LIKE 'queue_message'"
;
private
static
final
String
CREATE_TABLE_SQL
=
"CREATE TABLE `queue_message` ( "
+
" `MessageId` varchar(32) NOT NULL COMMENT '消息编号', "
+
" `ExchangeName` varchar(255) NOT NULL DEFAULT '' COMMENT '交换器', "
+
" `RouteKey` varchar(255) NOT NULL DEFAULT '' COMMENT '路由键', "
+
" `Message` text NOT NULL COMMENT '消息内容', "
+
" `DedTime` bigint(20) NOT NULL DEFAULT '0' COMMENT '死信时间', "
+
" `HandleCount` int(11) NOT NULL DEFAULT '0' COMMENT '处理次数', "
+
" `HandleTime` datetime NOT NULL COMMENT '上次处理时间', "
+
" `BatchId` varchar(32) NOT NULL COMMENT '发送批次', "
+
" `CreateTime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', "
+
" PRIMARY KEY (`MessageId`), "
+
" KEY `IndexHandleTime` (`HandleTime`) "
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='队列消息表'"
;
private
static
final
String
CREATE_TABLE_SQL
=
"CREATE TABLE Yzg_File ( "
+
" fileId VARCHAR(32) NOT NULL COMMENT '编号', "
+
" companyId VARCHAR(32) NOT NULL COMMENT '公司编号', "
+
" companyName VARCHAR(100) NOT NULL DEFAULT '' COMMENT '公司名称', "
+
" callbackMQ VARCHAR(100) NOT NULL DEFAULT '' COMMENT '功能点关键字,同一个callbackMQ的同时已开始的文件数不能超过3(可配置)', "
+
" callbackParameter LONGTEXT NOT NULL COMMENT '回调MQ参数', "
+
" fileName VARCHAR(255) NOT NULL DEFAULT '' COMMENT '文件名称,用于下载时显示文件名,需要下载时用户输入或自动生成', "
+
" fileStatus INT NOT NULL DEFAULT 0 COMMENT '文件状态:0-未开始,1-已开始,2-导出成功,3-导出失败', "
+
" fileRow INT NOT NULL DEFAULT 0 COMMENT '导出行数', "
+
" errorMessage VARCHAR(255) NOT NULL DEFAULT '' COMMENT '错误消息', "
+
" downloadDate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '下载时间', "
+
" downloadUserId VARCHAR(32) NOT NULL COMMENT '下载人', "
+
" createDate DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', "
+
" createUserId VARCHAR(32) NOT NULL COMMENT '修改设备', "
+
" INDEX IndexCreateDate(createDate), "
+
" INDEX IndexCompanyCreateUserId(companyId,createUserId), "
+
" INDEX IndexCompanyId(companyId), "
+
" INDEX IndexCreateUserId(createUserId), "
+
" PRIMARY KEY (fileId) "
+
") COMMENT '导出文件服务'; "
;
@Override
protected
void
init
()
{
...
...
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