Browse Source

UAS企业全接口请求头过长,修改请求方式为POST

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

+ 17 - 22
src/main/java/com/uas/platform/b2b/erp/controller/VendorRateController.java

@@ -1,28 +1,10 @@
 package com.uas.platform.b2b.erp.controller;
 
-import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.commons.collections.CollectionUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.ModelMap;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.ResponseBody;
-
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.uas.account.support.Page;
 import com.uas.platform.b2b.dao.VendorDao;
-import com.uas.platform.b2b.erp.model.B2BCustomer;
-import com.uas.platform.b2b.erp.model.B2BVendor;
-import com.uas.platform.b2b.erp.model.PageInfo;
-import com.uas.platform.b2b.erp.model.VendorInfo;
-import com.uas.platform.b2b.erp.model.VendorRate;
+import com.uas.platform.b2b.erp.model.*;
 import com.uas.platform.b2b.erp.support.ErpBufferedLogger;
 import com.uas.platform.b2b.model.InvitationRecord;
 import com.uas.platform.b2b.model.Vendor;
@@ -39,6 +21,19 @@ import com.uas.search.b2b.model.MultiValue;
 import com.uas.search.b2b.model.PageParams;
 import com.uas.search.b2b.model.Sort;
 import com.uas.search.b2b.util.SearchConstants;
+import org.apache.commons.collections.CollectionUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import java.util.ArrayList;
+import java.util.List;
 
 @Controller
 @RequestMapping("/erp/vendor")
@@ -64,7 +59,7 @@ public class VendorRateController {
 	/**
 	 * ERP获取供应商
 	 */
-	@RequestMapping(method = RequestMethod.GET)
+	@RequestMapping(method = RequestMethod.POST)
 	@ResponseBody
 	public Page<B2BVendor> getVendors(@RequestParam("pageInfo") String pageInfo, @RequestParam("vendUUs") String vendor) throws UnsupportedEncodingException {
 		String jsonStr = URLDecoder.decode(pageInfo, "UTF-8");
@@ -91,7 +86,7 @@ public class VendorRateController {
 	/**
 	 * 获取客户
 	 */
-	@RequestMapping(value = "/customer", method = RequestMethod.GET)
+	@RequestMapping(value = "/customer", method = RequestMethod.POST)
 	@ResponseBody
 	public Page<B2BCustomer> getCustomers(@RequestParam("pageInfo") String pageInfo, @RequestParam("custUUs") String customer) throws UnsupportedEncodingException {
 		String jsonStr = URLDecoder.decode(pageInfo, "UTF-8");
@@ -131,7 +126,7 @@ public class VendorRateController {
 	 * @param data
 	 * @return
 	 */
-	@RequestMapping(value = "/request", method = RequestMethod.GET)
+	@RequestMapping(value = "/request", method = RequestMethod.POST)
 	@ResponseBody
 	public Page<BasePartnersInfo> getDoneRequest(@RequestParam("data") String data, @RequestParam("vendUUs") String vendor, @RequestParam("custUUs") String customer) throws Exception {
 		String jsonStr = URLDecoder.decode(data, "UTF-8");