|
|
@@ -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())) {
|