|
@@ -5,8 +5,8 @@
|
|
* @date 2017/8/31
|
|
* @date 2017/8/31
|
|
* @version
|
|
* @version
|
|
*/
|
|
*/
|
|
|
|
+import mongoose from "mongoose";
|
|
import BaseModel from "../../common/base/base_model";
|
|
import BaseModel from "../../common/base/base_model";
|
|
-import EngineeringLibSchema from "./schemas/engineering_lib";
|
|
|
|
import CompilationModel from "./compilation_model";
|
|
import CompilationModel from "./compilation_model";
|
|
import {default as EngineeringConst, List as EngineeringList} from "../../common/const/engineering";
|
|
import {default as EngineeringConst, List as EngineeringList} from "../../common/const/engineering";
|
|
|
|
|
|
@@ -18,7 +18,7 @@ class EngineeringLibModel extends BaseModel {
|
|
*/
|
|
*/
|
|
constructor() {
|
|
constructor() {
|
|
let parent = super();
|
|
let parent = super();
|
|
- parent.model = EngineeringLibSchema;
|
|
|
|
|
|
+ parent.model = mongoose.model("engineering_lib");
|
|
parent.init();
|
|
parent.init();
|
|
}
|
|
}
|
|
|
|
|