Browse Source

物料信息添加到询价明细

hejq 7 years ago
parent
commit
36fc469f6f

+ 6 - 6
src/main/java/com/uas/ps/inquiry/service/impl/PublicInquiryServiceImpl.java

@@ -1169,13 +1169,13 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
         if (!CollectionUtils.isEmpty(content)) {
             for (InquiryRemind remind : content) {
                 PurcInquiryItemInfo itemInfo = inquiryItemInfoDao.findOne(remind.getItemId());
-                Product product = new Product();
-                product.setTitle(itemInfo.getProdTitle());
-                product.setCmpCode(itemInfo.getCmpCode());
-                product.setBrand(itemInfo.getInbrand());
-                product.setSpec(itemInfo.getSpec());
-                itemInfo.setProduct(product);
                 if (null != itemInfo) {
+                    Product product = new Product();
+                    product.setTitle(itemInfo.getProdTitle());
+                    product.setCmpCode(itemInfo.getCmpCode());
+                    product.setBrand(itemInfo.getInbrand());
+                    product.setSpec(itemInfo.getSpec());
+                    itemInfo.setProduct(product);
                     if (remind.getStatus().equals(Status.NOTALLOW.value())) {
                         itemInfo.setAgreed(Constant.NO);
                     } else if (remind.getStatus().equals(Status.ALLOW.value())) {