|
|
@@ -295,6 +295,27 @@ public class PublicInquiryController {
|
|
|
return publicInquiryService.findByPageInfo(pageInfo, searchFilter);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 商城获取采纳列表
|
|
|
+ * @param pageInfo
|
|
|
+ * @param filter
|
|
|
+ * @param _state
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/quotationList", method = RequestMethod.GET)
|
|
|
+ public Page<PublicInquiryItemInfo> getQuotationList(PageInfo pageInfo, String filter, String _state) {
|
|
|
+ Sort sort = new Sort(Sort.Direction.DESC, "date");
|
|
|
+ if (pageInfo.getOffset() == 0) {
|
|
|
+ pageInfo.setOffset(pageInfo.getPageSize() * (pageInfo.getPageNumber() - 1));
|
|
|
+ }
|
|
|
+ pageInfo.setSort(sort);
|
|
|
+ SearchFilter searchFilter = JSONObject.parseObject(filter, SearchFilter.class);
|
|
|
+ if (null != _state) {
|
|
|
+ pageInfo = publicInquiryService.covert(pageInfo, _state);
|
|
|
+ }
|
|
|
+ return publicInquiryService.findListByPageInfo(pageInfo, searchFilter);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取最新的公共询价列表
|
|
|
*
|