Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect-api
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyi.chen
data-collect-api
Commits
1d2238a7
Commit
1d2238a7
authored
Apr 03, 2024
by
wenyi.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0403需求变动1
parent
9c4537d5
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
524 additions
and
91 deletions
+524
-91
.env
+2
-1
app/api/business/NormReceivesBus.php
+0
-6
app/api/controller/ExcelFile.php
+218
-77
app/api/controller/NormList.php
+4
-0
app/api/controller/NormReceives.php
+6
-1
app/api/controller/System.php
+2
-2
app/api/route/api.php
+2
-4
runtime/session/sess_133ef1b0a4f3dee9ec3958afb8ba7bd7
+2
-0
runtime/session/sess_15cd2b0f2447787bd314d111a82665f9
+2
-0
runtime/session/sess_2dce71faf3ca117d4e4000ecaecf7b84
+2
-0
runtime/session/sess_3b09c5acc0a82e923c2154daa73e6bf9
+2
-0
runtime/session/sess_6d2b4bfa1832992e0ffa010815ce5385
+2
-0
runtime/session/sess_91a9c85d356c5d75c23288267b266cf8
+2
-0
runtime/session/sess_d5d796a065e06447080eeb398ef71b65
+2
-0
runtime/session/sess_dd6ad8a323a674f7743023c8efa780b4
+2
-0
runtime/session/sess_f8f81b89abcbeba11000207f1bf36086
+2
-0
sql/data-collect-dev.sql
+272
-0
No files found.
.env
View file @
1d2238a7
APP_DEBUG =
false [APP] DEFAULT_TIMEZONE = Asia/Shanghai ###项目初始化配置 [init] // 项目名称 entry_name = data-collect // 是否开启调试日志 log = true ###数据库配置 [database] type = mysql hostname = huisheng_mysql database = data-collect username = root password = Huisheng@12345 hostport = 3306 charset = utf8 debug = true ###redis配置 [redis] hostname = huisheng_redis port = 6379 debug = fals
e [LANG] default_lang = zh-cn
APP_DEBUG =
true [APP] DEFAULT_TIMEZONE = Asia/Shanghai ###项目初始化配置 [init] // 项目名称 entry_name = data-collect-dev // 是否开启调试日志 log = true ###数据库配置 [database] type = mysql hostname = huisheng_mysql database = data-collect-dev username = root password = Huisheng@12345 hostport = 3306 charset = utf8 debug = true ###redis配置 [redis] hostname = huisheng_redis port = 6379 debug = tru
e [LANG] default_lang = zh-cn
\ No newline at end of file
...
...
app/api/business/NormReceivesBus.php
View file @
1d2238a7
...
@@ -34,9 +34,6 @@ class NormReceivesBus extends BaseBus
...
@@ -34,9 +34,6 @@ class NormReceivesBus extends BaseBus
if
(
!
empty
(
$data
[
'task_id'
]))
{
if
(
!
empty
(
$data
[
'task_id'
]))
{
$where
[]
=
[
'task_id'
,
'='
,
$data
[
'task_id'
]];
$where
[]
=
[
'task_id'
,
'='
,
$data
[
'task_id'
]];
}
}
if
(
!
empty
(
$data
[
'name'
]))
{
$where
[]
=
[
'name'
,
'like'
,
"%
{
$data
[
'name'
]
}
%"
];
}
if
(
!
empty
(
$data
[
'user_id'
]))
{
if
(
!
empty
(
$data
[
'user_id'
]))
{
$where
[]
=
[
'user_id'
,
'='
,
$data
[
'user_id'
]];
$where
[]
=
[
'user_id'
,
'='
,
$data
[
'user_id'
]];
}
}
...
@@ -97,9 +94,6 @@ class NormReceivesBus extends BaseBus
...
@@ -97,9 +94,6 @@ class NormReceivesBus extends BaseBus
if
(
!
empty
(
$data
[
'task_id'
]))
{
if
(
!
empty
(
$data
[
'task_id'
]))
{
$where
[]
=
[
'task_id'
,
'='
,
$data
[
'task_id'
]];
$where
[]
=
[
'task_id'
,
'='
,
$data
[
'task_id'
]];
}
}
if
(
!
empty
(
$data
[
'name'
]))
{
$where
[]
=
[
'name'
,
'like'
,
"%
{
$data
[
'name'
]
}
%"
];
}
if
(
!
empty
(
$data
[
'status'
])
||
$data
[
'status'
]
==
0
)
{
if
(
!
empty
(
$data
[
'status'
])
||
$data
[
'status'
]
==
0
)
{
$where
[]
=
[
'status'
,
'in'
,
"
{
$data
[
'status'
]
}
"
];
$where
[]
=
[
'status'
,
'in'
,
"
{
$data
[
'status'
]
}
"
];
}
}
...
...
app/api/controller/ExcelFile.php
View file @
1d2238a7
...
@@ -19,10 +19,10 @@ use think\facade\Env;
...
@@ -19,10 +19,10 @@ use think\facade\Env;
use
think\facade\Db
;
use
think\facade\Db
;
class
ExcelFile
extends
BaseController
class
ExcelFile
extends
BaseController
{
{
public
function
importFile
()
public
function
importFile
1
()
{
{
try
{
try
{
$spreadsheet
=
IOFactory
::
load
(
'
import.xlsx
'
);
$spreadsheet
=
IOFactory
::
load
(
'
./import/测试.xls
'
);
// $allSheets = $spreadsheet->getAllSheets();
// $allSheets = $spreadsheet->getAllSheets();
$objWorksheet
=
$spreadsheet
->
getSheet
(
0
);
$objWorksheet
=
$spreadsheet
->
getSheet
(
0
);
$drawings
=
$objWorksheet
->
getDrawingCollection
();
$drawings
=
$objWorksheet
->
getDrawingCollection
();
...
@@ -39,96 +39,237 @@ class ExcelFile extends BaseController
...
@@ -39,96 +39,237 @@ class ExcelFile extends BaseController
array_push
(
$imgList
,
$imagePath
);
array_push
(
$imgList
,
$imagePath
);
// echo "图片已保存到:{$imagePath}\n";
// echo "图片已保存到:{$imagePath}\n";
}
}
dump
(
$imgList
);
// $data = $objWorksheet->toArray();
// $list = [];
// $i=0;
// foreach ($data as $index=>$value){
// if($index>0){
// $arr = [
// 'task_id'=>1,
// 'name'=>$value[1], // 指标名称
// 'level'=>1, // 难度等级
// 'name2'=>$value[4], // 参考信源
// 'name3'=>$value[5], // 单价
// 'name4'=>$value[6], // 参考指南
// 'name5'=>$value[7], // 任务状态
// 'name6'=>$value[8], //优先级高中低(3,2,1)
// 'name7'=>$value[9], //可领取次数
// 'name8'=>$value[10],
// 'name9'=>$value[11],
// 'name10'=>$value[12],
// 'name11'=>$value[13],
// 'name12'=>$value[14],
// 'name13'=>$value[15],
// 'name14'=>$value[16],
// ];
// if(empty($value[10])){
// $arr['name8'] = $imgList[$i];
// $i++;
// }
// array_push($list,$arr);
// }
// }
}
catch
(
\Exception
$e
){
exception
(
$e
,
'ExcelFile.importFile'
);
}
}
/**
* 格式化文件数据
* @param $file //excel文件地址
* @return array|void
*/
public
function
importFormat
(
$file
)
{
try
{
$spreadsheet
=
IOFactory
::
load
(
$file
);
$objWorksheet
=
$spreadsheet
->
getSheet
(
0
);
$drawings
=
$objWorksheet
->
getDrawingCollection
();
$imgList
=
[];
foreach
(
$drawings
as
$index
=>
$drawing
)
{
// 图片类型:JPEG, PNG, GIF
$imageType
=
$drawing
->
getExtension
();
$imageName
=
'image_'
.
$index
.
'.'
.
$imageType
;
$imagePath
=
'images/'
.
$imageName
;
// 保存图片到本地
$drawing
->
getPath
()
?
Filesystem
::
put
(
$imagePath
,
file_get_contents
(
$drawing
->
getPath
()))
:
$drawing
->
save
(
$imagePath
);
array_push
(
$imgList
,
$imagePath
);
}
$data
=
$objWorksheet
->
toArray
();
$data
=
$objWorksheet
->
toArray
();
$list
=
[];
$list
=
[];
// 所以表格格式化数据
$i
=
0
;
$num
=
0
;
// 成功读取行数
$error
=
0
;
// 读取到当前第几行错误
$errorInfo
=
''
;
// 读取到当前报错的信息
$title
=
$data
[
0
];
// 表格标题
$imgIndex
=
0
;
// 读取的图片当前下标
foreach
(
$data
as
$index
=>
$value
){
foreach
(
$data
as
$index
=>
$value
){
$num
++
;
if
(
$index
>
0
){
if
(
$index
>
0
){
$current
=
0
;
// 当前读取到的下标位置,取一次加1
$arr
=
[
$arr
=
[
'task_id'
=>
1
,
'name'
=>
''
,
// 指标名称
'name'
=>
$value
[
1
],
// 指标名称
'refer_type'
=>
''
,
// 信源类型
'level'
=>
1
,
// 难度等级
'remark'
=>
''
,
// 收集指南
'name2'
=>
$value
[
4
],
// 参考信源
'adminData'
=>
[],
// 展示端
'name3'
=>
$value
[
5
],
// 单价
'userData'
=>
[],
// 用户端
'name4'
=>
$value
[
6
],
// 参考指南
'not_collectible'
=>
''
,
// 是否可以采集
'name5'
=>
$value
[
7
],
// 任务状态
'not_collectible_remarks'
=>
''
,
//原因
'name6'
=>
$value
[
8
],
//优先级高中低(3,2,1)
'imgPath'
=>
''
,
//图片路径
'name7'
=>
$value
[
9
],
//可领取次数
'name8'
=>
$value
[
10
],
'name9'
=>
$value
[
11
],
'name10'
=>
$value
[
12
],
'name11'
=>
$value
[
13
],
'name12'
=>
$value
[
14
],
'name13'
=>
$value
[
15
],
'name14'
=>
$value
[
16
],
];
];
if
(
empty
(
$value
[
10
])){
// 指标名称
$arr
[
'name8'
]
=
$imgList
[
$i
];
if
(
empty
(
$value
[
$current
])){
$i
++
;
$error
++
;
$errorInfo
=
'指标名称不能为空'
;
break
;
}
else
{
$arr
[
'name'
]
=
$value
[
$current
];
$current
++
;
}
}
array_push
(
$list
,
$arr
);
// 信源类型
if
(
empty
(
$value
[
$current
])){
$error
++
;
$errorInfo
=
'信源信息错误!'
;
break
;
}
else
{
if
(
$value
[
1
]
!=
"官网/政府"
&&
$value
[
1
]
!=
"权威媒体"
&&
$value
[
1
]
!=
"其他信源"
){
$error
++
;
$errorInfo
=
'信源信息错误!'
;
break
;
}
else
{
if
(
$value
[
1
]
==
"官网/政府"
){
$arr
[
'refer_type'
]
=
1
;
}
else
if
(
$value
[
1
]
==
"官网/权威媒体"
){
$arr
[
'refer_type'
]
=
2
;
}
else
{
$arr
[
'refer_type'
]
=
3
;
}
}
}
}
}
catch
(
\Exception
$e
){
$current
++
;
var_dump
(
$e
->
getMessage
());
}
// 收集备注
$arr
[
'remark'
]
=
$value
[
$current
];
$current
++
;
$adminSign
=
0
;
// 需要读取的列数 3 2
// 展示端数量
if
(
is_numeric
(
$value
[
$current
])){
if
(
$value
[
$current
]
>
20
){
$error
++
;
$errorInfo
=
'展示端自定义数值超出范围!'
;
break
;
}
$adminSign
=
$value
[
$current
];
$current
++
;
}
else
{
$error
++
;
$errorInfo
=
'展示端自定义数值非数值!'
;
break
;
}
// 展示端内容
if
(
$adminSign
>
0
){
for
(
$i
=
0
;
$i
<
$adminSign
;
$i
++
){
array_push
(
$arr
[
'adminData'
],[
'name'
=>
$title
[
$current
],
'value'
=>
$value
[
$current
]]);
$current
++
;
}
}
}
}
// 判断展示端的数据是否正确
if
(
$title
[
$current
]
!=
"用户端自定义数量"
){
$error
++
;
$errorInfo
=
'展示端的数量与要读取的列数不匹配!'
;
break
;
}
public
function
exportFile1
()
$userSign
=
0
;
// 需要读取的列数
{
// 用户端数量
try
{
if
(
is_numeric
(
$value
[
$current
]))
{
$data
=
$this
->
importFile
();
if
(
$value
[
$current
]
>
20
){
// 创建一个新的 Spreadsheet 对象
$error
++
;
$spreadsheet
=
new
Spreadsheet
()
;
$errorInfo
=
'用户端自定义数值超出范围!'
;
$list
=
[]
;
break
;
for
(
$i
=
0
;
$i
<
100
;
$i
++
){
}
if
(
$i
%
2
==
0
){
$userSign
=
$value
[
$current
];
array_push
(
$list
,
$data
[
1
])
;
$current
++
;
}
else
{
}
else
{
array_push
(
$list
,
$data
[
0
]);
$error
++
;
$errorInfo
=
'用户端自定义数值非数值!'
;
break
;
}
}
// 用户端内容
if
(
$userSign
>
0
){
for
(
$i
=
0
;
$i
<
$userSign
;
$i
++
){
array_push
(
$arr
[
'userData'
],[
'name'
=>
$title
[
$current
],
'value'
=>
$value
[
$current
]]);
$current
++
;
}
}
foreach
(
$list
as
$index
=>
$value
)
{
$sheet
=
$spreadsheet
->
getActiveSheet
();
// 设置一些数据到单元格中
$sheet
->
setCellValue
(
'A'
.
$index
,
$value
[
'name'
]);
$sheet
->
setCellValue
(
'B'
.
$index
,
''
);
$sheet
->
setCellValue
(
'C'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'D'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'E'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'F'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'G'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'H'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'I'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'J'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'K'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'L'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'M'
.
$index
,
$value
[
'name4'
]);
$sheet
->
setCellValue
(
'N'
.
$index
,
$value
[
'name4'
]);
$sheet
->
getRowDimension
(
0
)
->
setRowHeight
(
50
);
// 设置第一行的高度为30
// $sheet->getRowDimension(1)->setWidth(130); // 设置第一行的高度为30
$sheet
->
getColumnDimension
(
'A'
)
->
setWidth
(
25
);
// 设置A列的宽度为20
$sheet
->
getRowDimension
(
$index
+
1
)
->
setRowHeight
(
50
);
// 设置第一行的高度为30
// $sheet->getRowDimension(1)->setWidth(130); // 设置第一行的高度为30
$sheet
->
getColumnDimension
(
'B'
)
->
setWidth
(
25
);
// 设置A列的宽度为20
if
(
$value
[
'name8'
]
!=
"无"
){
// 创建一个 Drawing 对象,并设置图片的路径
$drawing
=
new
Drawing
();
$drawing
->
setName
(
'Sample Image'
);
$drawing
->
setDescription
(
'Sample Image'
);
$drawing
->
setPath
(
'storage/'
.
$value
[
'name8'
]);
// 图片路径
$drawing
->
setCoordinates
(
'B'
.
$index
);
// 图片放置的单元格位置
$drawing
->
setWorksheet
(
$sheet
);
// 关联到工作表
// 调整图片大小以适应单元格(可选)
$drawing
->
setHeight
(
80
);
// 图片高度,单位为磅
$drawing
->
setWidth
(
80
);
// 图片宽度,单位为磅
}
}
// 判断用户端端的数据是否正确
if
(
$title
[
$current
]
!=
"是否可采集"
){
$error
++
;
$errorInfo
=
'用户端的数量与要读取的列数不匹配!'
;
break
;
}
// 是否可采集
if
(
empty
(
$value
[
$current
])){
$error
++
;
$errorInfo
=
'请填写是否可采集!'
;
break
;
}
else
{
if
(
$value
[
$current
]
==
'是'
){
$arr
[
'not_collectible'
]
=
''
;
}
else
{
$arr
[
'not_collectible'
]
=
1
;
}
// 不可采集的原因
$arr
[
'not_collectible_remarks'
]
=
$value
[
$current
];
$current
+=
2
;
}
// 是否有图片
if
(
!
empty
(
$value
[
$current
])){
if
(
$value
[
$current
]
==
"有"
){
if
(
isset
(
$imgList
[
$imgIndex
])){
$arr
[
'imgPath'
]
=
$imgList
[
$imgIndex
];
$imgIndex
++
;
}
else
{
$error
++
;
$num
=
'x'
;
$errorInfo
=
'是否有图片该列填写了“有”但是并没有放对应的图片'
;
break
;
}
}
$current
+=
2
;
}
else
{
$current
+=
2
;
}
array_push
(
$list
,
$arr
);
}
}
if
(
$error
!=
0
){
$message
=
"文件第"
.
$num
.
"行数据错误,原因["
.
$errorInfo
.
"],请检查!"
;
return
[
'data'
=>
$list
,
'message'
=>
$message
,
'status'
=>
0
];
}
else
{
$message
=
"文件导入成功,共读取"
.
$num
.
"行!"
;
return
[
'data'
=>
$list
,
'message'
=>
$message
,
'status'
=>
1
];
}
}
// 保存 ExcelFile 文件
$writer
=
new
Xlsx
(
$spreadsheet
);
$writer
->
save
(
'import.xlsx'
);
}
catch
(
\Exception
$e
){
}
catch
(
\Exception
$e
){
var_dump
(
$e
->
getMessage
());
var_dump
(
$e
->
getMessage
());
exception
(
$e
,
'ExcelFile.importFile'
);
}
}
public
function
importFile
()
{
$res
=
$this
->
importFormat
(
'./import/测试.xlsx'
);
// 文件格式化有问题
if
(
$res
[
'status'
]
==
0
){
return
returnResult
(
config
(
"config.code.error"
),
$res
[
'message'
]);
}
}
}
}
...
@@ -282,7 +423,7 @@ class ExcelFile extends BaseController
...
@@ -282,7 +423,7 @@ class ExcelFile extends BaseController
return
returnResult
(
config
(
"config.code.error"
),
'没有该任务存在!'
,[]);
return
returnResult
(
config
(
"config.code.error"
),
'没有该任务存在!'
,[]);
}
}
}
catch
(
\Exception
$e
){
}
catch
(
\Exception
$e
){
var_dump
(
$e
->
getMessage
()
);
exception
(
$e
,
'ExcelFile.taskExportFile'
);
}
}
}
}
...
@@ -428,12 +569,12 @@ class ExcelFile extends BaseController
...
@@ -428,12 +569,12 @@ class ExcelFile extends BaseController
return
returnResult
(
config
(
"config.code.success"
),
'该任务下未找到相关指标信息!'
,[]);
return
returnResult
(
config
(
"config.code.success"
),
'该任务下未找到相关指标信息!'
,[]);
}
}
}
catch
(
\Exception
$e
){
}
catch
(
\Exception
$e
){
var_dump
(
$e
->
getMessage
()
);
exception
(
$e
,
'ExcelFile.normExportFile'
);
}
}
}
}
/**
/**
*
单页表格输出
*
格式化单页表格数据
* @param $spreadsheet
* @param $spreadsheet
* @param $number
* @param $number
* @param $title
* @param $title
...
...
app/api/controller/NormList.php
View file @
1d2238a7
...
@@ -41,6 +41,8 @@ class NormList extends AuthBase
...
@@ -41,6 +41,8 @@ class NormList extends AuthBase
foreach
(
$result
as
$index
=>
$value
){
foreach
(
$result
as
$index
=>
$value
){
$res
=
$NormExtendBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'norm_id'
],
'user_filled'
=>
1
]);
$res
=
$NormExtendBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'norm_id'
],
'user_filled'
=>
1
]);
$result
[
$index
][
'user_filled'
]
=
$res
;
$result
[
$index
][
'user_filled'
]
=
$res
;
$NormBus
=
new
\app\api\business\CommonBus
(
'NormBus'
);
// 通过公共业务初始化用户待领取指标类
$result
[
'data'
][
$index
][
'normInfo'
]
=
$NormBus
->
getConditionalQuery
([
'id'
=>
$value
[
'norm_id'
]]);
}
}
}
else
{
}
else
{
//查询全部数据
//查询全部数据
...
@@ -49,6 +51,8 @@ class NormList extends AuthBase
...
@@ -49,6 +51,8 @@ class NormList extends AuthBase
foreach
(
$result
[
'data'
]
as
$index
=>
$value
){
foreach
(
$result
[
'data'
]
as
$index
=>
$value
){
$res
=
$NormExtendBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'norm_id'
],
'user_filled'
=>
1
]);
$res
=
$NormExtendBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'norm_id'
],
'user_filled'
=>
1
]);
$result
[
'data'
][
$index
][
'user_filled'
]
=
$res
;
$result
[
'data'
][
$index
][
'user_filled'
]
=
$res
;
$NormBus
=
new
\app\api\business\CommonBus
(
'NormBus'
);
// 通过公共业务初始化用户待领取指标类
$result
[
'data'
][
$index
][
'normInfo'
]
=
$NormBus
->
getConditionalQuery
([
'id'
=>
$value
[
'norm_id'
]]);
}
}
}
}
if
(
$result
){
if
(
$result
){
...
...
app/api/controller/NormReceives.php
View file @
1d2238a7
...
@@ -22,7 +22,6 @@ class NormReceives extends AuthBase
...
@@ -22,7 +22,6 @@ class NormReceives extends AuthBase
// 数据接收
// 数据接收
$data
[
'page'
]
=
input
(
"param.page"
,
0
,
"intval"
);
$data
[
'page'
]
=
input
(
"param.page"
,
0
,
"intval"
);
$data
[
'limit'
]
=
input
(
"param.limit"
,
0
,
"intval"
);
$data
[
'limit'
]
=
input
(
"param.limit"
,
0
,
"intval"
);
$data
[
'name'
]
=
input
(
"param.name"
);
$data
[
'task_id'
]
=
input
(
"param.task_id"
);
$data
[
'task_id'
]
=
input
(
"param.task_id"
);
$data
[
'status'
]
=
input
(
"param.status"
);
$data
[
'status'
]
=
input
(
"param.status"
);
$data
[
'statusSelect'
]
=
input
(
"param.statusSelect"
);
$data
[
'statusSelect'
]
=
input
(
"param.statusSelect"
);
...
@@ -57,6 +56,9 @@ class NormReceives extends AuthBase
...
@@ -57,6 +56,9 @@ class NormReceives extends AuthBase
$TaskPackageBus
=
new
\app\api\business\CommonBus
(
'TaskPackageBus'
);
// 通过公共业务初始化用户待领取指标类
$TaskPackageBus
=
new
\app\api\business\CommonBus
(
'TaskPackageBus'
);
// 通过公共业务初始化用户待领取指标类
$taskInfo
=
$TaskPackageBus
->
getConditionalQuery
([
'id'
=>
$value
[
'task_id'
]]);
$taskInfo
=
$TaskPackageBus
->
getConditionalQuery
([
'id'
=>
$value
[
'task_id'
]]);
$result
[
'data'
][
$index
][
'taskInfo'
]
=
$taskInfo
;
$result
[
'data'
][
$index
][
'taskInfo'
]
=
$taskInfo
;
$NormBus
=
new
\app\api\business\CommonBus
(
'NormBus'
);
// 通过公共业务初始化用户待领取指标类
$normInfo
=
$NormBus
->
getConditionalQuery
([
'id'
=>
$value
[
'norm_id'
]]);
$result
[
'data'
][
$index
][
'normInfo'
]
=
$normInfo
;
}
}
}
else
{
}
else
{
//查询全部数据
//查询全部数据
...
@@ -76,6 +78,9 @@ class NormReceives extends AuthBase
...
@@ -76,6 +78,9 @@ class NormReceives extends AuthBase
$TaskPackageBus
=
new
\app\api\business\CommonBus
(
'TaskPackageBus'
);
// 通过公共业务初始化用户待领取指标类
$TaskPackageBus
=
new
\app\api\business\CommonBus
(
'TaskPackageBus'
);
// 通过公共业务初始化用户待领取指标类
$taskInfo
=
$TaskPackageBus
->
getConditionalQuery
([
'id'
=>
$value
[
'task_id'
]]);
$taskInfo
=
$TaskPackageBus
->
getConditionalQuery
([
'id'
=>
$value
[
'task_id'
]]);
$result
[
'data'
][
$index
][
'taskInfo'
]
=
$taskInfo
;
$result
[
'data'
][
$index
][
'taskInfo'
]
=
$taskInfo
;
$NormBus
=
new
\app\api\business\CommonBus
(
'NormBus'
);
// 通过公共业务初始化用户待领取指标类
$normInfo
=
$NormBus
->
getConditionalQuery
([
'id'
=>
$value
[
'norm_id'
]]);
$result
[
'data'
][
$index
][
'normInfo'
]
=
$normInfo
;
}
}
}
}
if
(
$result
){
if
(
$result
){
...
...
app/api/controller/System.php
View file @
1d2238a7
...
@@ -17,14 +17,14 @@ class System extends BaseController
...
@@ -17,14 +17,14 @@ class System extends BaseController
public
function
index
()
public
function
index
()
{
{
$data
=
[
'version'
=>
'v1.3.9'
,
'server'
=>
'DSIS'
];
$data
=
[
'version'
=>
'v1.3.9'
,
'server'
=>
'DSIS'
];
return
returnResult
(
config
(
"config.code.success"
),
'
测试
'
,
$data
);
return
returnResult
(
config
(
"config.code.success"
),
'
正式版本
'
,
$data
);
}
}
public
function
menus
()
public
function
menus
()
{
{
$q
=
Db
::
table
(
'menu'
)
->
select
();
$q
=
Db
::
table
(
'menu'
)
->
select
();
$ss
=
$this
->
getTreeData
(
$q
->
toArray
());
$ss
=
$this
->
getTreeData
(
$q
->
toArray
());
return
returnResult
(
config
(
"config.code.success"
),
'
测试
'
,
$ss
);
return
returnResult
(
config
(
"config.code.success"
),
'
正式版本
'
,
$ss
);
}
}
/**
/**
...
...
app/api/route/api.php
View file @
1d2238a7
...
@@ -93,10 +93,8 @@ Route::rule("normOrders/list","NormOrders/list"); //结算指标列表
...
@@ -93,10 +93,8 @@ Route::rule("normOrders/list","NormOrders/list"); //结算指标列表
Route
::
rule
(
"normOrders/detail"
,
"NormOrders/detail"
);
//结算指标列表
Route
::
rule
(
"normOrders/detail"
,
"NormOrders/detail"
);
//结算指标列表
//Route::rule("importFile","ExcelFile/importFile"); //结算指标列表
//Route::rule("exportFile","ExcelFile/exportFile"); //结算指标列表
Route
::
rule
(
"taskExportFile"
,
"ExcelFile/taskExportFile"
);
//按任务导出数据
Route
::
rule
(
"taskExportFile"
,
"ExcelFile/taskExportFile"
);
//按任务导出数据
Route
::
rule
(
"normExportFile"
,
"ExcelFile/normExportFile"
);
//按指标导出数据
Route
::
rule
(
"normExportFile"
,
"ExcelFile/normExportFile"
);
//按指标导出数据
Route
::
rule
(
"importFile"
,
"ExcelFile/importFile"
);
//按任务导入指标信息
Route
::
rule
(
"test"
,
"test/index"
);
//
结算指标列表
Route
::
rule
(
"test"
,
"test/index"
);
//
结算指标列表
\ No newline at end of file
//
Route
::
rule
(
"import"
,
"ImportFile/import"
);
\ No newline at end of file
runtime/session/sess_133ef1b0a4f3dee9ec3958afb8ba7bd7
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:2;s:4:"name";s:13:"测试人员1";s:5:"phone";s:4:"2131";s:7:"account";s:7:"test001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1708836112";s:5:"email";s:3:"123";s:13:"department_id";i:2;}}
\ No newline at end of file
runtime/session/sess_15cd2b0f2447787bd314d111a82665f9
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
runtime/session/sess_2dce71faf3ca117d4e4000ecaecf7b84
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
runtime/session/sess_3b09c5acc0a82e923c2154daa73e6bf9
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:2;s:4:"name";s:13:"测试人员1";s:5:"phone";s:4:"2131";s:7:"account";s:7:"test001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1708836112";s:5:"email";s:3:"123";s:13:"department_id";i:2;}}
\ No newline at end of file
runtime/session/sess_6d2b4bfa1832992e0ffa010815ce5385
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
runtime/session/sess_91a9c85d356c5d75c23288267b266cf8
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
runtime/session/sess_d5d796a065e06447080eeb398ef71b65
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
runtime/session/sess_dd6ad8a323a674f7743023c8efa780b4
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:2;s:4:"name";s:13:"测试人员1";s:5:"phone";s:4:"2131";s:7:"account";s:7:"test001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1708836112";s:5:"email";s:3:"123";s:13:"department_id";i:2;}}
\ No newline at end of file
runtime/session/sess_f8f81b89abcbeba11000207f1bf36086
0 → 100644
View file @
1d2238a7
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
sql/data-collect-dev.sql
0 → 100644
View file @
1d2238a7
/*
Navicat Premium Data Transfer
Source Server : 175.178.128.124
Source Server Type : MySQL
Source Server Version : 80300 (8.3.0)
Source Host : 175.178.128.124:36006
Source Schema : data-collect-dev
Target Server Type : MySQL
Target Server Version : 80300 (8.3.0)
File Encoding : 65001
Date: 03/04/2024 19:14:34
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for department
-- ----------------------------
DROP
TABLE
IF
EXISTS
`department`
;
CREATE
TABLE
`department`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'部门名称'
,
`isDaySign`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
,
`slug`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
,
`updatedAt`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
,
`createdAt`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
CHARACTER
SET
=
utf8mb3
COLLATE
=
utf8mb3_general_ci
ROW_FORMAT
=
DYNAMIC
;
-- ----------------------------
-- Records of department
-- ----------------------------
INSERT
INTO
`department`
VALUES
(
1
,
'IT管理员部门'
,
'true'
,
'administrator'
,
NULL
,
NULL
);
INSERT
INTO
`department`
VALUES
(
2
,
'用户部门'
,
'true'
,
'central_doctor'
,
NULL
,
NULL
);
INSERT
INTO
`department`
VALUES
(
3
,
'开发部门'
,
'true'
,
'dev'
,
NULL
,
NULL
);
-- ----------------------------
-- Table structure for menu
-- ----------------------------
DROP
TABLE
IF
EXISTS
`menu`
;
CREATE
TABLE
`menu`
(
`id`
bigint
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`parentId`
bigint
NOT
NULL
DEFAULT
0
,
`order`
int
NOT
NULL
DEFAULT
0
COMMENT
'顺序'
,
`title`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'标题'
,
`icon`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'图标'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
`redirect`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
`component`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
`path`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'访问路径'
,
`extension`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
''
,
`create_time`
timestamp
NULL
DEFAULT
NULL
,
`isAffix`
char
(
10
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
`isHide`
char
(
10
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
`isIframe`
char
(
10
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
`isKeepAlive`
char
(
10
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
128
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
ROW_FORMAT
=
Dynamic
;
-- ----------------------------
-- Records of menu
-- ----------------------------
INSERT
INTO
`menu`
VALUES
(
1
,
0
,
1
,
'系统设置'
,
'iconfont icon-xitongshezhi'
,
'system'
,
'/system/user'
,
'system/user/index'
,
'/system'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
2
,
1
,
1
,
'系统管理'
,
'ele-SetUp'
,
'systemManage'
,
'/system/systemManage/user'
,
'system/systemManage/user/index'
,
'/system/systemManage'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
3
,
2
,
1
,
'用户管理'
,
''
,
'systemUser'
,
''
,
'system/user/index'
,
'/system/user'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
4
,
2
,
1
,
'角色菜单对应'
,
''
,
'systemDept'
,
''
,
'system/dept/index'
,
'/system/dept'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
5
,
2
,
1
,
'菜单管理'
,
''
,
'systemMenu'
,
''
,
'system/menu/index'
,
'/system/menu'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'false'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
6
,
0
,
1
,
'任务管理'
,
'ele-DocumentAdd'
,
'taskPackage'
,
'/taskPackage/list'
,
'taskPackage/list/index'
,
'/taskPackage'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
7
,
6
,
1
,
'任务列表'
,
'ele-Reading'
,
'taskPackage-list'
,
''
,
'taskPackage/list/index'
,
'/taskPackage/list'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
8
,
0
,
1
,
'任务领取管理'
,
'ele-Histogram'
,
'claimTasks'
,
'/claimTasks/user/list'
,
'claimTasks/user/list/index'
,
'/claimTasks'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
9
,
8
,
1
,
'可领取列表'
,
'ele-Pointer'
,
'claimTasks-list'
,
''
,
'claimTasks/user/list/index'
,
'/claimTasks/user/list'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
10
,
0
,
1
,
'指标管理'
,
'ele-Monitor'
,
'norm'
,
'/norm/list'
,
'norm/list/index'
,
'/norm'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
11
,
10
,
1
,
'指标列表'
,
'ele-Fold'
,
'norm-list'
,
''
,
'norm/list/index'
,
'/norm/list'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
12
,
8
,
1
,
'未完成列表'
,
'ele-Histogram'
,
'claimTasks-incomplete '
,
''
,
'claimTasks/user/incomplete/index'
,
'/claimTasks/user/incomplete/index'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
13
,
8
,
1
,
'已完成列表'
,
'ele-Calendar'
,
'claimTasks-completed'
,
''
,
'claimTasks/user/completed/index'
,
'/claimTasks/user/completed/index'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
14
,
8
,
1
,
'已审核列表'
,
'ele-DocumentChecked'
,
'claimTasks-approved'
,
''
,
'claimTasks/user/approved/index'
,
'/claimTasks/user/approved/index'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
17
,
0
,
1
,
'审核管理'
,
'ele-ScaleToOriginal'
,
'auditManagement'
,
'/auditManagement/admin/unaudited'
,
'auditManagement/admin/unaudited/index'
,
'/auditManagement'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
18
,
17
,
1
,
'未审核'
,
'ele-Film'
,
'auditManagement-admin-unaudited'
,
''
,
'auditManagement/admin/unaudited/index'
,
'/auditManagement/admin/unaudited'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
19
,
17
,
1
,
'已审核'
,
'ele-Edit'
,
'auditManagement-admin-reviewed'
,
''
,
'auditManagement/admin/reviewed/index'
,
'/auditManagement/admin/reviewed'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
20
,
0
,
1
,
'结算管理'
,
'ele-ScaleToOriginal'
,
'balance'
,
'/balance/settlementList'
,
'balance/settlementList/index'
,
'/balance'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
21
,
20
,
1
,
'生成结算'
,
'ele-Edit'
,
'balance-single'
,
''
,
'/balance/settlementStatement/index'
,
'/balance/settlementStatement/index'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
22
,
20
,
1
,
'结算列表'
,
'ele-Film'
,
'balance-settlement'
,
''
,
'balance/settlementList/index'
,
'/balance/settlementList'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
23
,
20
,
1
,
'结算详情'
,
'ele-Edit'
,
'balance-details'
,
''
,
'/balance/settlementList/details'
,
'/balance/settlementList/details'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'false'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
24
,
0
,
1
,
'任务领取管理'
,
'ele-Histogram'
,
'claimTasks'
,
'/claimTasks/admin/incomplete'
,
'claimTasks/admin/incomplete/index'
,
'/claimTasks'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
25
,
24
,
1
,
'未完成列表'
,
'ele-Document'
,
'claimTasks-admin-incomplete'
,
''
,
'claimTasks/admin/incomplete/index'
,
'/claimTasks/admin/incomplete'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
26
,
24
,
1
,
'已完成列表'
,
'ele-DocumentChecked'
,
'claimTasks-admin-completed'
,
''
,
'claimTasks/admin/completed/index'
,
'/claimTasks/admin/completed/index'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`menu`
VALUES
(
27
,
8
,
1
,
'已结算列表'
,
'ele-ChatSquare'
,
'claimTasks-settled'
,
''
,
'claimTasks/user/settled/index'
,
'/claimTasks/user/settled/index'
,
''
,
'2024-01-08 09:26:58'
,
'0'
,
'0'
,
'0'
,
'0'
);
-- ----------------------------
-- Table structure for norm
-- ----------------------------
DROP
TABLE
IF
EXISTS
`norm`
;
CREATE
TABLE
`norm`
(
`id`
bigint
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`task_id`
int
NOT
NULL
COMMENT
'任务包ID'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'指标名称'
,
`level`
int
NOT
NULL
DEFAULT
1
COMMENT
'难度等级'
,
`refer`
varchar
(
2550
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'参考信源'
,
`price`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'单价'
,
`guide`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'参考指南'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'任务状态'
,
`sort`
int
UNSIGNED
NOT
NULL
DEFAULT
3
COMMENT
'优先级高中低(3,2,1)'
,
`num`
int
NULL
DEFAULT
NULL
COMMENT
'可领取次数'
,
`created_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
362
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'系统任务工作包表'
ROW_FORMAT
=
DYNAMIC
;
-- ----------------------------
-- Records of norm
-- ----------------------------
INSERT
INTO
`norm`
VALUES
(
359
,
23
,
'上海统计年鉴,北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
'https://www.baishuyun.com/'
,
1
,
2
,
2
,
'2024-04-02 14:33:00'
);
INSERT
INTO
`norm`
VALUES
(
361
,
23
,
'省份1,省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
'https://www.baishuyun.com/'
,
1
,
2
,
2
,
'2024-04-02 15:20:16'
);
-- ----------------------------
-- Table structure for norm_collects
-- ----------------------------
DROP
TABLE
IF
EXISTS
`norm_collects`
;
CREATE
TABLE
`norm_collects`
(
`id`
bigint
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`task_id`
bigint
UNSIGNED
NOT
NULL
DEFAULT
0
COMMENT
'任务包id'
,
`norm_id`
bigint
NOT
NULL
COMMENT
'指标ID'
,
`norm_list_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标列表ID'
,
`norm_receive_id`
bigint
NOT
NULL
COMMENT
'用户领取的任务id'
,
`user_id`
bigint
NOT
NULL
DEFAULT
1
COMMENT
'用户id'
,
`refer_type`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'信源类型'
,
`remark`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
''
COMMENT
'备注信息'
,
`created_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`imgPath`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
COMMENT
'富文本上传的图片地址'
,
`editorContent`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
COMMENT
'富文本内容'
,
`relativePath`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'图片相对路径'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
INDEX
`uer_receive_unique`
(
`user_id`
ASC
,
`norm_receive_id`
ASC
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
120
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'用户收集任务的数据表'
ROW_FORMAT
=
DYNAMIC
;
-- ----------------------------
-- Records of norm_collects
-- ----------------------------
INSERT
INTO
`norm_collects`
VALUES
(
115
,
23
,
359
,
55945
,
234
,
2
,
'2'
,
'只能找到这些1'
,
'2024-04-02 15:05:41'
,
'http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/5efd6ef4be59a4c47764a00112e712f8.jpg'
,
'<p><img src=
\"
http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/5efd6ef4be59a4c47764a00112e712f8.jpg
\"
alt=
\"
topic/20240402/5efd6ef4be59a4c47764a00112e712f8.jpg
\"
data-href=
\"\"
style=
\"\"
/></p>'
,
NULL
);
INSERT
INTO
`norm_collects`
VALUES
(
116
,
23
,
359
,
55946
,
233
,
2
,
'3'
,
''
,
'2024-04-02 15:14:24'
,
''
,
'<p>123123</p>'
,
NULL
);
INSERT
INTO
`norm_collects`
VALUES
(
117
,
23
,
359
,
55947
,
232
,
2
,
'3'
,
''
,
'2024-04-02 15:33:01'
,
'http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/1733e5f6823a32e4b4d6d85746f4201b.jpg,http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/1733e5f6823a32e4b4d6d85746f4201b.jpg'
,
'<p><img src=
\"
http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/1733e5f6823a32e4b4d6d85746f4201b.jpg
\"
alt=
\"
topic/20240402/1733e5f6823a32e4b4d6d85746f4201b.jpg
\"
data-href=
\"\"
style=
\"\"
/></p>'
,
'http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/1733e5f6823a32e4b4d6d85746f4201b.jpg,http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/1733e5f6823a32e4b4d6d85746f4201b.jpg'
);
INSERT
INTO
`norm_collects`
VALUES
(
118
,
23
,
359
,
55948
,
231
,
2
,
'2'
,
''
,
'2024-04-02 15:34:03'
,
'http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/7bc810167570d1bd75896fce4a3cb3f3.jpg'
,
'<p><img src=
\"
http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/7bc810167570d1bd75896fce4a3cb3f3.jpg
\"
alt=
\"
topic/20240402/7bc810167570d1bd75896fce4a3cb3f3.jpg
\"
data-href=
\"\"
style=
\"\"
/></p>'
,
'http://gcspider.raisound.com:81/data-collect-api//public/storage/topic/20240402/7bc810167570d1bd75896fce4a3cb3f3.jpg'
);
INSERT
INTO
`norm_collects`
VALUES
(
119
,
23
,
361
,
55972
,
238
,
3
,
'1'
,
''
,
'2024-04-03 08:08:59'
,
''
,
'<p><br></p>'
,
NULL
);
-- ----------------------------
-- Table structure for norm_collects_extend
-- ----------------------------
DROP
TABLE
IF
EXISTS
`norm_collects_extend`
;
CREATE
TABLE
`norm_collects_extend`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`norm_collects_id`
int
NULL
DEFAULT
NULL
COMMENT
'用户填写的ID'
,
`norm_list_extend_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标自定义扩展标题ID'
,
`norm_receive_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标领取ID'
,
`task_id`
int
NULL
DEFAULT
NULL
COMMENT
'任务ID'
,
`norm_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标详情ID'
,
`extend_name`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'自定义名称'
,
`extend_value`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'自定义名称值'
,
`extend_type`
tinyint
NULL
DEFAULT
NULL
COMMENT
'自定义类型(1文本,数值)'
,
`created_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2037
CHARACTER
SET
=
utf8mb3
COLLATE
=
utf8mb3_general_ci
ROW_FORMAT
=
DYNAMIC
;
-- ----------------------------
-- Records of norm_collects_extend
-- ----------------------------
INSERT
INTO
`norm_collects_extend`
VALUES
(
2027
,
115
,
1174
,
234
,
23
,
359
,
'作者'
,
'张三'
,
1
,
'2024-04-02 15:05:41'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2028
,
115
,
1175
,
234
,
23
,
359
,
'来源'
,
'谷歌'
,
1
,
'2024-04-02 15:05:41'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2029
,
116
,
1174
,
233
,
23
,
359
,
'作者'
,
'123'
,
1
,
'2024-04-02 15:14:24'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2030
,
116
,
1175
,
233
,
23
,
359
,
'来源'
,
'123'
,
1
,
'2024-04-02 15:14:24'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2031
,
117
,
1174
,
232
,
23
,
359
,
'作者'
,
'213'
,
1
,
'2024-04-02 15:33:01'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2032
,
117
,
1175
,
232
,
23
,
359
,
'来源'
,
'123213'
,
1
,
'2024-04-02 15:33:01'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2033
,
118
,
1174
,
231
,
23
,
359
,
'作者'
,
'213'
,
1
,
'2024-04-02 15:34:03'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2034
,
118
,
1175
,
231
,
23
,
359
,
'来源'
,
'123'
,
1
,
'2024-04-02 15:34:03'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2035
,
119
,
1182
,
238
,
23
,
361
,
'财务数据'
,
''
,
1
,
'2024-04-03 08:08:59'
);
INSERT
INTO
`norm_collects_extend`
VALUES
(
2036
,
119
,
1183
,
238
,
23
,
361
,
'财报数据'
,
''
,
1
,
'2024-04-03 08:08:59'
);
-- ----------------------------
-- Table structure for norm_extend
-- ----------------------------
DROP
TABLE
IF
EXISTS
`norm_extend`
;
CREATE
TABLE
`norm_extend`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`norm_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标ID'
,
`extend_name`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'自定义名称'
,
`extend_value`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'自定义名称值'
,
`extend_type`
tinyint
NULL
DEFAULT
NULL
COMMENT
'自定义类型(1文本,数值)'
,
`required`
char
(
1
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'是否必填'
,
`created_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`user_filled`
tinyint
NULL
DEFAULT
NULL
COMMENT
'用户填写'
,
`extend_remarks`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'备注'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1184
CHARACTER
SET
=
utf8mb3
COLLATE
=
utf8mb3_general_ci
ROW_FORMAT
=
DYNAMIC
;
-- ----------------------------
-- Records of norm_extend
-- ----------------------------
INSERT
INTO
`norm_extend`
VALUES
(
1172
,
359
,
'地区'
,
'北京,上海'
,
1
,
'0'
,
'2024-04-02 14:33:00'
,
0
,
''
);
INSERT
INTO
`norm_extend`
VALUES
(
1173
,
359
,
'年份'
,
'2024,2023,2022'
,
1
,
'0'
,
'2024-04-02 14:33:00'
,
0
,
''
);
INSERT
INTO
`norm_extend`
VALUES
(
1174
,
359
,
'作者'
,
''
,
1
,
'1'
,
'2024-04-02 14:33:00'
,
1
,
'作者备注'
);
INSERT
INTO
`norm_extend`
VALUES
(
1175
,
359
,
'来源'
,
''
,
1
,
'1'
,
'2024-04-02 14:33:00'
,
1
,
'来源备注'
);
INSERT
INTO
`norm_extend`
VALUES
(
1180
,
361
,
'地区'
,
'天津,河南'
,
1
,
'0'
,
'2024-04-02 15:20:16'
,
0
,
''
);
INSERT
INTO
`norm_extend`
VALUES
(
1181
,
361
,
'年份'
,
'2026,2025,2027'
,
1
,
'0'
,
'2024-04-02 15:20:16'
,
0
,
''
);
INSERT
INTO
`norm_extend`
VALUES
(
1182
,
361
,
'财务数据'
,
''
,
1
,
'1'
,
'2024-04-02 15:20:16'
,
1
,
'财报备注'
);
INSERT
INTO
`norm_extend`
VALUES
(
1183
,
361
,
'财报数据'
,
''
,
1
,
'1'
,
'2024-04-02 15:20:16'
,
1
,
'财报备注'
);
-- ----------------------------
-- Table structure for norm_list
-- ----------------------------
DROP
TABLE
IF
EXISTS
`norm_list`
;
CREATE
TABLE
`norm_list`
(
`id`
bigint
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`norm_id`
bigint
UNSIGNED
NOT
NULL
COMMENT
'所属任务包id'
,
`task_id`
int
NOT
NULL
COMMENT
'任务包ID'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'指标名称'
,
`level`
int
NOT
NULL
DEFAULT
1
COMMENT
'难度等级'
,
`refer`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'参考信源'
,
`price`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'单价'
,
`status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'任务状态'
,
`num`
int
UNSIGNED
NOT
NULL
DEFAULT
2
COMMENT
'可以被领取次数'
,
`sort`
int
UNSIGNED
NOT
NULL
DEFAULT
3
COMMENT
'优先级高中低(3,2,1)'
,
`created_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`guide`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
NULL
DEFAULT
NULL
COMMENT
'收集指南'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
55973
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'系统任务列表'
ROW_FORMAT
=
DYNAMIC
;
-- ----------------------------
-- Records of norm_list
-- ----------------------------
INSERT
INTO
`norm_list`
VALUES
(
55937
,
359
,
23
,
'上海统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55938
,
359
,
23
,
'上海统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55939
,
359
,
23
,
'上海统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55940
,
359
,
23
,
'上海统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
1
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55941
,
359
,
23
,
'上海统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55942
,
359
,
23
,
'上海统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55943
,
359
,
23
,
'北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55944
,
359
,
23
,
'北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
2
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55945
,
359
,
23
,
'北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
1
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55946
,
359
,
23
,
'北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
1
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55947
,
359
,
23
,
'北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
1
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55948
,
359
,
23
,
'北京统计年鉴'
,
2
,
'https://www.baishuyun.com/'
,
3
.
10
,
0
,
1
,
2
,
'2024-04-02 14:33:00'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55961
,
361
,
23
,
'省份1'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55962
,
361
,
23
,
'省份1'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55963
,
361
,
23
,
'省份1'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55964
,
361
,
23
,
'省份1'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55965
,
361
,
23
,
'省份1'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55966
,
361
,
23
,
'省份1'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55967
,
361
,
23
,
'省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55968
,
361
,
23
,
'省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55969
,
361
,
23
,
'省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55970
,
361
,
23
,
'省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
2
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55971
,
361
,
23
,
'省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
1
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
INSERT
INTO
`norm_list`
VALUES
(
55972
,
361
,
23
,
'省份2'
,
2
,
'https://www.baishuyun.com/'
,
5
.
10
,
0
,
0
,
2
,
'2024-04-02 15:20:16'
,
'https://www.baishuyun.com/'
);
-- ----------------------------
-- Table structure for norm_list_extend
-- ----------------------------
DROP
TABLE
IF
EXISTS
`norm_list_extend`
;
CREATE
TABLE
`norm_list_extend`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`norm_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标ID'
,
`norm_list_id`
int
NULL
DEFAULT
NULL
COMMENT
'指标领取ID'
,
`extend_name`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'自定义名称'
,
`extend_value`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'自定义名称值'
,
`extend_type`
tinyint
NULL
DEFAULT
NULL
COMMENT
'自定义类型(1文本,数值)'
,
`created_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
23540
CHARACTER
SET
=
utf8mb3
COLLATE
=
utf8mb3_general_ci
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
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