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
de28d19d
Commit
de28d19d
authored
Feb 09, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
64ec49ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
hatchingGround.ts
src/data/fuHuaQi/hatchingGround.ts
+34
-0
No files found.
src/data/fuHuaQi/hatchingGround.ts
0 → 100644
View file @
de28d19d
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));
// }
// }
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