|
|
@@ -22,6 +22,7 @@ const rationGljModel = mongoose.model('ration_glj');
|
|
|
const rationCoeMolde = mongoose.model('ration_coe');
|
|
|
const installationModel = mongoose.model('installation_fee');
|
|
|
const rationInstallationModel = mongoose.model('ration_installation');
|
|
|
+const rationTemplateModel = mongoose.model('ration_template')
|
|
|
const quantityDetailModel = mongoose.model('quantity_detail');
|
|
|
const unitPriceFileModel = mongoose.model('unit_price_file');
|
|
|
const unitPriceModel = mongoose.model('unit_price');
|
|
|
@@ -79,6 +80,10 @@ async function clearJunkData(callback){
|
|
|
functions.push(function(cb){
|
|
|
rationInstallationModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
|
});
|
|
|
+ //清除ration_installation
|
|
|
+ functions.push(function(cb){
|
|
|
+ rationTemplateModel.remove({projectID: {$in: junkProjIds}}, cb);
|
|
|
+ });
|
|
|
//清除quantity_detail
|
|
|
functions.push(function(cb){
|
|
|
quantityDetailModel.remove({projectID: {$in: junkProjIds}}, cb);
|