|
@@ -82,6 +82,10 @@ public class ItfwServer {
|
|
|
log.info("请求第三方健康码入参信息:{}", JSON.toJSONString(properties));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("请求健康码服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
PctjkmVO pctjkmVO = JSON.parseObject(body, PctjkmVO.class);
|
|
|
|
|
|
if(CollectionUtil.isEmpty(pctjkmVO.getData().getResult())){
|
|
@@ -111,6 +115,9 @@ public class ItfwServer {
|
|
|
properties.setQuery(new QueryDTO().setZjhm(idNumber));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("重点人员服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
PctzdryVO pctzdryVO = JSON.parseObject(body, PctzdryVO.class);
|
|
|
return CollectionUtil.isEmpty(pctzdryVO.getData()) ? null : pctzdryVO.getData().stream().findFirst().get();
|
|
|
}
|
|
@@ -132,6 +139,9 @@ public class ItfwServer {
|
|
|
BeanUtil.copyProperties(pctztProperties, properties);
|
|
|
properties.setQuery(new QueryDTO().setZjhm(idNumber));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
log.error("人员劣迹服务响应信息:{}", body);
|
|
|
PctztVO pctztVO = JSON.parseObject(body, PctztVO.class);
|
|
|
return CollectionUtil.isEmpty(pctztVO.getData()) ? null : pctztVO.getData().stream().findFirst().get();
|
|
@@ -155,6 +165,9 @@ public class ItfwServer {
|
|
|
properties.setQuery(new QueryDTO().setZjhm(idNumber).setBar_zjhm(StrUtil.EMPTY).setAjbh("ajbh"));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("新的执法办案服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
PctzfbaVO pctzfbaVO = JSON.parseObject(body, PctzfbaVO.class);
|
|
|
return CollectionUtil.isEmpty(pctzfbaVO.getData()) ? null : pctzfbaVO.getData().stream().findFirst().get();
|
|
|
}
|
|
@@ -177,6 +190,9 @@ public class ItfwServer {
|
|
|
properties.setQuery(new QueryDTO().setZjhm(idNumber).setAjbh(ajbh));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("打防控信息服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
PctdfkVO pctdfkVO = JSON.parseObject(body, PctdfkVO.class);
|
|
|
return CollectionUtil.isEmpty(pctdfkVO.getData()) ? null : pctdfkVO.getData().stream().findFirst().get();
|
|
|
}
|
|
@@ -199,6 +215,9 @@ public class ItfwServer {
|
|
|
properties.setQuery(new QueryDTO().setZjhm(idNumber));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("监所人员服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
PctjsryVO pctjsryVO = JSON.parseObject(body, PctjsryVO.class);
|
|
|
return CollectionUtil.isEmpty(pctjsryVO.getData()) ? null : pctjsryVO.getData().stream().findFirst().get();
|
|
|
}
|
|
@@ -223,6 +242,9 @@ public class ItfwServer {
|
|
|
.setZjzl(StrUtil.EMPTY).setChrq(StrUtil.EMPTY));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("吸毒人员服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
PctxdryVO pctxdryVO = JSON.parseObject(body, PctxdryVO.class);
|
|
|
return CollectionUtil.isEmpty(pctxdryVO.getData()) ? null : pctxdryVO.getData().stream().findFirst().get();
|
|
|
}
|
|
@@ -246,6 +268,9 @@ public class ItfwServer {
|
|
|
properties.setQuery(new QueryDTO().setZjhm(idNumber));
|
|
|
String body = this.baseAgentApi(properties, timeout);
|
|
|
log.info("前科人员服务响应信息:{}", body);
|
|
|
+ if(StrUtil.isEmpty(body)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
PctqkryVO pctqkryVO = JSON.parseObject(body, PctqkryVO.class);
|
|
|
return CollectionUtil.isEmpty(pctqkryVO.getData()) ? null : pctqkryVO.getData().stream().findFirst().get();
|
|
|
}
|