|
|
@@ -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");
|