소스 검색

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){
 async function getUnitPriceData(newProjectGLJList,gljCodes,unitPriceFileId){
   let unitPriceMap = {};
   let unitPriceMap = {};
   let newUnitPriceList = [];
   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){
   for(let u of unitPriceList){
     unitPriceMap[getIndex(u)]=u;
     unitPriceMap[getIndex(u)]=u;
   }
   }