Browse Source

保险起见强制集合名

zhongzewei 7 years ago
parent
commit
a8d1a5f8ed

+ 1 - 1
modules/all_models/compleGlj_glj.js

@@ -30,4 +30,4 @@ const comple_glj = new Schema({
     component: [comple_gljComponent]
 }, {versionKey: false});
 
-mongoose.model('complementary_glj_lib', comple_glj);
+mongoose.model('complementary_glj_lib', comple_glj, 'complementary_glj_lib');

+ 1 - 1
modules/all_models/compleRation_ration.js

@@ -58,4 +58,4 @@ const compleRationSchema = new Schema({
     deleteInfo: deleteSchema
 }, {versionKey: false});
 
-mongoose.model('complementary_ration_items', compleRationSchema);
+mongoose.model('complementary_ration_items', compleRationSchema, 'complementary_ration_items');

+ 1 - 1
modules/all_models/compleRation_section.js

@@ -22,4 +22,4 @@ const compleRationSectionTreeSchema = new Schema({
     deleteInfo: deleteSchema
 }, {versionKey: false});
 
-mongoose.model('complementary_ration_section_tree', compleRationSectionTreeSchema);
+mongoose.model('complementary_ration_section_tree', compleRationSectionTreeSchema, 'complementary_ration_section_tree');

+ 1 - 1
modules/all_models/stdBills_bills.js

@@ -23,4 +23,4 @@ const stdBills_bills = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_bills', stdBills_bills);
+mongoose.model('std_bills_lib_bills', stdBills_bills, 'std_bills_lib_bills');

+ 1 - 1
modules/all_models/stdBills_itemCharacter.js

@@ -14,4 +14,4 @@ const stdBills_itemCharacter = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_itemCharacter', stdBills_itemCharacter);
+mongoose.model('std_bills_lib_itemCharacter', stdBills_itemCharacter, 'std_bills_lib_itemCharacter');

+ 1 - 1
modules/all_models/stdBills_jobContent.js

@@ -14,4 +14,4 @@ const stdBills_jobContent = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_jobContent', stdBills_jobContent);
+mongoose.model('std_bills_lib_jobContent', stdBills_jobContent, 'std_bills_lib_jobContent');

+ 1 - 1
modules/all_models/stdBills_lib.js

@@ -19,4 +19,4 @@ const stdBills_lib = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_list', stdBills_lib);
+mongoose.model('std_bills_lib_list', stdBills_lib, 'std_bills_lib_list');

+ 1 - 1
modules/all_models/stdRation_coe.js

@@ -22,4 +22,4 @@ const coeListSchema = new Schema({
     coes: [coeSchema]
 }, {versionKey: false});
 
-mongoose.model('std_ration_lib_coe_list', coeListSchema);
+mongoose.model('std_ration_lib_coe_list', coeListSchema, 'std_ration_lib_coe_list');

+ 1 - 1
modules/all_models/stdRation_installFeeItem.js

@@ -15,4 +15,4 @@ const installFeeItemSchema = new Schema({
     deleted: false
 }, {versionKey: false});
 
-mongoose.model('std_ration_lib_installation', installFeeItemSchema);
+mongoose.model('std_ration_lib_installation', installFeeItemSchema, 'std_ration_lib_installation');

+ 1 - 1
modules/all_models/stdRation_installSection.js

@@ -26,4 +26,4 @@ const installSectionSchema = new Schema({
     deleted: false
 }, {versionKey: false});
 
-mongoose.model('std_ration_lib_installationSection', installSectionSchema);
+mongoose.model('std_ration_lib_installationSection', installSectionSchema, 'std_ration_lib_installationSection');

+ 1 - 1
modules/all_models/stdRation_lib.js

@@ -13,4 +13,4 @@ const RepositoryMapSchema = new Schema({
     "deleted": Boolean
 });
 
-mongoose.model('std_ration_lib_map', RepositoryMapSchema);
+mongoose.model('std_ration_lib_map', RepositoryMapSchema, 'std_ration_lib_map');

+ 1 - 1
modules/all_models/stdRation_ration.js

@@ -46,4 +46,4 @@ const rationItemSchema = new Schema({
     rationInstList: [rationInstSchema]
 });
 
-mongoose.model('std_ration_lib_ration_items', rationItemSchema);
+mongoose.model('std_ration_lib_ration_items', rationItemSchema, 'std_ration_lib_ration_items');

+ 1 - 1
modules/all_models/stdRation_section.js

@@ -17,4 +17,4 @@ const rationChapterTreeSchema = new Schema({//章节树  //生成唯一id改为s
     isDeleted: Boolean
 });
 
-mongoose.model("std_ration_lib_ration_chapter_trees", rationChapterTreeSchema);
+mongoose.model("std_ration_lib_ration_chapter_trees", rationChapterTreeSchema, 'std_ration_lib_ration_chapter_trees');

+ 1 - 1
modules/all_models/std_glj.js

@@ -30,4 +30,4 @@ const std_glj = new Schema({
     component: [std_gljComponent]
 },{versionKey: false});
 
-mongoose.model('std_glj_lib_gljList', std_glj);
+mongoose.model('std_glj_lib_gljList', std_glj, 'std_glj_lib_gljList');

+ 1 - 1
modules/all_models/std_gljClass.js

@@ -13,4 +13,4 @@ const std_gljClass = new Schema({
     deleted: Boolean
 }, {versionKey: false});
 
-mongoose.model('std_glj_lib_gljClass', std_gljClass);
+mongoose.model('std_glj_lib_gljClass', std_gljClass, 'std_glj_lib_gljClass');

+ 1 - 1
modules/all_models/tem_bills.js

@@ -33,4 +33,4 @@ const BillsTemplateSchema = {
     calcBase: String
 };
 
-mongoose.model('temp_bills', BillsTemplateSchema);
+mongoose.model('temp_bills', BillsTemplateSchema, 'temp_bills');