Browse Source

婚姻单双方

wangzhe 2 năm trước cách đây
mục cha
commit
b95a8eda74

+ 10 - 3
mybusiness/src/main/java/com/sooka/system/service/impl/TUPeoplemarryinfodoubleServiceImpl.java

@@ -17,6 +17,8 @@ import com.sooka.system.mapper.TUPeoplemarryinfodoubleMapper;
 import com.sooka.system.domain.TUPeoplemarryinfodouble;
 import com.sooka.system.service.ITUPeoplemarryinfodoubleService;
 
+import javax.annotation.Resource;
+
 /**
  * 国家民政部-婚姻信息(双方)-数据查询接口Service业务层处理
  *
@@ -26,7 +28,7 @@ import com.sooka.system.service.ITUPeoplemarryinfodoubleService;
 @Service
 public class TUPeoplemarryinfodoubleServiceImpl implements ITUPeoplemarryinfodoubleService
 {
-    @Autowired
+    @Resource
     private TUPeoplemarryinfodoubleMapper tUPeoplemarryinfodoubleMapper;
 
     /**
@@ -55,12 +57,17 @@ public class TUPeoplemarryinfodoubleServiceImpl implements ITUPeoplemarryinfodou
         map.put("secretKey", tUPeoplemarryinfodouble.getSecretKey());
         map.put("intCode", "00003");
         map.put("Content-Type", "application/json");
-        String params = "{\"certNumberMan\":\""+tUPeoplemarryinfodouble.getCertnumberman()+"\",\"nameMan\":\""+tUPeoplemarryinfodouble.getNameman()+"\",\"certNumberWoman\":\""+tUPeoplemarryinfodouble.getCertnumberwoman()+"\",\"nameWoman\":\""+tUPeoplemarryinfodouble.getNamewoman()+"\"}";
+//        String params = "{\"certNumberMan\":\""+tUPeoplemarryinfodouble.getCertnumberman()+"\",\"nameMan\":\""+tUPeoplemarryinfodouble.getNameman()+"\",\"certNumberWoman\":\""+tUPeoplemarryinfodouble.getCertnumberwoman()+"\",\"nameWoman\":\""+tUPeoplemarryinfodouble.getNamewoman()+"\"}";
+        String params = "{\"certNumMan\":\""+tUPeoplemarryinfodouble.getCertnumberman()+"\",\"nameMan\":\""+tUPeoplemarryinfodouble.getNameman()+"\",\"certNumWoman\":\""+tUPeoplemarryinfodouble.getCertnumberwoman()+"\",\"nameWoman\":\""+tUPeoplemarryinfodouble.getNamewoman()+"\"}";
 //        String params ="certNumberMan="+tUPeoplemarryinfosingle.getCertnumberman()+"&nameMan="+tUPeoplemarryinfosingle.getNameman();
+        map.put("Authorization-Type", "Basic");
+        map.put("Authorization", "Basic NjBlODQxNzQyZTIyMDE2NjUzYmQ3NmE4N2QxY2FjMzA6ODhlOWM0NzcxMWZkMTM5YjhiMGMyODlkZjBiMWI5YmQ=");
+        map.put("Service-ID", "qNpU77");
         List ls = new ArrayList();
         try {
             TUPeoplemarryinfodouble bean = new TUPeoplemarryinfodouble();
-            String result = HttpUtil2.doPost("http://localhost:88/api/test/peoplemarryInfodouble", params,map);
+//            String result = HttpUtil2.doPost("http://localhost:88/api/test/peoplemarryInfodouble", params,map);
+            String result = HttpUtil2.doPost("http://172.24.5.241:6689/mz/queryMutualVerification", params,map);
             System.out.println(result);
 
             if(result != null){

+ 9 - 3
mybusiness/src/main/java/com/sooka/system/service/impl/TUPeoplemarryinfosingleServiceImpl.java

@@ -57,16 +57,22 @@ public class TUPeoplemarryinfosingleServiceImpl implements ITUPeoplemarryinfosin
         map.put("secretKey", tUPeoplemarryinfosingle.getSecretKey());
         map.put("intCode", "00002");
         map.put("Content-Type", "application/json");
-        String params = "{\"certNumberMan\":\""+tUPeoplemarryinfosingle.getCertnumberman()+"\",\"nameMan\":\""+tUPeoplemarryinfosingle.getNameman()+"\"}";
+//        String params = "{\"certNumberMan\":\""+tUPeoplemarryinfosingle.getCertnumberman()+"\",\"nameMan\":\""+tUPeoplemarryinfosingle.getNameman()+"\"}";
+        String params = "{\"certNumMan\":\""+tUPeoplemarryinfosingle.getCertnumberman()+"\",\"nameMan\":\""+tUPeoplemarryinfosingle.getNameman()+"\"}";
 //        String params ="certNumberMan="+tUPeoplemarryinfosingle.getCertnumberman()+"&nameMan="+tUPeoplemarryinfosingle.getNameman();
+        map.put("Authorization-Type", "Basic");
+        map.put("Authorization", "Basic NjBlODQxNzQyZTIyMDE2NjUzYmQ3NmE4N2QxY2FjMzA6ODhlOWM0NzcxMWZkMTM5YjhiMGMyODlkZjBiMWI5YmQ=");
+        map.put("Service-ID", "qNpU77");
         List ls = new ArrayList();
         try {
             TUPeoplemarryinfosingle bean = new TUPeoplemarryinfosingle();
 //            String result = HttpUtil2.doPost("http://localhost:88/api/test/peoplemarryInfosingle", params,map);//原始的一期旧代码
 //            String result = HttpUtil2.doPost("http://172.24.5.241:6689/v1/apigw/iam/cmca/get/peoplemarryInfosingle", params,map);//IAM方式
 //            String result = HttpUtil2.doPost("http://172.24.5.241:6689/v1/apigw/app/cmca/get/peoplemarryInfosingle", params,map);//AK/SK方式
-            String result = HttpUtil2.doPost("http://172.24.5.241:6689/mz/querySingleVerification666", params,map);//mz/querySingleVerification
-            System.out.println(result);
+            String result = HttpUtil2.doPost("http://172.24.5.241:6689/mz/querySingleVerification", params,map);//mz/querySingleVerification
+            System.out.println(tUPeoplemarryinfosingle.getCertnumberman()+"===婚姻单方certNumberMan");
+            System.out.println(tUPeoplemarryinfosingle.getNameman()+"===婚姻单方nameMan");
+            System.out.println(result+"===婚姻单方result");
 
             if(result != null){
                 JSONObject jsonObject = JSONObject.parseObject(result);