|
|
@@ -32,6 +32,7 @@ const compleRationSection = mongoose.model('complementary_ration_section_tree');
|
|
|
const evaluateListModel = mongoose.model("evaluate_list");
|
|
|
const bidListModel = mongoose.model("bid_evaluation_list");
|
|
|
const contractorListModel = mongoose.model("contractor_list");
|
|
|
+const shareListModel = mongoose.model('share_list');
|
|
|
|
|
|
|
|
|
//删除垃圾数据
|
|
|
@@ -136,6 +137,8 @@ async function clearJunkData(callback){
|
|
|
if(!err){
|
|
|
//清除项目
|
|
|
await projectModel.remove({ID: {$in: junkProjIds}});
|
|
|
+ // 删除分享信息
|
|
|
+ await shareListModel.remove({projectID: {$in: junkProjIds}});
|
|
|
//清除单价文件
|
|
|
await unitPriceFileModel.remove({id: {$in: junkUFIds}});
|
|
|
//清除费率文件
|