Browse Source

修改schema的引用

caiaolin 7 years ago
parent
commit
a27d867ca7

+ 0 - 37
modules/common/std/schemas/std_glj_lib_map.js

@@ -1,37 +0,0 @@
-/**
- * 工料机库数据模型
- *
- * @author CaiAoLin
- * @date 2017/8/16
- * @version
- */
-/*
-import mongoose from "mongoose";
-
-let Schema = mongoose.Schema;
-let collectionName = 'std_glj_lib_map';
-let modelSchema = {
-    // 显示名称
-    dispName: String,
-    // 类型
-    appType: String,
-    // 是否被删除标记
-    deleted: Boolean,
-    // 自增ID
-    ID: Number,
-    // 创建时间
-    createDate: String,
-    // 创建者
-    creator: String,
-    // 最近一次操作
-    recentOpr: Schema.Types.Mixed,
-    // 编办id
-    compilationId: String,
-    // 编办名称
-    compilationName: String,
-    // 定额库
-    rationLibs: Schema.Types.Mixed
-};
-
-let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
-export {model as default, collectionName as collectionName};*/

+ 1 - 1
modules/common/std/std_glj_lib_map_model.js

@@ -6,7 +6,7 @@
  * @version
  */
 import BaseModel from "../../common/base/base_model";
-import STDGLJLibMapSchema from "./schemas/std_glj_lib_map";
+import STDGLJLibMapSchema from "../../std_glj_lib/models/schemas";
 
 class STDGLJLibMapModel extends BaseModel {