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
6ca97a11
Commit
6ca97a11
authored
May 09, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e75828d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
findData.ts
src/biz/findData.ts
+1
-1
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+17
-18
No files found.
src/biz/findData.ts
View file @
6ca97a11
...
@@ -17,7 +17,7 @@ import { BizError } from "../util/bizError";
...
@@ -17,7 +17,7 @@ import { BizError } from "../util/bizError";
* %notBetween%:查询不在范围内数据 {列名: {"%notBetween%": ["开始参数", "结束参数"]}} ---NOT BETWEEN 开始参数 AND 结束参数
* %notBetween%:查询不在范围内数据 {列名: {"%notBetween%": ["开始参数", "结束参数"]}} ---NOT BETWEEN 开始参数 AND 结束参数
* %orderDesc%: order by DESC {"%orderDesc%": "列名"}
* %orderDesc%: order by DESC {"%orderDesc%": "列名"}
* %limit%: {"%limit%": 数量}
* %limit%: {"%limit%": 数量}
* %literal%: 拼接查询sql条件
{"%literal%": `sql语句`} 例如:start BETWEEN 1 and 3
* %literal%: 拼接查询sql条件
,多表联查使用时记得指定子表字段 {"%literal%": `sql语句`} 例如:enterprise_fuhua.startTime BETWEEN "" and "" and (state != "" or state == "")
* @param column
* @param column
* @returns
* @returns
*/
*/
...
...
src/config/mysqlTableConfig.ts
View file @
6ca97a11
...
@@ -411,6 +411,23 @@ export const TablesConfig = [
...
@@ -411,6 +411,23 @@ export const TablesConfig = [
association
:
[]
association
:
[]
},
},
{
{
tableNamecn
:
'入孵申请审批表'
,
tableName
:
'approval_history'
,
schema
:{
approvalId
:{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNul1
:
false
,
//表示当前列是否允许为空,false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
,
//表示该列的值必须唯一
},
eId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
changeType
:{
type
:
Sequelize
.
INTEGER
},
//审批类型:1=入申请 2=入孵材料上传
changestate
:{
type
:
Sequelize
.
INTEGER
},
//操作审核状态 =否 1=是 2-驳回 3=重新提交
createTimeMs
:{
type
:
Sequelize
.
DATE
},
//日志时间
},
association
:[]
},
{
tableNameCn
:
'企业基础信息表'
,
tableNameCn
:
'企业基础信息表'
,
tableName
:
'enterprise'
,
tableName
:
'enterprise'
,
schema
:{
schema
:{
...
@@ -807,21 +824,4 @@ export const TablesConfig = [
...
@@ -807,21 +824,4 @@ export const TablesConfig = [
},
},
association
:
[]
association
:
[]
},
},
{
tableNamecn
:
'入孵申请审批表'
,
tableName
:
'approval_history'
,
schema
:{
approvalId
:{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNul1
:
false
,
//表示当前列是否允许为空,false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
,
//表示该列的值必须唯一
},
eId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
changeType
:{
type
:
Sequelize
.
INTEGER
},
//审批类型:1=入申请 2=入孵材料上传
changestate
:{
type
:
Sequelize
.
INTEGER
},
//操作审核状态 =否 1=是 2-驳回 3=重新提交
createTimeMs
:{
type
:
Sequelize
.
DATE
},
//日志时间
},
association
:[]
},
];
];
\ No newline at end of file
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