diff --git a/OBE-MANAGEMENT/src/com/gx/obe/management/composite/PriceFactorsManagerComposite.java b/OBE-MANAGEMENT/src/com/gx/obe/management/composite/PriceFactorsManagerComposite.java index a0b015bbd79f1b8fedf4c62b5cbe38b5f6b1c95e..f2c1cfe6ab40666db3f730a4349e4c8cc35a6aa4 100644 --- a/OBE-MANAGEMENT/src/com/gx/obe/management/composite/PriceFactorsManagerComposite.java +++ b/OBE-MANAGEMENT/src/com/gx/obe/management/composite/PriceFactorsManagerComposite.java @@ -1108,21 +1108,43 @@ public class PriceFactorsManagerComposite extends Composite { curFactor.setBidPriceCode(bidPriceResult.getBidPriceCode()); bid_price_text.setText(bidPriceResult.getBidPriceName()); evaluationFactorService.updateAssignProperty(curFactor, new String[]{"id","bidPriceCode"}); + List<BidPriceResult> bidPriceResultList = bidPriceResultService.getBidPriceResultList(tenderProject.getId(), bidPriceResult.getId()); + Map<String, Object> supplierMap = new HashMap<>(); + if(bidPriceResultList.size() > 0) { + for(BidPriceResult bidPriceResults : bidPriceResultList) { + supplierMap.put(bidPriceResults.getSupplierId(), bidPriceResults); + } + bidPriceResultService.updateBidPriceAndFinalPrice(supplierMap); + } }else { - //默认å«ç¨Ž - curFactor.setBidPriceCode(bidPriceList.get(0).getBidPriceCode()); - bid_price_text.setText(bidPriceList.get(0).getBidPriceName()); - evaluationFactorService.updateAssignProperty(curFactor, new String[]{"id","bidPriceCode"}); + setTaxBidPrice(bidPriceList); } }else { - //默认å«ç¨Ž - curFactor.setBidPriceCode(bidPriceList.get(0).getBidPriceCode()); - bid_price_text.setText(bidPriceList.get(0).getBidPriceName()); - evaluationFactorService.updateAssignProperty(curFactor, new String[]{"id","bidPriceCode"}); + setTaxBidPrice(bidPriceList); } } } } + + /** + * @Description: è®¾ç½®è¯„æ ‡ä»· + * @author lyb + * @param bidPriceList + */ + private void setTaxBidPrice(List<BidPrice> bidPriceList) { + //默认å«ç¨Ž + curFactor.setBidPriceCode(bidPriceList.get(0).getBidPriceCode()); + bid_price_text.setText(bidPriceList.get(0).getBidPriceName()); + evaluationFactorService.updateAssignProperty(curFactor, new String[]{"id","bidPriceCode"}); + List<BidPriceResult> bidPriceResultList = bidPriceResultService.getBidPriceResultList(tenderProject.getId(), bidPriceList.get(0).getId()); + Map<String, Object> supplierMap = new HashMap<>(); + if(bidPriceResultList.size() > 0) { + for(BidPriceResult bidPriceResults : bidPriceResultList) { + supplierMap.put(bidPriceResults.getSupplierId(), bidPriceResults); + } + bidPriceResultService.updateBidPriceAndFinalPrice(supplierMap); + } + } /** * @Description: æ·»åŠ æ–°æŒ‡æ ‡