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
51b264a4
Commit
51b264a4
authored
Feb 13, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2b6f9c32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
findData.ts
src/biz/findData.ts
+6
-1
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+4
-2
No files found.
src/biz/findData.ts
View file @
51b264a4
...
@@ -187,9 +187,12 @@ export async function selectDataToTableAssociationToPage(tableModel, includeConf
...
@@ -187,9 +187,12 @@ export async function selectDataToTableAssociationToPage(tableModel, includeConf
let
include
=
[];
let
include
=
[];
for
(
let
tableName
in
includeConf
)
{
for
(
let
tableName
in
includeConf
)
{
if
(
!
mysqlModelMap
[
tableName
])
throw
new
BizError
(
ERRORENUM
.
不存在表
,
`尝试进行多表联查,但是不存在
${
tableName
}
`
);
if
(
!
mysqlModelMap
[
tableName
])
throw
new
BizError
(
ERRORENUM
.
不存在表
,
`尝试进行多表联查,但是不存在
${
tableName
}
`
);
let
{
where
,
column
}
=
includeConf
[
tableName
];
let
{
where
,
column
,
required
}
=
includeConf
[
tableName
];
let
includeInfomation
=
analysisParamToWhere
(
where
,
column
);
let
includeInfomation
=
analysisParamToWhere
(
where
,
column
);
includeInfomation
.
model
=
mysqlModelMap
[
tableName
];
includeInfomation
.
model
=
mysqlModelMap
[
tableName
];
// if (required != undefined) {
// includeInfomation.required = required;
// }
include
.
push
(
includeInfomation
);
include
.
push
(
includeInfomation
);
}
}
...
@@ -228,3 +231,5 @@ export async function selectOneDataToTableAssociation(tableModel, includeConf, p
...
@@ -228,3 +231,5 @@ export async function selectOneDataToTableAssociation(tableModel, includeConf, p
data
=
data
||
{};
data
=
data
||
{};
return
{
data
};
return
{
data
};
}
}
src/config/mysqlTableConfig.ts
View file @
51b264a4
...
@@ -117,7 +117,7 @@ export const TablesConfig = [
...
@@ -117,7 +117,7 @@ export const TablesConfig = [
financingAmount
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//融资金额(万元)
financingAmount
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//融资金额(万元)
financingRounds
:
{
type
:
Sequelize
.
INTEGER
},
//融资轮次【枚举】
financingRounds
:
{
type
:
Sequelize
.
INTEGER
},
//融资轮次【枚举】
fuHuaQiInvestment
:
{
type
:
Sequelize
.
INTEGER
},
//孵化器是否参与投资 【枚举】
fuHuaQiInvestment
:
{
type
:
Sequelize
.
INTEGER
},
//孵化器是否参与投资 【枚举】
fuHuaQiInvestmentStyle
:
{
type
:
Sequelize
.
STRING
(
50
)
},
//孵化器投资方式
fuHuaQiInvestmentStyle
:
{
type
:
Sequelize
.
INTEGER
},
//孵化器投资方式
fuHuaQiInvestmentAmount
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//孵化器投资金额
fuHuaQiInvestmentAmount
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//孵化器投资金额
investmentDate
:
{
type
:
Sequelize
.
DATE
},
//获得投资时间
investmentDate
:
{
type
:
Sequelize
.
DATE
},
//获得投资时间
investmentInstitutionsName
:
{
type
:
Sequelize
.
STRING
(
255
)},
//投资机构名称
investmentInstitutionsName
:
{
type
:
Sequelize
.
STRING
(
255
)},
//投资机构名称
...
@@ -160,7 +160,9 @@ export const TablesConfig = [
...
@@ -160,7 +160,9 @@ export const TablesConfig = [
TXP
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//纳税(万元)
TXP
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//纳税(万元)
RD
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//研发投入(万元)
RD
:
{
type
:
Sequelize
.
DECIMAL
(
18
,
2
)},
//研发投入(万元)
createTime
:
{
type
:
Sequelize
.
DATE
},
//填写时间
createTime
:
{
type
:
Sequelize
.
DATE
},
//填写时间
state
:{
type
:
Sequelize
.
INTEGER
}
//状态 0=否 1=是
isUpdate
:{
type
:
Sequelize
.
INTEGER
},
//更新状态 0=否 1=是
isSubmit
:{
type
:
Sequelize
.
INTEGER
},
//是否提交 0=否 1=是
state
:{
type
:
Sequelize
.
INTEGER
}
//审核状态 0=否 1=是
},
},
association
:
[]
association
:
[]
},
},
...
...
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