Commit b271c7d3 by lixinming
parents 2838eb48 50a1b770
...@@ -74,9 +74,9 @@ export async function updateFuHuaQiBaseData(uscc:string, param) { ...@@ -74,9 +74,9 @@ export async function updateFuHuaQiBaseData(uscc:string, param) {
if (key == "hatchingGround") { if (key == "hatchingGround") {
param[key].forEach (info => { param[key].forEach (info => {
let {personInChargeAdd, siteAcreage, leasePrice} = info; let {personInChargeAdd, siteAcreage, leasePrice} = info;
if ( typeof personInChargeAdd != 'string' ) throw new BizError(ERRORENUM.参数错误, `personInChargeAdd应是string型 而不是${typeof personInChargeAdd}`); if ( typeof personInChargeAdd != 'string' && personInChargeAdd) throw new BizError(ERRORENUM.参数错误, `personInChargeAdd应是string型 而不是${typeof personInChargeAdd}`);
if ( typeof siteAcreage != 'number' ) throw new BizError(ERRORENUM.参数错误, `siteAcreage应是number型 而不是${typeof personInChargeAdd}`); if ( typeof siteAcreage != 'number' && siteAcreage) throw new BizError(ERRORENUM.参数错误, `siteAcreage应是number型 而不是${typeof personInChargeAdd}`);
if ( typeof leasePrice != 'number' ) throw new BizError(ERRORENUM.参数错误, `leasePrice应是number型 而不是${typeof personInChargeAdd}`); if ( typeof leasePrice != 'number' && leasePrice) throw new BizError(ERRORENUM.参数错误, `leasePrice应是number型 而不是${typeof personInChargeAdd}`);
}) })
} }
} }
......
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