|
|
@@ -545,7 +545,11 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
List<MessageModel> models = new ArrayList<MessageModel>();
|
|
|
User u = userDao.findOne(null != item.getInquiry().getRecorderUU() ? item.getInquiry().getRecorderUU() : 0L);
|
|
|
Enterprise e = enterpriseDao.findOne(item.getInquiry().getEnUU());
|
|
|
- String cmpCode = item.getProduct() != null ? item.getProduct().getCmpCode() : item.getCmpCode();
|
|
|
+ Product product = new Product();
|
|
|
+ if (null != item.getProductId()) {
|
|
|
+ product = productDao.findOne(item.getProductId());
|
|
|
+ }
|
|
|
+ String cmpCode = product.getCmpCode() != null ? product.getCmpCode() : item.getCmpCode();
|
|
|
String content = item.getAgreed() == 1 ? "【采纳】" : "【未采纳】";
|
|
|
content = content + "您关于“" + cmpCode + "”的报价";
|
|
|
if (null != e) {
|