|
@@ -22,7 +22,7 @@ const rationGljModel = mongoose.model('ration_glj');
|
|
|
const rationCoeMolde = mongoose.model('ration_coe');
|
|
const rationCoeMolde = mongoose.model('ration_coe');
|
|
|
const installationModel = mongoose.model('installation_fee');
|
|
const installationModel = mongoose.model('installation_fee');
|
|
|
const rationInstallationModel = mongoose.model('ration_installation');
|
|
const rationInstallationModel = mongoose.model('ration_installation');
|
|
|
-const rationTemplateModel = mongoose.model('ration_template')
|
|
|
|
|
|
|
+const rationTemplateModel = mongoose.model('ration_template');
|
|
|
const quantityDetailModel = mongoose.model('quantity_detail');
|
|
const quantityDetailModel = mongoose.model('quantity_detail');
|
|
|
const unitPriceFileModel = mongoose.model('unit_price_file');
|
|
const unitPriceFileModel = mongoose.model('unit_price_file');
|
|
|
const unitPriceModel = mongoose.model('unit_price');
|
|
const unitPriceModel = mongoose.model('unit_price');
|
|
@@ -30,6 +30,9 @@ const mixRatioModel = mongoose.model('mix_ratio');
|
|
|
const feeRateFileModel = mongoose.model('fee_rate_file');
|
|
const feeRateFileModel = mongoose.model('fee_rate_file');
|
|
|
const feeRateModel = mongoose.model('fee_rates');
|
|
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 bidListModel = mongoose.model("bid_evaluation_list");
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//删除垃圾数据
|
|
//删除垃圾数据
|
|
|
async function clearJunkData(callback){
|
|
async function clearJunkData(callback){
|
|
@@ -89,6 +92,14 @@ async function clearJunkData(callback){
|
|
|
functions.push(function(cb){
|
|
functions.push(function(cb){
|
|
|
quantityDetailModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
quantityDetailModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
|
});
|
|
});
|
|
|
|
|
+ //清除暂估材料
|
|
|
|
|
+ functions.push(function(cb){
|
|
|
|
|
+ evaluateListModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
|
|
|
+ });
|
|
|
|
|
+ //清除评标材料
|
|
|
|
|
+ functions.push(function(cb){
|
|
|
|
|
+ bidListModel.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});
|