|
@@ -54,12 +54,14 @@ public class MethodOrdersService {
|
|
LambdaQueryWrapper<TbDemandQuotation> wrapper = new LambdaQueryWrapper();
|
|
LambdaQueryWrapper<TbDemandQuotation> wrapper = new LambdaQueryWrapper();
|
|
wrapper.eq(TbDemandQuotation::getDemandId, goodsDemandId);
|
|
wrapper.eq(TbDemandQuotation::getDemandId, goodsDemandId);
|
|
wrapper.eq(TbDemandQuotation::getQuotationResult, 1);
|
|
wrapper.eq(TbDemandQuotation::getQuotationResult, 1);
|
|
- TbDemandQuotation demandQuotation = demandQuotationService.getOne(wrapper);
|
|
|
|
- // 商品报价
|
|
|
|
- ordersDto.setQuotation(demandQuotation.getQuotation());
|
|
|
|
- // 商品报价人
|
|
|
|
- ordersDto.setQuotationPerson(demandQuotation.getCreateName());
|
|
|
|
-
|
|
|
|
|
|
+ wrapper.orderByDesc(TbDemandQuotation::getCreateTime);
|
|
|
|
+ List<TbDemandQuotation> demandQuotationList = demandQuotationService.list(wrapper);
|
|
|
|
+ if(demandQuotationList.size()>0) {
|
|
|
|
+ // 商品报价
|
|
|
|
+ ordersDto.setQuotation(demandQuotationList.get(0).getQuotation());
|
|
|
|
+ // 商品报价人
|
|
|
|
+ ordersDto.setQuotationPerson(demandQuotationList.get(0).getCreateName());
|
|
|
|
+ }
|
|
|
|
|
|
ordersDtoList.add(ordersDto);
|
|
ordersDtoList.add(ordersDto);
|
|
});
|
|
});
|