Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiViewServer
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
yuyiViewServer
Commits
98e19e2e
Commit
98e19e2e
authored
Feb 20, 2025
by
zhangzhencai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
848a2b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
qyfw.ts
src/data/db/qyfw.ts
+8
-4
No files found.
src/data/db/qyfw.ts
View file @
98e19e2e
...
...
@@ -171,11 +171,10 @@ export async function getEnterpriseDetails(name, type) {
let
selectParam
=
{};
if
(
name
)
selectParam
[
"enterpriseName"
]
=
{
"%like%"
:
name
};
let
manyTableInfo
:
any
=
{}
let
dbList
=
[];
if
(
type
.
length
!=
0
)
{
for
(
let
i
=
0
;
i
<
type
.
length
;
i
++
){
let
manyTableInfo
:
any
=
{};
let
info
=
type
[
i
];
switch
(
info
)
{
case
SELECTPARAM
.
在孵企业
:
...
...
@@ -206,19 +205,24 @@ export async function getEnterpriseDetails(name, type) {
manyTableInfo
[
TABLENAME
.
企业资质
]
=
{
column
:[],
where
:{
"gaoXinJiShuTime"
:{
"%ne%"
:
null
}}
};
break
;
}
let
enterpriseData
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
[
"eId"
,
"enterpriseName"
],
manyTableInfo
);
enterpriseData
.
forEach
(
item
=>
{
dbList
.
push
(
item
);
});
}
}
else
{
dbList
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
[
"eId"
,
"enterpriseName"
],
{});
}
let
data
List
=
[];
let
data
Change
=
[];
dbList
.
forEach
(
item
=>
{
let
{
eId
,
enterpriseName
}
=
item
;
data
List
.
push
({
eId
,
enterpriseName
});
data
Change
.
push
({
eId
,
enterpriseName
});
})
let
dataList
=
[...
new
Map
(
dataChange
.
map
(
item
=>
[
item
.
eId
,
item
])).
values
()];
return
dataList
;
}
...
...
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