Commit de28d19d by 孙香冬

no message

parent 64ec49ae
import { Schema } from "mongoose";
let hatchingGround = {
personInChargeAdd:String,//孵化场地地址
siteAcreage:Number,//孵化场地面积(㎡)
leasePrice:Number,//孵化场地出租单价
}
export const hatchingGroundSchema = new Schema(hatchingGround);
// export function setMethods(fuhuaqiSchema:Schema) {
// fuhuaqiSchema.methods.updateFuHuaQiList = function(fuHuaQiList) {
// let newDbList = [];
// let fileterMap = {};
// for (let i = 0; i < this.fuHuaQiList.length; i++ ) {
// let info = this.fuHuaQiList[i];
// fileterMap[info.uscc] = JSON.stringify(info);
// }
// for (let i = 0; i < fuHuaQiList.length; i++ ) {
// let newInfo = fuHuaQiList[i];
// let fileterItem = fileterMap[newInfo.cId];
// if (fileterItem && JSON.stringify(newInfo) == fileterItem) {//无修改
// newDbList.push(JSON.parse(fileterItem) );
// } else {//修改或添加
// newDbList.push(newInfo);
// }
// }
// this.fuHuaQiList = JSON.parse(JSON.stringify(newDbList));
// }
// }
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