|
@@ -3,9 +3,9 @@ package com.uas.credit.controller;
|
|
|
import com.uas.credit.model.EnterpriseQuery;
|
|
import com.uas.credit.model.EnterpriseQuery;
|
|
|
import com.uas.credit.model.PersonQuery;
|
|
import com.uas.credit.model.PersonQuery;
|
|
|
import com.uas.credit.service.*;
|
|
import com.uas.credit.service.*;
|
|
|
|
|
+import com.uas.credit.util.FlexJsonUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -40,7 +40,8 @@ public class ErpQueryController {
|
|
|
* ERP对企业进行查询
|
|
* ERP对企业进行查询
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/queryEn", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/queryEn", method = RequestMethod.POST)
|
|
|
- public ModelMap queryEn(@RequestBody EnterpriseQuery erpQuery) {
|
|
|
|
|
|
|
+ public ModelMap queryEn(String data) {
|
|
|
|
|
+ EnterpriseQuery erpQuery = FlexJsonUtils.fromJson(data, EnterpriseQuery.class);
|
|
|
ModelMap modelMap = new ModelMap();
|
|
ModelMap modelMap = new ModelMap();
|
|
|
if (erpQuery != null) {
|
|
if (erpQuery != null) {
|
|
|
// 查询企业债务信息
|
|
// 查询企业债务信息
|
|
@@ -63,7 +64,8 @@ public class ErpQueryController {
|
|
|
* erp对个人进行查询
|
|
* erp对个人进行查询
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/queryPe", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/queryPe", method = RequestMethod.POST)
|
|
|
- public ModelMap queryPerson(@RequestBody PersonQuery erpQuery) {
|
|
|
|
|
|
|
+ public ModelMap queryPerson(String data) {
|
|
|
|
|
+ PersonQuery erpQuery = FlexJsonUtils.fromJson(data, PersonQuery.class);
|
|
|
ModelMap modelMap = new ModelMap();
|
|
ModelMap modelMap = new ModelMap();
|
|
|
if (erpQuery != null) {
|
|
if (erpQuery != null) {
|
|
|
// 查询个人身份信息
|
|
// 查询个人身份信息
|