|
|
@@ -7,6 +7,7 @@ import com.uas.platform.b2b.erp.service.PurchaseProdInOutService;
|
|
|
import com.uas.platform.b2b.model.*;
|
|
|
import com.uas.platform.b2b.ps.ProductUtils;
|
|
|
import com.uas.platform.b2b.support.SystemSession;
|
|
|
+import com.uas.platform.core.exception.NotFoundException;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
@@ -66,7 +67,7 @@ public class PurchaseProdInOutServiceImpl implements PurchaseProdInOutService {
|
|
|
item.setProdId(purchaseOrderItems.get(0).getProductId());
|
|
|
acceptItems.add(item);
|
|
|
} else {
|
|
|
- it.remove();
|
|
|
+ throw new NotFoundException(enUU + ",采购验收单对应的采购单[" + item.getOrderItem().getOrder().getCode() + "]第[" + item.getOrderItem().getNumber() + "]行明细不存在");
|
|
|
}
|
|
|
} else {
|
|
|
List<Product> prod = productDao.findByEnUUAndCode(enUU, item.getProdcode());
|