|
|
@@ -1,6 +1,31 @@
|
|
|
/**
|
|
|
* Created by chen on 2017/6/29.
|
|
|
*/
|
|
|
+module.exports = {
|
|
|
+ save: save,
|
|
|
+ getData: getData,
|
|
|
+ deleteByRation: deleteByRation,
|
|
|
+ getQuantityByProjectGLJ: getQuantityByProjectGLJ,
|
|
|
+ getLibInfo: getLibInfo,
|
|
|
+ getGLJData: getGLJData,
|
|
|
+ getGLJDataByCodes:getGLJDataByCodes,
|
|
|
+ addGLJ: addGLJ,
|
|
|
+ deleteGLJ:deleteGLJ,
|
|
|
+ insertAddTypeGLJ:insertAddTypeGLJ,
|
|
|
+ replaceGLJ: replaceGLJ,
|
|
|
+ replaceGLJByData:replaceGLJByData,
|
|
|
+ mReplaceGLJ: mReplaceGLJ,
|
|
|
+ updateRationGLJByEdit: updateRationGLJByEdit,
|
|
|
+ getGLJClass: getGLJClass,
|
|
|
+ insertGLJAsRation: insertGLJAsRation,
|
|
|
+ getRationTypeGLJQuantity:getRationTypeGLJQuantity,
|
|
|
+ getInfoFromProjectGLJ:getInfoFromProjectGLJ,
|
|
|
+ createNewRecord:createNewRecord,
|
|
|
+ getGLJSearchInfo:getGLJSearchInfo,
|
|
|
+ updateRationGLJFromDoc:updateRationGLJFromDoc,
|
|
|
+ getGLJLibByEngineerID:getGLJLibByEngineerID,
|
|
|
+ prepareExtData:prepareExtData
|
|
|
+}
|
|
|
|
|
|
let mongoose = require('mongoose');
|
|
|
const uuidV1 = require('uuid/v1');
|
|
|
@@ -29,31 +54,7 @@ const gljClassModel = mongoose.model('std_glj_lib_gljClass');
|
|
|
const projectDao = require('../../pm/models/project_model').project;
|
|
|
const compleClassModel = mongoose.model('complementary_glj_section');
|
|
|
|
|
|
-module.exports = {
|
|
|
- save: save,
|
|
|
- getData: getData,
|
|
|
- deleteByRation: deleteByRation,
|
|
|
- getQuantityByProjectGLJ: getQuantityByProjectGLJ,
|
|
|
- getLibInfo: getLibInfo,
|
|
|
- getGLJData: getGLJData,
|
|
|
- getGLJDataByCodes:getGLJDataByCodes,
|
|
|
- addGLJ: addGLJ,
|
|
|
- deleteGLJ:deleteGLJ,
|
|
|
- insertAddTypeGLJ:insertAddTypeGLJ,
|
|
|
- replaceGLJ: replaceGLJ,
|
|
|
- replaceGLJByData:replaceGLJByData,
|
|
|
- mReplaceGLJ: mReplaceGLJ,
|
|
|
- updateRationGLJByEdit: updateRationGLJByEdit,
|
|
|
- getGLJClass: getGLJClass,
|
|
|
- insertGLJAsRation: insertGLJAsRation,
|
|
|
- getRationTypeGLJQuantity:getRationTypeGLJQuantity,
|
|
|
- getInfoFromProjectGLJ:getInfoFromProjectGLJ,
|
|
|
- createNewRecord:createNewRecord,
|
|
|
- getGLJSearchInfo:getGLJSearchInfo,
|
|
|
- updateRationGLJFromDoc:updateRationGLJFromDoc,
|
|
|
- getGLJLibByEngineerID:getGLJLibByEngineerID,
|
|
|
- prepareExtData:prepareExtData
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
let operationMap = {
|
|
|
'ut_create': create_ration_glj,
|