|
@@ -3,14 +3,19 @@ package com.boman.web.core.controller;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.http.HttpRequest;
|
|
import cn.hutool.http.HttpRequest;
|
|
import cn.hutool.json.JSONObject;
|
|
import cn.hutool.json.JSONObject;
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
|
+import com.boman.common.core.utils.StringUtils;
|
|
import com.boman.domain.constant.ProxyConstants;
|
|
import com.boman.domain.constant.ProxyConstants;
|
|
|
|
+import com.boman.domain.dto.AjaxResult;
|
|
import com.boman.web.core.utils.GjzwfwptSignUtil;
|
|
import com.boman.web.core.utils.GjzwfwptSignUtil;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -36,7 +41,7 @@ public class CountryProxyQsBdcController {
|
|
String appkey = "d33449a37af825ea4ae9c3a4fb169bb8"; //发送方签名
|
|
String appkey = "d33449a37af825ea4ae9c3a4fb169bb8"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.GJCSYYZMCXSJJK,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.GJCSYYZMCXSJJK,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.GJCSYYZMCXSJJK);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
//Map<String, Object> postParams = new HashMap<>();
|
|
//Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -78,13 +83,18 @@ public class CountryProxyQsBdcController {
|
|
//民政部_殡葬服务火化信息查询
|
|
//民政部_殡葬服务火化信息查询
|
|
@ApiOperation(value = "民政部_殡葬服务火化信息查询")
|
|
@ApiOperation(value = "民政部_殡葬服务火化信息查询")
|
|
@GetMapping("/bzfwhhxxcx")
|
|
@GetMapping("/bzfwhhxxcx")
|
|
- public String bzfwhhxxcx(
|
|
|
|
|
|
+ public AjaxResult bzfwhhxxcx(
|
|
@ApiParam(value = "姓名") @RequestParam String name,
|
|
@ApiParam(value = "姓名") @RequestParam String name,
|
|
@ApiParam(value = "身份证号") @RequestParam String id_card) {
|
|
@ApiParam(value = "身份证号") @RequestParam String id_card) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(name) || StringUtils.isEmpty(id_card)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "c40c921bea411f13377ea3548e6d1686"; //发送方签名
|
|
String appkey = "c40c921bea411f13377ea3548e6d1686"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.BZFWHHXXCX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.BZFWHHXXCX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.BZFWHHXXCX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -97,20 +107,27 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("name", name);
|
|
params.putOnce("name", name);
|
|
params.putOnce("id_card", id_card);
|
|
params.putOnce("id_card", id_card);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.BZFWHHXXCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.BZFWHHXXCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("result");
|
|
|
|
+ return AjaxResult.success("成功",map.get("data"));
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// 民政部_婚姻登记信息核验(个人)
|
|
// 民政部_婚姻登记信息核验(个人)
|
|
@ApiOperation(value = "民政部_婚姻登记信息核验(个人)")
|
|
@ApiOperation(value = "民政部_婚姻登记信息核验(个人)")
|
|
@GetMapping("/hydjxxhygr")
|
|
@GetMapping("/hydjxxhygr")
|
|
- public String hydjxxhygr(
|
|
|
|
|
|
+ public AjaxResult hydjxxhygr(
|
|
@ApiParam(value = "男/女方姓名") @RequestParam String name_man,
|
|
@ApiParam(value = "男/女方姓名") @RequestParam String name_man,
|
|
@ApiParam(value = "男/女方身份证件号码") @RequestParam String cert_num_man) {
|
|
@ApiParam(value = "男/女方身份证件号码") @RequestParam String cert_num_man) {
|
|
|
|
+ if(StringUtils.isEmpty(name_man) || StringUtils.isEmpty(cert_num_man)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
String appkey = "e72f935d839db74e407ca9fa13cc78b7"; //发送方签名
|
|
String appkey = "e72f935d839db74e407ca9fa13cc78b7"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYGR,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYGR,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.HYDJXXHYGR);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -127,19 +144,31 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("name_man", name_man);
|
|
params.putOnce("name_man", name_man);
|
|
params.putOnce("cert_num_man", cert_num_man);
|
|
params.putOnce("cert_num_man", cert_num_man);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.HYDJXXHYGR, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.HYDJXXHYGR, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> listMap = new ArrayList<>();
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("result");
|
|
|
|
+ if(map!= null){
|
|
|
|
+ listMap.add(map);
|
|
|
|
+ }
|
|
|
|
+ return AjaxResult.success("成功",listMap);
|
|
}
|
|
}
|
|
|
|
|
|
// 民政部_婚姻登记信息核验(个人)(新)
|
|
// 民政部_婚姻登记信息核验(个人)(新)
|
|
@ApiOperation(value = "民政部_婚姻登记信息核验(个人)(新)")
|
|
@ApiOperation(value = "民政部_婚姻登记信息核验(个人)(新)")
|
|
@GetMapping("/hydjxxhygrx")
|
|
@GetMapping("/hydjxxhygrx")
|
|
- public String hydjxxhygrx(
|
|
|
|
|
|
+ public AjaxResult hydjxxhygrx(
|
|
@ApiParam(value = "男/女方姓名") @RequestParam String name_man,
|
|
@ApiParam(value = "男/女方姓名") @RequestParam String name_man,
|
|
@ApiParam(value = "男/女方身份证件号码") @RequestParam String cert_num_man) {
|
|
@ApiParam(value = "男/女方身份证件号码") @RequestParam String cert_num_man) {
|
|
|
|
+ if(StringUtils.isEmpty(name_man) || StringUtils.isEmpty(cert_num_man)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
String appkey = "e6f421141633fa9dce093f17e7763112"; //发送方签名
|
|
String appkey = "e6f421141633fa9dce093f17e7763112"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYGRX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYGRX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.HYDJXXHYGRX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
|
|
+ System.out.println("gjzwfwpt_rtime"+gjzwfwpt_rtime);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -152,7 +181,14 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("name_man", name_man);
|
|
params.putOnce("name_man", name_man);
|
|
params.putOnce("cert_num_man", cert_num_man);
|
|
params.putOnce("cert_num_man", cert_num_man);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.HYDJXXHYGRX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.HYDJXXHYGRX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+ List<Map<String, Object>> listMap = new ArrayList<>();
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+ if(map.get("result")!=null){
|
|
|
|
+ listMap.add((Map<String, Object>)map.get("result"));
|
|
|
|
+ }
|
|
|
|
+ return AjaxResult.success("成功",listMap);
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_婚姻登记信息核验(双方)
|
|
//民政部_婚姻登记信息核验(双方)
|
|
@@ -163,10 +199,16 @@ public class CountryProxyQsBdcController {
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
|
|
+ if(StringUtils.isEmpty(name_man) || StringUtils.isEmpty(cert_num_man)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+ if(StringUtils.isEmpty(name_woman) || StringUtils.isEmpty(cert_num_woman)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
String appkey = "30d5c47587af585d8acec5cb68b18ba9"; //发送方签名
|
|
String appkey = "30d5c47587af585d8acec5cb68b18ba9"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYSF,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYSF,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.HYDJXXHYSF);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -194,10 +236,18 @@ public class CountryProxyQsBdcController {
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(name_man) || StringUtils.isEmpty(cert_num_man)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+ if(StringUtils.isEmpty(name_woman) || StringUtils.isEmpty(cert_num_woman)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "76746be3e436eb6ce84b63814ee9cd03"; //发送方签名
|
|
String appkey = "76746be3e436eb6ce84b63814ee9cd03"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYSFX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.HYDJXXHYSFX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.HYDJXXHYSFX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -220,13 +270,18 @@ public class CountryProxyQsBdcController {
|
|
//民政部_民办非企业单位登记证书查询(新)
|
|
//民政部_民办非企业单位登记证书查询(新)
|
|
@ApiOperation(value = "民政部_民办非企业单位登记证书查询(新)")
|
|
@ApiOperation(value = "民政部_民办非企业单位登记证书查询(新)")
|
|
@GetMapping("/mbfqydwdjzscxxx")
|
|
@GetMapping("/mbfqydwdjzscxxx")
|
|
- public String mbfqydwdjzscxxx(
|
|
|
|
|
|
+ public AjaxResult mbfqydwdjzscxxx(
|
|
@ApiParam(value = "唯一社会信用代码") @RequestParam String usc_code,
|
|
@ApiParam(value = "唯一社会信用代码") @RequestParam String usc_code,
|
|
@ApiParam(value = "组织名称") @RequestParam String org_name) {
|
|
@ApiParam(value = "组织名称") @RequestParam String org_name) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(usc_code) || StringUtils.isEmpty(org_name)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "8fcc6c4b9ea44aa6d63096db5cfed126"; //发送方签名
|
|
String appkey = "8fcc6c4b9ea44aa6d63096db5cfed126"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.MBFQYDWDJZSCXXX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.MBFQYDWDJZSCXXX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.MBFQYDWDJZSCXXX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -237,19 +292,31 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("usc_code", usc_code);
|
|
params.putOnce("usc_code", usc_code);
|
|
params.putOnce("org_name", org_name);
|
|
params.putOnce("org_name", org_name);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.MBFQYDWDJZSCXXX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.MBFQYDWDJZSCXXX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("rows"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_社会组织信息查询服务接口(新)
|
|
//民政部_社会组织信息查询服务接口(新)
|
|
@ApiOperation(value = "民政部_社会组织信息查询服务接口(新)")
|
|
@ApiOperation(value = "民政部_社会组织信息查询服务接口(新)")
|
|
@GetMapping("/shzzxxcxfwjkx")
|
|
@GetMapping("/shzzxxcxfwjkx")
|
|
- public String shzzxxcxfwjkx(
|
|
|
|
|
|
+ public AjaxResult shzzxxcxfwjkx(
|
|
@ApiParam(value = "唯一社会信用代码") @RequestParam String usc_code,
|
|
@ApiParam(value = "唯一社会信用代码") @RequestParam String usc_code,
|
|
@ApiParam(value = "社会组织名称") @RequestParam String org_name) {
|
|
@ApiParam(value = "社会组织名称") @RequestParam String org_name) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(usc_code) || StringUtils.isEmpty(org_name)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "45596d6b8d24c9d51c037d77ff6451d6"; //发送方签名
|
|
String appkey = "45596d6b8d24c9d51c037d77ff6451d6"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SHZZXXCXFWJKX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SHZZXXCXFWJKX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SHZZXXCXFWJKX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -262,17 +329,28 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("usc_code", usc_code);
|
|
params.putOnce("usc_code", usc_code);
|
|
params.putOnce("org_name", org_name);
|
|
params.putOnce("org_name", org_name);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SHZZXXCXFWJKX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SHZZXXCXFWJKX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("rows"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_民办非企业名称变更登记记录查询(新)
|
|
//民政部_民办非企业名称变更登记记录查询(新)
|
|
@ApiOperation(value = "民政部_民办非企业名称变更登记记录查询(新)")
|
|
@ApiOperation(value = "民政部_民办非企业名称变更登记记录查询(新)")
|
|
@GetMapping("/mbfqymcbgdjjlcxx")
|
|
@GetMapping("/mbfqymcbgdjjlcxx")
|
|
- public String mbfqymcbgdjjlcxx(@ApiParam(value = "统一社会信用代码") @RequestParam String tyxydm) {
|
|
|
|
|
|
+ public AjaxResult mbfqymcbgdjjlcxx(@ApiParam(value = "统一社会信用代码") @RequestParam String tyxydm) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(tyxydm)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "3268f9654271addb14e01868f4350c5d"; //发送方签名
|
|
String appkey = "3268f9654271addb14e01868f4350c5d"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.MBFQYMCBGDJJLCXX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.MBFQYMCBGDJJLCXX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.MBFQYMCBGDJJLCXX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -283,19 +361,30 @@ public class CountryProxyQsBdcController {
|
|
// params.put("tyxydm", "521000000886907386");
|
|
// params.put("tyxydm", "521000000886907386");
|
|
params.putOnce("tyxydm", tyxydm);
|
|
params.putOnce("tyxydm", tyxydm);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.MBFQYMCBGDJJLCXX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.MBFQYMCBGDJJLCXX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("rows"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_社会团体法人登记证书查询(新)
|
|
//民政部_社会团体法人登记证书查询(新)
|
|
@ApiOperation(value = "民政部_社会团体法人登记证书查询(新)")
|
|
@ApiOperation(value = "民政部_社会团体法人登记证书查询(新)")
|
|
@GetMapping("/shttfrdjzscxx")
|
|
@GetMapping("/shttfrdjzscxx")
|
|
- public String shttfrdjzscxx(
|
|
|
|
|
|
+ public AjaxResult shttfrdjzscxx(
|
|
@ApiParam(value = "唯一社会信用代码") @RequestParam String usc_code,
|
|
@ApiParam(value = "唯一社会信用代码") @RequestParam String usc_code,
|
|
@ApiParam(value = "组织名称") @RequestParam String org_name) {
|
|
@ApiParam(value = "组织名称") @RequestParam String org_name) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(usc_code) || StringUtils.isEmpty(org_name)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "81d1f6c7b58b098b542c979d52411426"; //发送方签名
|
|
String appkey = "81d1f6c7b58b098b542c979d52411426"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SHTTFRDJZSCXX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SHTTFRDJZSCXX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SHTTFRDJZSCXX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -308,17 +397,28 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("usc_code", usc_code);
|
|
params.putOnce("usc_code", usc_code);
|
|
params.putOnce("org_name", org_name);
|
|
params.putOnce("org_name", org_name);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SHTTFRDJZSCXX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SHTTFRDJZSCXX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("rows"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_社会团体名称变更登记记录查询
|
|
//民政部_社会团体名称变更登记记录查询
|
|
@ApiOperation(value = "民政部_社会团体名称变更登记记录查询")
|
|
@ApiOperation(value = "民政部_社会团体名称变更登记记录查询")
|
|
@GetMapping("/shttmcbgdjjlcx")
|
|
@GetMapping("/shttmcbgdjjlcx")
|
|
- public String shttmcbgdjjlcx(@ApiParam(value = "统一社会信用代码") @RequestParam String tyxydm) {
|
|
|
|
|
|
+ public AjaxResult shttmcbgdjjlcx(@ApiParam(value = "统一社会信用代码") @RequestParam String tyxydm) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(tyxydm)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "b90f6831c8ee12e45d21f0fa9421de9b"; //发送方签名
|
|
String appkey = "b90f6831c8ee12e45d21f0fa9421de9b"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SHTTMCBGDJJLCX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SHTTMCBGDJJLCX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SHTTMCBGDJJLCX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -329,19 +429,30 @@ public class CountryProxyQsBdcController {
|
|
// params.put("tyxydm", "521000000886907386");
|
|
// params.put("tyxydm", "521000000886907386");
|
|
params.putOnce("tyxydm", tyxydm);
|
|
params.putOnce("tyxydm", tyxydm);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SHTTMCBGDJJLCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SHTTMCBGDJJLCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("rows"));
|
|
}
|
|
}
|
|
|
|
|
|
// 民政部_涉外婚姻登记信息查询
|
|
// 民政部_涉外婚姻登记信息查询
|
|
@ApiOperation("83民政部_涉外婚姻登记信息查询")
|
|
@ApiOperation("83民政部_涉外婚姻登记信息查询")
|
|
@GetMapping("/swhydjxxcx")
|
|
@GetMapping("/swhydjxxcx")
|
|
- public String swhydjxxcx(
|
|
|
|
|
|
+ public AjaxResult swhydjxxcx(
|
|
@ApiParam(value = "姓名") @RequestParam String name,
|
|
@ApiParam(value = "姓名") @RequestParam String name,
|
|
@ApiParam(value = "身份证号") @RequestParam String cert_num) {
|
|
@ApiParam(value = "身份证号") @RequestParam String cert_num) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(name) || StringUtils.isEmpty(cert_num)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "d7ba1384d8c119823be782c20e2c3570"; //发送方签名
|
|
String appkey = "d7ba1384d8c119823be782c20e2c3570"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXCX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXCX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SWHYDJXXCX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -352,19 +463,31 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("name", name);
|
|
params.putOnce("name", name);
|
|
params.putOnce("cert_num", cert_num);
|
|
params.putOnce("cert_num", cert_num);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SWHYDJXXCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SWHYDJXXCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("result"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_涉外婚姻登记信息核验(个人)(新)
|
|
//民政部_涉外婚姻登记信息核验(个人)(新)
|
|
@ApiOperation(value = "民政部_涉外婚姻登记信息核验(个人)(新)")
|
|
@ApiOperation(value = "民政部_涉外婚姻登记信息核验(个人)(新)")
|
|
@GetMapping("/swhydjxxhygrx")
|
|
@GetMapping("/swhydjxxhygrx")
|
|
- public String swhydjxxhygrx(
|
|
|
|
|
|
+ public AjaxResult swhydjxxhygrx(
|
|
@ApiParam(value = "姓名") @RequestParam String name,
|
|
@ApiParam(value = "姓名") @RequestParam String name,
|
|
@ApiParam(value = "身份证号码") @RequestParam String cert_num) {
|
|
@ApiParam(value = "身份证号码") @RequestParam String cert_num) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(name) || StringUtils.isEmpty(cert_num)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "ffd39c059ce081fd2debac66238d79cd"; //发送方签名
|
|
String appkey = "ffd39c059ce081fd2debac66238d79cd"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXHYGRX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXHYGRX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SWHYDJXXHYGRX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
|
|
+ System.out.println("resultObj:" + gjzwfwpt_rtime);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -375,7 +498,13 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("name", name);
|
|
params.putOnce("name", name);
|
|
params.putOnce("cert_num", cert_num);
|
|
params.putOnce("cert_num", cert_num);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SWHYDJXXHYGRX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SWHYDJXXHYGRX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("result"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_涉外婚姻登记信息核验(双方)
|
|
//民政部_涉外婚姻登记信息核验(双方)
|
|
@@ -386,10 +515,19 @@ public class CountryProxyQsBdcController {
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(name_man) || StringUtils.isEmpty(cert_num_man)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+ if(StringUtils.isEmpty(name_woman) || StringUtils.isEmpty(cert_num_woman)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
String appkey = "2a1c4d5d191d692226aa3cd20861610b"; //发送方签名
|
|
String appkey = "2a1c4d5d191d692226aa3cd20861610b"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXHYSF,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXHYSF,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SWHYDJXXHYSF);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -408,15 +546,23 @@ public class CountryProxyQsBdcController {
|
|
//民政部_涉外婚姻登记信息核验(双方)(新)
|
|
//民政部_涉外婚姻登记信息核验(双方)(新)
|
|
@ApiOperation(value = "民政部_涉外婚姻登记信息核验(双方)(新) ")
|
|
@ApiOperation(value = "民政部_涉外婚姻登记信息核验(双方)(新) ")
|
|
@GetMapping("/swhydjxxhysfx")
|
|
@GetMapping("/swhydjxxhysfx")
|
|
- public String swhydjxxhysfx(
|
|
|
|
|
|
+ public AjaxResult swhydjxxhysfx(
|
|
@ApiParam(value = "男方姓名") @RequestParam String name_man,
|
|
@ApiParam(value = "男方姓名") @RequestParam String name_man,
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "男方身份证件号码") @RequestParam String cert_num_man,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方姓名") @RequestParam String name_woman,
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
@ApiParam(value = "女方身份证件号码") @RequestParam String cert_num_woman) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(name_man) || StringUtils.isEmpty(cert_num_man)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+ if(StringUtils.isEmpty(name_woman) || StringUtils.isEmpty(cert_num_woman)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "24289506f7b4b5c5f5708bbdd73cb761"; //发送方签名
|
|
String appkey = "24289506f7b4b5c5f5708bbdd73cb761"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXHYSFX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SWHYDJXXHYSFX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SWHYDJXXHYSFX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -429,23 +575,34 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("name_woman", name_woman);
|
|
params.putOnce("name_woman", name_woman);
|
|
params.putOnce("cert_num_woman", cert_num_woman);
|
|
params.putOnce("cert_num_woman", cert_num_woman);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SWHYDJXXHYSFX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SWHYDJXXHYSFX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("result"));
|
|
}
|
|
}
|
|
|
|
|
|
//民政部_收养登记证信息(国内)查询
|
|
//民政部_收养登记证信息(国内)查询
|
|
@ApiOperation(value = "民政部_收养登记证信息(国内)查询")
|
|
@ApiOperation(value = "民政部_收养登记证信息(国内)查询")
|
|
@GetMapping("/sydjxxgncx")
|
|
@GetMapping("/sydjxxgncx")
|
|
- public String sydjxxgncx(
|
|
|
|
|
|
+ public AjaxResult sydjxxgncx(
|
|
@ApiParam(value = "查询方式:1 根据登记证号查询,\r\n"
|
|
@ApiParam(value = "查询方式:1 根据登记证号查询,\r\n"
|
|
+ "2 根据男收养人姓名和男收养人身份证号查询,\r\n"
|
|
+ "2 根据男收养人姓名和男收养人身份证号查询,\r\n"
|
|
+ "3 根据女收养人姓名和女收养人身份证号查询,\r\n"
|
|
+ "3 根据女收养人姓名和女收养人身份证号查询,\r\n"
|
|
+ "4 根据被收养人姓名和被收养人身份证号查询", allowableValues = "1,2,3,4") @RequestParam String querytype,
|
|
+ "4 根据被收养人姓名和被收养人身份证号查询", allowableValues = "1,2,3,4") @RequestParam String querytype,
|
|
@ApiParam(value = "证件号码") @RequestParam String reqcert_num,
|
|
@ApiParam(value = "证件号码") @RequestParam String reqcert_num,
|
|
@ApiParam(value = "姓名") @RequestParam(required = false) String name) {
|
|
@ApiParam(value = "姓名") @RequestParam(required = false) String name) {
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isEmpty(querytype) || StringUtils.isEmpty(reqcert_num) || StringUtils.isEmpty(name)){
|
|
|
|
+ AjaxResult.error("请将参数填写完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
String appkey = "e8c6e754492a296ecad061a3917ad3c1"; //发送方签名
|
|
String appkey = "e8c6e754492a296ecad061a3917ad3c1"; //发送方签名
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SYDJXXGNCX,
|
|
String gjzwfwpt_sign = GjzwfwptSignUtil.getGjzwfwptSign(ProxyConstants.SID.SYDJXXGNCX,
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
ProxyConstants.RID.QSBDC_RID, appkey);
|
|
- String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(ProxyConstants.SID.SYDJXXGNCX);
|
|
|
|
|
|
+ String gjzwfwpt_rtime = GjzwfwptSignUtil.getGjzwfwptRtime(appkey);
|
|
// 接口调用
|
|
// 接口调用
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
Map<String, Object> postParams = new HashMap<>();
|
|
//组装参数
|
|
//组装参数
|
|
@@ -459,7 +616,13 @@ public class CountryProxyQsBdcController {
|
|
params.putOnce("cert_num", reqcert_num);
|
|
params.putOnce("cert_num", reqcert_num);
|
|
params.putOnce("name", name);
|
|
params.putOnce("name", name);
|
|
postParams.put("biz_content", params.toString());
|
|
postParams.put("biz_content", params.toString());
|
|
- return postRequest(ProxyConstants.SID.SYDJXXGNCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
|
|
+
|
|
|
|
+ String json = postRequest(ProxyConstants.SID.SYDJXXGNCX, gjzwfwpt_sign, gjzwfwpt_rtime, postParams);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> jsonObject = JSONUtil.toBean(json,HashMap.class);
|
|
|
|
+ Map<String, Object> map = (Map<String, Object>) jsonObject.get("biz_data");
|
|
|
|
+
|
|
|
|
+ return AjaxResult.success("成功",map.get("result"));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|