|
@@ -32,6 +32,7 @@ const feeRateModel = mongoose.model('fee_rates');
|
|
|
const compleRationSection = mongoose.model('complementary_ration_section_tree');
|
|
const compleRationSection = mongoose.model('complementary_ration_section_tree');
|
|
|
const evaluateListModel = mongoose.model("evaluate_list");
|
|
const evaluateListModel = mongoose.model("evaluate_list");
|
|
|
const bidListModel = mongoose.model("bid_evaluation_list");
|
|
const bidListModel = mongoose.model("bid_evaluation_list");
|
|
|
|
|
+const contractorListModel = mongoose.model("contractor_list");
|
|
|
|
|
|
|
|
|
|
|
|
|
//删除垃圾数据
|
|
//删除垃圾数据
|
|
@@ -100,6 +101,10 @@ async function clearJunkData(callback){
|
|
|
functions.push(function(cb){
|
|
functions.push(function(cb){
|
|
|
bidListModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
bidListModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
|
});
|
|
});
|
|
|
|
|
+ //清除承包材料
|
|
|
|
|
+ functions.push(function(cb){
|
|
|
|
|
+ contractorListModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
//彻底删除了的单价文件
|
|
//彻底删除了的单价文件
|
|
|
let junkUFs = await unitPriceFileModel.find({'deleteInfo.deleted': true, 'deleteInfo.completeDeleted': true});
|
|
let junkUFs = await unitPriceFileModel.find({'deleteInfo.deleted': true, 'deleteInfo.completeDeleted': true});
|