|
|
@@ -855,10 +855,10 @@ public class PurchaseInquiryServiceImpl implements PurchaseInquiryService {
|
|
|
@Override
|
|
|
public PurchaseInquiryItem replyWithSimpleInfo(PurchaseInquiryItem item) {
|
|
|
PurchaseInquiryItem existItem = purchaseInquiryItemDao.findOne(item.getId());
|
|
|
- if (!item.isReplyable()) {
|
|
|
+ if (!existItem.isReplyable()) {
|
|
|
throw new IllegalStatusException("该询价单已经报价,不允许再次报价");
|
|
|
}
|
|
|
- boolean isSubmit = (item.getInquiry().getCheck() != null && item.getInquiry().getCheck() == Constant.YES) || (item.getAgreed() != null);
|
|
|
+ boolean isSubmit = (existItem.getInquiry().getCheck() != null && existItem.getInquiry().getCheck() == Constant.YES) || (existItem.getAgreed() != null);
|
|
|
if (isSubmit) {
|
|
|
throw new IllegalOperatorException("报价失败,客户系统已经提交了该询价单");
|
|
|
}
|
|
|
@@ -875,11 +875,11 @@ public class PurchaseInquiryServiceImpl implements PurchaseInquiryService {
|
|
|
checkInquiryItemReplies(existItem, item);
|
|
|
Long userUU = existItem.getUserUU();
|
|
|
if (userUU == null) {
|
|
|
- userUU = item.getInquiry().getRecorderUU();
|
|
|
+ userUU = existItem.getInquiry().getRecorderUU();
|
|
|
}
|
|
|
if (userUU != null && userUU != 0) {
|
|
|
// 消息推送
|
|
|
- XingePusher.pushByUserUU(userUU, "询价单回复", "单号:" + item.getInquiry().getCode() + ",第" + item.getNumber() + "行", "", "");
|
|
|
+ XingePusher.pushByUserUU(userUU, "询价单回复", "单号:" + existItem.getInquiry().getCode() + ",第" + existItem.getNumber() + "行", "", "");
|
|
|
}
|
|
|
PurchaseInquiryItem purchaseInquiryItem = purchaseInquiryItemDao.save(existItem);
|
|
|
|