Commit db6ddac6 by 孙香冬

no message

parent 98e3817b
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment