Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
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
zjxcxServer
Commits
98cd6388
Commit
98cd6388
authored
Feb 17, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7e8cac28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
enterprise.ts
src/biz/enterprise/enterprise.ts
+1
-1
enterprise.ts
src/data/enterprise/enterprise.ts
+2
-2
No files found.
src/biz/enterprise/enterprise.ts
View file @
98cd6388
...
@@ -10,7 +10,7 @@ import { EnterpriseInfoConfig } from "../../config/ojbectResultKeyConfig";
...
@@ -10,7 +10,7 @@ import { EnterpriseInfoConfig } from "../../config/ojbectResultKeyConfig";
import
{
BizError
}
from
"../../util/bizError"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
changeEnumValue
,
checkChange
,
checkParamater
,
extractData
,
getDraftId
,
getTaskId
}
from
"../../util/tools"
import
{
changeEnumValue
,
checkChange
,
checkParamater
,
extractData
,
getDraftId
,
getTaskId
}
from
"../../util/tools"
import
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
createEnterprise
,
deleteEnterprise
,
findEnterpriseCount
,
findEnterpriseByUscc
,
findEnterpriseListToPage
,
findEnterpriseListByFuHuaQiUsccName
,
查询所有已绑定过的孵化器
id
,
findEnterpriseList
,
findEnterpriseByDraftId
}
from
"../../data/enterprise/enterprise"
;
import
{
createEnterprise
,
deleteEnterprise
,
findEnterpriseCount
,
findEnterpriseByUscc
,
findEnterpriseListToPage
,
查询所有已绑定过的孵化器
id
,
findEnterpriseList
,
findEnterpriseByDraftId
}
from
"../../data/enterprise/enterprise"
;
import
{
EnterpriseListConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
EnterpriseListConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
findAllFuHuaQi
,
findAllFuHuaQiOperationNameMap
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
{
findAllFuHuaQi
,
findAllFuHuaQiOperationNameMap
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
{
FUHUAINDUSTRY
,
INDUSTRY
,
OUTPUTTYPE
}
from
"../../config/enum"
;
import
{
FUHUAINDUSTRY
,
INDUSTRY
,
OUTPUTTYPE
}
from
"../../config/enum"
;
...
...
src/data/enterprise/enterprise.ts
View file @
98cd6388
...
@@ -175,7 +175,7 @@ export async function findEnterpriseList(selectParam) {
...
@@ -175,7 +175,7 @@ export async function findEnterpriseList(selectParam) {
* @returns number 数据数量
* @returns number 数据数量
*/
*/
export
async
function
findEnterpriseInfoByName
(
name
:
string
)
{
export
async
function
findEnterpriseInfoByName
(
name
:
string
)
{
return
await
enterpriseModel
.
findOne
({
name
});
return
await
enterpriseModel
.
findOne
({
name
,
draftLock
:
true
});
}
}
...
@@ -185,7 +185,7 @@ export async function findEnterpriseInfoByName(name:string) {
...
@@ -185,7 +185,7 @@ export async function findEnterpriseInfoByName(name:string) {
* @returns []
* @returns []
*/
*/
export
async
function
findEnterpriseListByFuHuaQiUsccName
(
fuHuaQiUscc
:
string
)
{
export
async
function
findEnterpriseListByFuHuaQiUsccName
(
fuHuaQiUscc
:
string
)
{
return
await
enterpriseModel
.
find
({
fuHuaQiUscc
});
return
await
enterpriseModel
.
find
({
fuHuaQiUscc
,
draftLock
:
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