|
@@ -22,7 +22,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.ui.ModelMap;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
import javax.persistence.criteria.CriteriaBuilder;
|
|
import javax.persistence.criteria.CriteriaBuilder;
|
|
@@ -60,6 +59,9 @@ public class InquiryServiceImpl implements InquiryService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private PublicInquiryService inquiryService;
|
|
private PublicInquiryService inquiryService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private InquiryRemindDao inquiryRemindDao;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 查询公共询价列表信息
|
|
* 查询公共询价列表信息
|
|
|
*
|
|
*
|
|
@@ -183,6 +185,12 @@ public class InquiryServiceImpl implements InquiryService {
|
|
|
PublicInquiryItem item = itemDao.findOne(id);
|
|
PublicInquiryItem item = itemDao.findOne(id);
|
|
|
item.setAgreed(status);
|
|
item.setAgreed(status);
|
|
|
itemDao.save(item);
|
|
itemDao.save(item);
|
|
|
|
|
+ // 更新询价推荐表相关信息
|
|
|
|
|
+ if (status.equals(Constant.YES)) {
|
|
|
|
|
+ inquiryRemindDao.updateStatus(item.getSourceId(), Status.ALLOW.value(), item.getVendUU());
|
|
|
|
|
+ } else if (status.equals(Constant.NO)) {
|
|
|
|
|
+ inquiryRemindDao.updateStatus(item.getSourceId(), Status.NOTALLOW.value(), item.getVendUU());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|