|
|
@@ -376,6 +376,15 @@ public class InquiryServiceImpl implements InquiryService {
|
|
|
for (PurcInquiryItemInfo itemInfo : items.getContent()) {
|
|
|
List<PublicInquiryItem> itemList = itemDao.findBySourceId(itemInfo.getId());
|
|
|
itemInfo.setQutations(itemList);
|
|
|
+ itemInfo.setAgreed(Constant.NO);
|
|
|
+ if (!CollectionUtils.isEmpty(itemList)) {
|
|
|
+ for (PublicInquiryItem i : itemList) {
|
|
|
+ if (i.getAgreed() != null && i.getAgreed().equals(Constant.YES)) {
|
|
|
+ itemInfo.setAgreed(Constant.YES);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return items;
|