Browse Source

增加已发布的公共询价查询方法

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8203 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 8 years ago
parent
commit
0e15ebdee3

+ 40 - 4
src/main/java/com/uas/platform/b2b/controller/PurcInquiryController.java

@@ -211,6 +211,25 @@ public class PurcInquiryController {
 		return searchService.searchPurchaseInquiryItemIds(keyword, pageParams);
 		return searchService.searchPurchaseInquiryItemIds(keyword, pageParams);
 	}
 	}
 
 
+	// /**
+	// * 未提交(主表查询,不建索引)
+	// *
+	// * @return
+	// */
+	// @RequestMapping(value = "/unapply", method = RequestMethod.GET)
+	// private SPage<PurcInquiry> getUnapply(PageParams params, String keyword)
+	// {
+	// com.uas.search.b2b.model.PageParams pageParams =
+	// searchService.convertPageParams(params, null);
+	// pageParams.getFilters().put("in_enuu",
+	// SystemSession.getUser().getEnterprise().getUu());
+	// pageParams.getFilters().put("in_enterystatus", Status.UNAPPLY.value());
+	// List<Sort> sortList = new ArrayList<>();
+	// sortList.add(new Sort("in_id", false, Type.LONG, new Long(1)));
+	// pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
+	// return searchService.searchPurcInquiryCheckIds(keyword, pageParams);
+	// }
+
 	/**
 	/**
 	 * 未提交(主表查询,不建索引)
 	 * 未提交(主表查询,不建索引)
 	 * 
 	 * 
@@ -218,13 +237,31 @@ public class PurcInquiryController {
 	 */
 	 */
 	@RequestMapping(value = "/unapply", method = RequestMethod.GET)
 	@RequestMapping(value = "/unapply", method = RequestMethod.GET)
 	private Page<PurcInquiry> getUnapply(PageParams params) {
 	private Page<PurcInquiry> getUnapply(PageParams params) {
-		Page<PurcInquiry> inquiry = purcInquiryService.getUnapply(params);
-		return inquiry;
+		return purcInquiryService.getUnapply(params);
 	}
 	}
 
 
+	// /**
+	// * 已发布
+	// *
+	// * @param params
+	// * @return
+	// */
+	// @RequestMapping(value = "/submit", method = RequestMethod.GET)
+	// private SPage<PurcInquiry> getSubmit(PageParams params, String keyword) {
+	// com.uas.search.b2b.model.PageParams pageParams =
+	// searchService.convertPageParams(params, null);
+	// pageParams.getFilters().put("in_enuu",
+	// SystemSession.getUser().getEnterprise().getUu());
+	// pageParams.getFilters().put("in_enterystatus", Status.ENABLED.value());
+	// List<Sort> sortList = new ArrayList<>();
+	// sortList.add(new Sort("in_id", false, Type.LONG, new Long(1)));
+	// pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
+	// return searchService.searchPurcInquiryCheckIds(keyword, pageParams);
+	// }
+
 	/**
 	/**
 	 * 已发布
 	 * 已发布
-	 * 
+	 *
 	 * @param params
 	 * @param params
 	 * @return
 	 * @return
 	 */
 	 */
@@ -232,7 +269,6 @@ public class PurcInquiryController {
 	private Page<PurcInquiry> getSubmit(PageParams params) {
 	private Page<PurcInquiry> getSubmit(PageParams params) {
 		return purcInquiryService.getSubmit(params);
 		return purcInquiryService.getSubmit(params);
 	}
 	}
-
 	/**
 	/**
 	 * 采纳
 	 * 采纳
 	 * 
 	 *