瀏覽代碼

feat: 插入工料机bug

zhangweicheng 4 年之前
父節點
當前提交
8613fcc31b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/main/facade/ration_facade.js

+ 1 - 1
modules/main/facade/ration_facade.js

@@ -805,7 +805,7 @@ function newPriceDataFromPGlj(np,unitPriceFileId){
 async function getUnitPriceData(newProjectGLJList,gljCodes,unitPriceFileId){
   let unitPriceMap = {};
   let newUnitPriceList = [];
-  let unitPriceList = await unitPriceModel.find({unit_price_file_id: unitPriceFileId,'code':{'$in':gljCodes}}).lean();
+  let unitPriceList = await unitPriceModel.find({unit_price_file_id: unitPriceFileId}).lean();
   for(let u of unitPriceList){
     unitPriceMap[getIndex(u)]=u;
   }