|
|
@@ -42,16 +42,8 @@ public class ErpQueryController {
|
|
|
* ERP对企业进行查询
|
|
|
*/
|
|
|
@RequestMapping(value = "/queryEn",method = RequestMethod.POST)
|
|
|
- public ModelMap queryEn(@RequestBody String json) {
|
|
|
+ public ModelMap queryEn(@RequestBody EnterpriseQuery erpQuery) {
|
|
|
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) {
|
|
|
//查询企业债务信息
|
|
|
String Endept = enterpriseDeptService.queryAndSave(erpQuery);
|
|
|
@@ -72,16 +64,9 @@ public class ErpQueryController {
|
|
|
/**
|
|
|
* erp对个人进行查询
|
|
|
*/
|
|
|
- @RequestMapping(value = "/queryPe",method = RequestMethod.POST)
|
|
|
- public ModelMap queryPerson(@RequestBody String json) {
|
|
|
+ @RequestMapping(value = "/queryPe",method = RequestMethod.POST, produces="application/json;charset=UTF-8")
|
|
|
+ public ModelMap queryPerson(@RequestBody PersonQuery erpQuery) {
|
|
|
ModelMap modelMap = new ModelMap();
|
|
|
- PersonQuery erpQuery = new PersonQuery();
|
|
|
- try {
|
|
|
- String query = URLDecoder.decode(json, "utf-8");
|
|
|
- erpQuery = JSON.parseObject(query, PersonQuery.class);
|
|
|
- } catch (UnsupportedEncodingException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
if(erpQuery != null){
|
|
|
//查询个人身份信息
|
|
|
String Pnidentity = personalService.queryAndSave(erpQuery);
|