|
@@ -12,8 +12,10 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.rshy.project.hy.manager.RshyJkManager;
|
|
|
+import com.rshy.project.hy.mapper.ExecuteControlMapper;
|
|
|
import com.rshy.project.hy.model.constant.ItfwConstant;
|
|
|
import com.rshy.project.hy.model.dto.NucleicAcidDTO;
|
|
|
+import com.rshy.project.hy.model.entity.ExecuteControl;
|
|
|
import com.rshy.project.hy.model.entity.Identity;
|
|
|
import com.rshy.project.hy.model.enums.*;
|
|
|
import com.rshy.project.hy.server.ItfwServer;
|
|
@@ -77,6 +79,9 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
@Resource
|
|
|
private Environment environment;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ExecuteControlMapper controlMapper;
|
|
|
+
|
|
|
@Override
|
|
|
@Async("hstTaskExecutor")
|
|
|
public Future<RshyVo> getRshyInfo(RshyParam rshyParam) {
|
|
@@ -172,6 +177,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
taskList.add(() -> resultDTO.getPctgkryDTO().setPctzdryDTO(itfwServer.getPctzdry(rshyParam.getSfzh(), rshyParam.getTimeout())));
|
|
|
taskList.add(() -> resultDTO.setPctrchlDTO(itfwServer.getPctrchl(rshyParam.getSfzh(), rshyParam.getLoginInfo(), rshyParam.getTimeout())));
|
|
|
taskList.add(() -> resultDTO.setPctzdrydkResultDTO(itfwServer.getPctzdrydk(rshyParam.getSfzh(), rshyParam.getTimeout())));
|
|
|
+ taskList.add(() -> resultDTO.setExecuteControl(controlMapper.selectOne(new LambdaQueryWrapper<ExecuteControl>().eq(ExecuteControl::getIdNum, rshyParam.getSfzh()))));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -259,6 +265,9 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
} else if (resultDTO.getPctzdrydkResultDTO() != null && resultDTO.getPctzdrydkResultDTO().getTotal() > 0) {
|
|
|
//杭州市重点人员底库查询接口
|
|
|
rshyVo.setPassStatus(PassStatusEnum.RIGHT_WAY).setKind(resultDTO.getPctzdrydkResultDTO().getData().get(0).getRyflList()[0]);
|
|
|
+ } else if (resultDTO.getExecuteControl() != null) {
|
|
|
+ //临控人员
|
|
|
+ rshyVo.setPassStatus(PassStatusEnum.RIGHT_WAY).setKind(resultDTO.getExecuteControl().getCategory()).setWarning(resultDTO.getExecuteControl().getCategory());
|
|
|
} else if (quickRshyVo.get() != null && StrUtil.isNotEmpty(quickRshyVo.get().getSfzh())) {
|
|
|
//依图接口
|
|
|
rshyVo.copySomeValues(quickRshyVo.get());
|
|
@@ -418,6 +427,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
add(() -> resultDTO.getPctgkryDTO().setPctzdryDTO(itfwServer.getPctzdry(rshyCommonParam.getSfzh(), timeout)));
|
|
|
add(() -> resultDTO.setPctrchlDTO(itfwServer.getPctrchl(rshyCommonParam.getSfzh(), null, timeout)));
|
|
|
add(() -> resultDTO.setPctzdrydkResultDTO(itfwServer.getPctzdrydk(rshyCommonParam.getSfzh(), rshyCommonParam.getTimeout())));
|
|
|
+ add(() -> resultDTO.setExecuteControl(controlMapper.selectOne(new LambdaQueryWrapper<ExecuteControl>().eq(ExecuteControl::getIdNum, rshyCommonParam.getSfzh()))));
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -450,6 +460,9 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
} else if (resultDTO.getPctzdrydkResultDTO() != null && resultDTO.getPctzdrydkResultDTO().getTotal() > 0) {
|
|
|
//杭州市重点人员底库查询接口
|
|
|
rshyVo.setPassStatus(PassStatusEnum.RIGHT_WAY).setKind(resultDTO.getPctzdrydkResultDTO().getData().get(0).getRyflList()[0]);
|
|
|
+ } else if (resultDTO.getExecuteControl() != null) {
|
|
|
+ //临控人员
|
|
|
+ rshyVo.setPassStatus(PassStatusEnum.RIGHT_WAY).setKind(resultDTO.getExecuteControl().getCategory()).setWarning(resultDTO.getExecuteControl().getCategory());
|
|
|
} else {
|
|
|
//正常通过
|
|
|
rshyVo.setPassStatus(PassStatusEnum.NORMAL_TRAFFIC);
|