|
|
@@ -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;
|
|
|
@@ -46,7 +42,7 @@ public class ErpQueryController {
|
|
|
* ERP对企业进行查询
|
|
|
*/
|
|
|
@RequestMapping(value = "/queryEn",method = RequestMethod.POST)
|
|
|
- public ModelMap queryEn(String json) {
|
|
|
+ public ModelMap queryEn(@RequestBody String json) {
|
|
|
ModelMap modelMap = new ModelMap();
|
|
|
EnterpriseQuery erpQuery = new EnterpriseQuery();
|
|
|
try {
|
|
|
@@ -77,7 +73,7 @@ public class ErpQueryController {
|
|
|
* erp对个人进行查询
|
|
|
*/
|
|
|
@RequestMapping(value = "/queryPe",method = RequestMethod.POST)
|
|
|
- public ModelMap queryPerson(String json) {
|
|
|
+ public ModelMap queryPerson(@RequestBody String json) {
|
|
|
ModelMap modelMap = new ModelMap();
|
|
|
PersonQuery erpQuery = new PersonQuery();
|
|
|
try {
|