|
|
@@ -243,7 +243,7 @@ public class PurchaseTenderController {
|
|
|
sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.NO); // 现在公开的也在这个列表
|
|
|
pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
}
|
|
|
@@ -271,7 +271,7 @@ public class PurchaseTenderController {
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
pageParams.getFilters().put("pt_overdue", Constant.YES);
|
|
|
pageParams.getFilters().put("pt_result", Constant.NO);
|
|
|
return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
@@ -303,7 +303,7 @@ public class PurchaseTenderController {
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
pageParams.getFilters().put("pt_overdue", Constant.NO);
|
|
|
System.out.println("pageParams" + JSON.toJSONString(pageParams));
|
|
|
System.out.println("return" + JSON.toJSONString(searchService.searchPurcTenderIds(keyword, pageParams)));
|
|
|
@@ -334,7 +334,7 @@ public class PurchaseTenderController {
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.NO);
|
|
|
pageParams.getFilters().put("pt_status", "待投标");
|
|
|
pageParams.getFilters().put("pt_overdue", Constant.YES);
|
|
|
return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
@@ -363,78 +363,78 @@ public class PurchaseTenderController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 作为供应商,查看平台开放招标单(待评标)
|
|
|
- *
|
|
|
- * @param params
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping(value = "/open", params = RequestState.DONE, method = RequestMethod.GET)
|
|
|
- @ResponseBody
|
|
|
- public SPage<PurchaseTender> getDoneOpenTenders(PageParams params, String searchFilter) {
|
|
|
- logger.log("平台公开招标单", "查看平台公开招标单(待评标)");
|
|
|
- JSONObject jsonObject = JSONObject.parseObject(searchFilter);
|
|
|
- String keyword = jsonObject.getString("keyword");
|
|
|
- com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, searchFilter);
|
|
|
- List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
- pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
- pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_overdue", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_result", Constant.NO);
|
|
|
- pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
- return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 作为供应商,查看平台开放招标单(待投标)
|
|
|
- *
|
|
|
- * @param params
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping(value = "/open", params = RequestState.TODO, method = RequestMethod.GET)
|
|
|
- @ResponseBody
|
|
|
- public SPage<PurchaseTender> getTodoOpenTenders(PageParams params, String searchFilter) {
|
|
|
- logger.log("平台公开招标单", "查看平台公开招标单(待投标)");
|
|
|
- JSONObject jsonObject = JSONObject.parseObject(searchFilter);
|
|
|
- String keyword = jsonObject.getString("keyword");
|
|
|
- com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, searchFilter);
|
|
|
- List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
- pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
- pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_overdue", Constant.NO);
|
|
|
- pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
- return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 作为供应商,查看平台开放招标单(过期)
|
|
|
- *
|
|
|
- * @param params
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping(value = "/open", params = RequestState.END, method = RequestMethod.GET)
|
|
|
- @ResponseBody
|
|
|
- public SPage<PurchaseTender> getEndOpenTenders(PageParams params, String searchFilter) {
|
|
|
- logger.log("平台公开招标单", "查看平台公开招标单(已过期)");
|
|
|
- JSONObject jsonObject = JSONObject.parseObject(searchFilter);
|
|
|
- String keyword = jsonObject.getString("keyword");
|
|
|
- com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, searchFilter);
|
|
|
- List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
- pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
- pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_ifopen", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_overdue", Constant.YES);
|
|
|
- pageParams.getFilters().put("pt_result", Constant.YES);
|
|
|
-// pageParams.getFilters().put("pt_status", "待投标");
|
|
|
- return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 作为供应商,查看平台开放招标单(待评标)
|
|
|
+// *
|
|
|
+// * @param params
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping(value = "/open", params = RequestState.DONE, method = RequestMethod.GET)
|
|
|
+// @ResponseBody
|
|
|
+// public SPage<PurchaseTender> getDoneOpenTenders(PageParams params, String searchFilter) {
|
|
|
+// logger.log("平台公开招标单", "查看平台公开招标单(待评标)");
|
|
|
+// JSONObject jsonObject = JSONObject.parseObject(searchFilter);
|
|
|
+// String keyword = jsonObject.getString("keyword");
|
|
|
+// com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, searchFilter);
|
|
|
+// List<Sort> sortList = new ArrayList<>();
|
|
|
+// sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+// pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
+// pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_overdue", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_result", Constant.NO);
|
|
|
+// pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
+// return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 作为供应商,查看平台开放招标单(待投标)
|
|
|
+// *
|
|
|
+// * @param params
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping(value = "/open", params = RequestState.TODO, method = RequestMethod.GET)
|
|
|
+// @ResponseBody
|
|
|
+// public SPage<PurchaseTender> getTodoOpenTenders(PageParams params, String searchFilter) {
|
|
|
+// logger.log("平台公开招标单", "查看平台公开招标单(待投标)");
|
|
|
+// JSONObject jsonObject = JSONObject.parseObject(searchFilter);
|
|
|
+// String keyword = jsonObject.getString("keyword");
|
|
|
+// com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, searchFilter);
|
|
|
+// List<Sort> sortList = new ArrayList<>();
|
|
|
+// sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+// pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
+// pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_overdue", Constant.NO);
|
|
|
+// pageParams.getFilters().put("tp_ptid", SystemSession.getUser().getEnterprise().getEnName());
|
|
|
+// return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 作为供应商,查看平台开放招标单(过期)
|
|
|
+// *
|
|
|
+// * @param params
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping(value = "/open", params = RequestState.END, method = RequestMethod.GET)
|
|
|
+// @ResponseBody
|
|
|
+// public SPage<PurchaseTender> getEndOpenTenders(PageParams params, String searchFilter) {
|
|
|
+// logger.log("平台公开招标单", "查看平台公开招标单(已过期)");
|
|
|
+// JSONObject jsonObject = JSONObject.parseObject(searchFilter);
|
|
|
+// String keyword = jsonObject.getString("keyword");
|
|
|
+// com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, searchFilter);
|
|
|
+// List<Sort> sortList = new ArrayList<>();
|
|
|
+// sortList.add(new Sort("pt_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+// pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
+// pageParams.getFilters().put("pt_ispublish", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_ifopen", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_overdue", Constant.YES);
|
|
|
+// pageParams.getFilters().put("pt_result", Constant.YES);
|
|
|
+//// pageParams.getFilters().put("pt_status", "待投标");
|
|
|
+// return searchService.searchPurcTenderIds(keyword, pageParams);
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 作为采购方,查看发出的招标单
|