|
|
@@ -1,17 +1,13 @@
|
|
|
package com.uas.credit.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.fasterxml.jackson.databind.annotation.JsonAppend;
|
|
|
import com.uas.credit.model.EnterpriseQuery;
|
|
|
-import com.uas.credit.model.ErpQuery;
|
|
|
import com.uas.credit.model.PersonQuery;
|
|
|
import com.uas.credit.service.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
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.ResponseBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
@@ -45,14 +41,15 @@ public class ErpQueryController {
|
|
|
/**
|
|
|
* ERP对企业进行查询
|
|
|
*/
|
|
|
- @RequestMapping(value = "/queryEn",method = RequestMethod.GET)
|
|
|
- public ModelMap queryEn(String json) {
|
|
|
+ @RequestMapping(value = "/queryEn",method = RequestMethod.POST)
|
|
|
+ public ModelMap queryEn(@RequestBody String json) {
|
|
|
ModelMap modelMap = new ModelMap();
|
|
|
EnterpriseQuery erpQuery = new EnterpriseQuery();
|
|
|
try {
|
|
|
String query = URLDecoder.decode(json, "utf-8");
|
|
|
erpQuery = JSON.parseObject(query, EnterpriseQuery.class);
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
+
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
if (erpQuery != null) {
|
|
|
@@ -75,8 +72,8 @@ public class ErpQueryController {
|
|
|
/**
|
|
|
* erp对个人进行查询
|
|
|
*/
|
|
|
- @RequestMapping(value = "/queryPe",method = RequestMethod.GET)
|
|
|
- public ModelMap queryPerson(String json) {
|
|
|
+ @RequestMapping(value = "/queryPe",method = RequestMethod.POST)
|
|
|
+ public ModelMap queryPerson(@RequestBody String json) {
|
|
|
ModelMap modelMap = new ModelMap();
|
|
|
PersonQuery erpQuery = new PersonQuery();
|
|
|
try {
|