|
|
@@ -940,8 +940,16 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public PurcInquiryItemInfo findItemByItemId(Long itemId) {
|
|
|
- return inquiryItemInfoDao.findOne(itemId);
|
|
|
+ public PurcInquiryItemInfo findItemByItemId(Long itemId, Long enuu) {
|
|
|
+ PurcInquiryItemInfo itemInfo = inquiryItemInfoDao.findOne(itemId);
|
|
|
+ PublicInquiryItem item = publicInquiryItemDao.findByVendUUAndSourceId(enuu, itemInfo.getId());
|
|
|
+ itemInfo.setQuoted(Constant.NO);
|
|
|
+ if (null != item) {
|
|
|
+ itemInfo.setAgreed(item.getAgreed());
|
|
|
+ itemInfo.setQuteId(item.getId());
|
|
|
+ itemInfo.setQuoted(Constant.YES);
|
|
|
+ }
|
|
|
+ return itemInfo;
|
|
|
}
|
|
|
|
|
|
/**
|