|
@@ -4,18 +4,18 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.codec.Base64;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.util.RandomUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.rshy.project.hy.config.properties.*;
|
|
|
import com.rshy.project.hy.model.constant.ItfwConstant;
|
|
|
import com.rshy.project.hy.model.constant.WebConstant;
|
|
|
-import com.rshy.project.hy.model.entity.Identity;
|
|
|
import com.rshy.project.hy.server.dto.*;
|
|
|
import com.rshy.project.hy.server.param.AgentApiParam;
|
|
|
import com.rshy.project.hy.server.param.IdphotoParam;
|
|
|
+import com.rshy.project.hy.server.param.LoginInfo;
|
|
|
import com.rshy.project.hy.server.vo.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -589,7 +589,7 @@ public class ItfwServer {
|
|
|
* @param idNumber
|
|
|
* @param timeout
|
|
|
*/
|
|
|
- public PctrchlDTO getPctrchl(String idNumber, Integer timeout) {
|
|
|
+ public PctrchlDTO getPctrchl(String idNumber, LoginInfo loginInfo, Integer timeout) {
|
|
|
if (StringUtils.isBlank(idNumber)) {
|
|
|
log.warn("身份证号码为空");
|
|
|
return null;
|
|
@@ -611,7 +611,22 @@ public class ItfwServer {
|
|
|
PctrchlProperties properties = new PctrchlProperties();
|
|
|
BeanUtil.copyProperties(pctrchlProperties, properties);
|
|
|
PctrchlBodyDTO pctrchlBodyDTO = new PctrchlBodyDTO();
|
|
|
- pctrchlBodyDTO.setDlxx(new PctrchlDlxxDTO());
|
|
|
+ pctrchlBodyDTO.setExamineCode(RandomUtil.randomNumbers(12));
|
|
|
+ PctrchlDlxxDTO dlxx = new PctrchlDlxxDTO();
|
|
|
+ if (loginInfo != null) {
|
|
|
+ pctrchlBodyDTO.setDeviceIp(loginInfo.getIp());
|
|
|
+ dlxx.setDlip(loginInfo.getIp());
|
|
|
+ dlxx.setHcdz("杭州地铁 " + loginInfo.getLocation());
|
|
|
+ dlxx.setJyCode(loginInfo.getId());
|
|
|
+ dlxx.setJyName(loginInfo.getName());
|
|
|
+ dlxx.setXm(loginInfo.getName());
|
|
|
+ dlxx.setSfzh(loginInfo.getIdNum());
|
|
|
+ dlxx.setZsbh(loginInfo.getIdNum());
|
|
|
+ dlxx.setUserCode(loginInfo.getIdNum());
|
|
|
+ dlxx.setSjhm(loginInfo.getPhone());
|
|
|
+ dlxx.setOrgCode(loginInfo.getOrgCode());
|
|
|
+ }
|
|
|
+ pctrchlBodyDTO.setDlxx(dlxx);
|
|
|
pctrchlBodyDTO.setRyxx(new PctrchlRyxxDTO().setZjhm(idNumber));
|
|
|
properties.setBody(pctrchlBodyDTO);
|
|
|
log.info("人车核录服务请求入参:{}", JSON.toJSONString(properties));
|