Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yafangsuo_dataServer
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
node_server
yafangsuo_dataServer
Commits
53d660c1
Commit
53d660c1
authored
Sep 14, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/yafangsuo_dataServer
parents
f5a0b1e8
72a6814e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
findData.ts
src/biz/mysql/findData.ts
+6
-0
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+2
-0
No files found.
src/biz/mysql/findData.ts
View file @
53d660c1
...
@@ -49,6 +49,12 @@ function analysisParamToWhere(param, column) {
...
@@ -49,6 +49,12 @@ function analysisParamToWhere(param, column) {
case
"%notBetween%"
:
case
"%notBetween%"
:
where
[
key
][
Op
.
notBetween
]
=
param
[
key
][
"%notBetween%"
];
where
[
key
][
Op
.
notBetween
]
=
param
[
key
][
"%notBetween%"
];
break
;
break
;
case
"%in%"
:
where
[
key
][
Op
.
in
]
=
param
[
key
][
"%in%"
];
break
;
case
"%notIn%"
:
where
[
key
][
Op
.
notIn
]
=
param
[
key
][
"%notIn%"
];
break
;
}
}
}
}
}
else
{
}
else
{
...
...
src/config/mysqlTableConfig.ts
View file @
53d660c1
...
@@ -212,6 +212,8 @@ export const TablesConfig = [
...
@@ -212,6 +212,8 @@ export const TablesConfig = [
courseTypeName
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//课程类型id 枚举
courseTypeName
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//课程类型id 枚举
courseEntryType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//课程录入类型 1:视频课程、2:文字课程
courseEntryType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//课程录入类型 1:视频课程、2:文字课程
hits
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//点击量
hits
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//点击量
coverImage
:
{
type
:
Sequelize
.
STRING
(
500
),
allowNull
:
true
,
defaultValue
:
'defalitImage.png'
},
//封面图
videoDuration
:
{
type
:
Sequelize
.
STRING
(
500
),
allowNull
:
true
},
//视频时长
isUse
:
{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
true
},
//是否使用
isUse
:
{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
true
},
//是否使用
fileName
:
{
type
:
Sequelize
.
STRING
(
500
),
allowNull
:
true
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileName
:
{
type
:
Sequelize
.
STRING
(
500
),
allowNull
:
true
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
true
},
//文件类型
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
true
},
//文件类型
...
...
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