Browse Source

平台采购询价增加数据来源判断

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

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

@@ -94,7 +94,7 @@ public class PurcInquiryController {
 	 * @param id
 	 * @param id
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/sumbit/{id}", method = RequestMethod.POST)
+	@RequestMapping(value = "/submit/{id}", method = RequestMethod.POST)
 	private ModelMap sumbit(@PathVariable Long id) {
 	private ModelMap sumbit(@PathVariable Long id) {
 		return purcInquiryService.sumbit(id);
 		return purcInquiryService.sumbit(id);
 	}
 	}
@@ -135,7 +135,7 @@ public class PurcInquiryController {
 		com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, null);
 		com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, null);
 		// 当前登录企业作为供应商
 		// 当前登录企业作为供应商
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
-		// pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
+		pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
 		List<Sort> sortList = new ArrayList<>();
 		List<Sort> sortList = new ArrayList<>();
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
@@ -155,7 +155,7 @@ public class PurcInquiryController {
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_status", Status.NOT_REPLY.value());
 		pageParams.getFilters().put("id_status", Status.NOT_REPLY.value());
 		pageParams.getFilters().put("id_overdue", Constant.NO);
 		pageParams.getFilters().put("id_overdue", Constant.NO);
-		// pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
+		pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
 		List<Sort> sortList = new ArrayList<>();
 		List<Sort> sortList = new ArrayList<>();
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
@@ -174,7 +174,7 @@ public class PurcInquiryController {
 		// 当前登录企业作为供应商
 		// 当前登录企业作为供应商
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_status", Status.NOT_REPLY.value());
 		pageParams.getFilters().put("id_status", Status.NOT_REPLY.value());
-		// pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
+		pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
 		pageParams.getFilters().put("id_overdue", Constant.YES);
 		pageParams.getFilters().put("id_overdue", Constant.YES);
 		List<Sort> sortList = new ArrayList<>();
 		List<Sort> sortList = new ArrayList<>();
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
@@ -194,7 +194,7 @@ public class PurcInquiryController {
 		// 当前登录企业作为供应商
 		// 当前登录企业作为供应商
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_inid", SystemSession.getUser().getEnterprise().getUu());
 		pageParams.getFilters().put("id_status", Status.REPLIED.value());
 		pageParams.getFilters().put("id_status", Status.REPLIED.value());
-		// pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
+		pageParams.getFilters().put("id_sourceapp", SOURCERAPP);
 		List<Sort> sortList = new ArrayList<>();
 		List<Sort> sortList = new ArrayList<>();
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		sortList.add(new Sort("id_id", false, Type.LONG, new Long(1)));
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);