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
db6ddac6
Commit
db6ddac6
authored
Feb 13, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
98e3817b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
base.ts
src/biz/fuHuqQi/base.ts
+12
-0
No files found.
src/biz/fuHuqQi/base.ts
View file @
db6ddac6
...
@@ -11,6 +11,8 @@ import * as tools from "../../util/tools";
...
@@ -11,6 +11,8 @@ import * as tools from "../../util/tools";
import
{
FuHuaQiHomeDataConfig
,
FuHuaQiBaseListConfig
,
FuHuaQiBaseDataConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
FuHuaQiHomeDataConfig
,
FuHuaQiBaseListConfig
,
FuHuaQiBaseDataConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
FUHUAINDUSTRY
,
FUHUAQILNVESTMENTSTYLE
,
FUHUAQILV
,
INSTITUTIONALNATURE
}
from
"../../config/enum"
;
import
{
FUHUAINDUSTRY
,
FUHUAQILNVESTMENTSTYLE
,
FUHUAQILV
,
INSTITUTIONALNATURE
}
from
"../../config/enum"
;
import
{
extractData
}
from
"../../util/tools"
;
import
{
extractData
}
from
"../../util/tools"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
/**
/**
...
@@ -64,6 +66,16 @@ export async function updateFuHuaQiBaseData(uscc:string, param) {
...
@@ -64,6 +66,16 @@ export async function updateFuHuaQiBaseData(uscc:string, param) {
tools
.
checkParamater
(
"更新孵化器基础数据"
,
BaseParamUpdateConfig
,
param
);
tools
.
checkParamater
(
"更新孵化器基础数据"
,
BaseParamUpdateConfig
,
param
);
let
baseDataInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
let
baseDataInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
for
(
let
key
in
param
)
{
if
(
key
==
"hatchingGround"
)
{
param
[
key
].
forEach
(
info
=>
{
let
{
personInChargeAdd
,
siteAcreage
,
leasePrice
}
=
info
;
if
(
typeof
personInChargeAdd
!=
'string'
)
throw
new
BizError
(
ERRORENUM
.
参数错误
,
`personInChargeAdd应是string型 而不是
${
typeof
personInChargeAdd
}
`
);
if
(
typeof
siteAcreage
!=
'number'
)
throw
new
BizError
(
ERRORENUM
.
参数错误
,
`siteAcreage应是number型 而不是
${
typeof
personInChargeAdd
}
`
);
if
(
typeof
leasePrice
!=
'number'
)
throw
new
BizError
(
ERRORENUM
.
参数错误
,
`leasePrice应是number型 而不是
${
typeof
personInChargeAdd
}
`
);
})
}
}
//todo 这里有个bug
//todo 这里有个bug
let
changeList
=
tools
.
checkChange
(
param
,
baseDataInfo
);
let
changeList
=
tools
.
checkChange
(
param
,
baseDataInfo
);
...
...
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