|
|
@@ -113,9 +113,13 @@ public class SaleQuotationServiceImpl implements SaleQuotationService {
|
|
|
|
|
|
@Override
|
|
|
public SaleQuotationItem findItemById(Long id) {
|
|
|
- SaleQuotationItem item = saleQuotationItemDao.findOne(id);
|
|
|
- if(item == null)
|
|
|
+ SaleQuotationItem item = null;
|
|
|
+ List<SaleQuotationItem> items = saleQuotationItemDao.findByQuid(id);
|
|
|
+ if(item == null && items.size() != 1) {
|
|
|
throw new NotFoundException();
|
|
|
+ }else {
|
|
|
+ item = items.get(0);
|
|
|
+ }
|
|
|
return item;
|
|
|
}
|
|
|
|