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
3925793c
Commit
3925793c
authored
Feb 06, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
97c35e71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
base.ts
src/biz/fuHuqQi/base.ts
+7
-2
enterprise.ts
src/data/enterprise/enterprise.ts
+1
-0
fuhuaqi.ts
src/data/fuHuaQi/fuhuaqi.ts
+20
-1
No files found.
src/biz/fuHuqQi/base.ts
View file @
3925793c
...
...
@@ -5,6 +5,8 @@
*
*/
import
{
findFuHuaQiByUSCC
}
from
"../../data/fuHuaQi/fuhuaqi"
;
...
...
@@ -12,7 +14,9 @@
* 更新孵化器基础数据
* @param uscc 孵化器统一信用代码
*/
export
function
updateFuHuaQiBaseData
(
uscc
:
string
,
name
:
string
,
)
{
export
async
function
updateFuHuaQiBaseData
(
uscc
:
string
,
name
:
string
,
logonTime
:
number
,
lv
:
number
,
identificationTime
:
number
,
)
{
let
baseDataInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
}
...
...
@@ -22,5 +26,5 @@ export function updateFuHuaQiBaseData(uscc:string, name:string, ) {
* @param uscc 孵化器统一信用代码
*/
export
function
selectFuHuaQiBaseData
(
uscc
:
string
)
{
}
\ No newline at end of file
src/data/enterprise/enterprise.ts
View file @
3925793c
...
...
@@ -5,6 +5,7 @@ const enterpriseSchema = new Schema({
name
:
{
type
:
String
,
index
:
true
},
//企业名称
taskId
:{
type
:
String
,
index
:
true
},
//任务id
uscc
:{
type
:
String
,
index
:
true
},
//统一信用代码
fuHuaQiUscc
:{
type
:
String
,
index
:
true
},
//孵化器统一信用代码
logonTime
:
Number
,
//注册时间
logonAdd
:
String
,
//注册地址
operatingAdd
:
String
,
//经营地址
...
...
src/data/fuHuaQi/fuhuaqi.ts
View file @
3925793c
...
...
@@ -6,6 +6,9 @@ const fuHuaQiSchema = new Schema({
pwd
:
String
,
//登录密码
operationName
:
String
,
//运营名称
uscc
:{
type
:
String
,
index
:
true
},
//统一信用代码 也是登录账号
logonTime
:
Number
,
//注册时间
lv
:
Number
,
//孵化器级别
identificationTime
:
Number
,
//认定时间
...
...
@@ -21,6 +24,22 @@ const fuHuaQiSchema = new Schema({
var
fuHuaQiModel
;
export
function
initModel
(){
fuHuaQiModel
=
baseDB
.
model
(
'fuhuaqi'
,
fuHuaQiSchema
);
fuHuaQiModel
.
selectOnceData
=
async
function
(
paramater
:
object
)
{
let
selectInfo
=
await
fuHuaQiModel
.
findOne
(
paramater
).
exec
();
if
(
selectInfo
)
{
if
(
!
selectInfo
.
runSave
)
{
selectInfo
.
runSave
=
selectInfo
.
save
;
selectInfo
.
save
=
save
.
bind
(
selectInfo
)
}
}
return
selectInfo
;
}
}
export
async
function
save
(
throwError
=
false
)
{
if
(
!
this
.
isModified
())
return
;
await
this
.
runSave
({
validateBeforeSave
:
false
}).
catch
(
err
=>
{
console
.
log
(
err
);
});
}
/**
...
...
@@ -28,7 +47,7 @@ export function initModel(){
* @param uscc 统一信用代码
*/
export
async
function
findFuHuaQiByUSCC
(
uscc
:
string
)
{
return
await
fuHuaQiModel
.
findOne
({
uscc
}).
exec
();
return
await
fuHuaQiModel
.
selectOnceData
({
uscc
}).
exec
();
}
/**
...
...
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