Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiDataServer
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
yuyiDataServer
Commits
aa78ca8c
Commit
aa78ca8c
authored
Jan 07, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a5788ecc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
findData.ts
src/biz/findData.ts
+3
-0
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+25
-0
No files found.
src/biz/findData.ts
View file @
aa78ca8c
...
@@ -56,6 +56,9 @@ function analysisParamToWhere(param, column) {
...
@@ -56,6 +56,9 @@ function analysisParamToWhere(param, column) {
case
"%notIn%"
:
case
"%notIn%"
:
where
[
key
][
Op
.
notIn
]
=
param
[
key
][
"%notIn%"
];
where
[
key
][
Op
.
notIn
]
=
param
[
key
][
"%notIn%"
];
break
;
break
;
case
"%ne%"
:
where
[
key
][
Op
.
ne
]
=
param
[
key
][
"%notIn%"
];
break
;
}
}
}
}
}
else
{
}
else
{
...
...
src/config/mysqlTableConfig.ts
View file @
aa78ca8c
...
@@ -2,6 +2,31 @@ const Sequelize = require('sequelize');
...
@@ -2,6 +2,31 @@ const Sequelize = require('sequelize');
export
const
TablesConfig
=
[
export
const
TablesConfig
=
[
{
{
tableNameCn
:
'张江羽翼孵化器信息'
,
tableName
:
'system_yuyi'
,
schema
:{
yId
:
{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
//表示该列的值必须唯一
},
operateName
:
{
type
:
Sequelize
.
STRING
(
255
)},
//运营名称
name
:
{
type
:
Sequelize
.
STRING
(
255
)},
//孵化器名称
uscc
:
{
type
:
Sequelize
.
STRING
(
255
)},
//统一社会信用代码
registerTime
:
{
type
:
Sequelize
.
DATE
},
//注册时间
incubateLv
:
{
type
:
Sequelize
.
STRING
(
255
)},
//孵化级别
incubateTime
:
{
type
:
Sequelize
.
STRING
(
255
)},
//孵化器认定时间
incubateField
:
{
type
:
Sequelize
.
STRING
(
255
)},
//孵化领域
natureInstitution
:
{
type
:
Sequelize
.
STRING
(
255
)},
//机构性质
fundedReserve
:
{
type
:
Sequelize
.
INTEGER
},
//是否成立投资基金 0:否,1:是
contacts
:
{
type
:
Sequelize
.
STRING
(
255
)},
//联系人
personCharge
:
{
type
:
Sequelize
.
STRING
(
255
)},
//负责人
phone
:
{
type
:
Sequelize
.
STRING
(
255
)},
//手机号码
synopsis
:
{
type
:
Sequelize
.
STRING
(
255
)},
//简介
}
},
{
tableNameCn
:
'企业孵化信息'
,
tableNameCn
:
'企业孵化信息'
,
tableName
:
'enterprise_fuhua'
,
tableName
:
'enterprise_fuhua'
,
schema
:{
schema
:{
...
...
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