|
@@ -64,6 +64,8 @@ public class EVisaTaskCheckController {
|
|
|
|
|
|
private final JdbcTemplate jdbcTemplate;
|
|
private final JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
|
|
+ private final ProjectClient projectClient;
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
|
|
* 检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
|
|
@@ -83,36 +85,36 @@ public class EVisaTaskCheckController {
|
|
if (json.containsKey("customFlowUserList") && !json.getJSONArray("customFlowUserList").isEmpty()) {
|
|
if (json.containsKey("customFlowUserList") && !json.getJSONArray("customFlowUserList").isEmpty()) {
|
|
//获取对应表格的所有电签配置
|
|
//获取对应表格的所有电签配置
|
|
String tableOwner = json.getString("tableOwner");
|
|
String tableOwner = json.getString("tableOwner");
|
|
- if (StringUtils.isBlank(tableOwner)){
|
|
|
|
|
|
+ if (StringUtils.isBlank(tableOwner)) {
|
|
tableOwner = json.getString("classifyType");
|
|
tableOwner = json.getString("classifyType");
|
|
}
|
|
}
|
|
//查询当前节点的PDF
|
|
//查询当前节点的PDF
|
|
InformationQuery node = informationQueryService.getOne(new LambdaQueryWrapper<InformationQuery>()
|
|
InformationQuery node = informationQueryService.getOne(new LambdaQueryWrapper<InformationQuery>()
|
|
- .eq(InformationQuery::getWbsId,json.getString("nodeId"))
|
|
|
|
- .eq(InformationQuery::getClassify,tableOwner));
|
|
|
|
|
|
+ .eq(InformationQuery::getWbsId, json.getString("nodeId"))
|
|
|
|
+ .eq(InformationQuery::getClassify, tableOwner));
|
|
|
|
|
|
- if (node == null || StringUtils.isBlank(node.getPdfUrl())){
|
|
|
|
- return R.fail(300, "当前节点还未生成PDF,不能上报");
|
|
|
|
|
|
+ if (node == null || StringUtils.isBlank(node.getPdfUrl())) {
|
|
|
|
+ return R.fail(300, "当前节点还未生成PDF,不能上报");
|
|
}
|
|
}
|
|
//获取审批人
|
|
//获取审批人
|
|
List<Long> customFlowUserList = json.getJSONArray("customFlowUserList").toJavaList(Long.class);
|
|
List<Long> customFlowUserList = json.getJSONArray("customFlowUserList").toJavaList(Long.class);
|
|
//获取这些审批人在资料合同段的权限
|
|
//获取这些审批人在资料合同段的权限
|
|
- List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, node.getContractId()+"");
|
|
|
|
|
|
+ List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, node.getContractId() + "");
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
//查看项目下是否有监理合同段关联资料合同段
|
|
//查看项目下是否有监理合同段关联资料合同段
|
|
Long contractId = jdbcTemplate.queryForObject("SELECT id from m_contract_info mci WHERE contract_type = 2 \n" +
|
|
Long contractId = jdbcTemplate.queryForObject("SELECT id from m_contract_info mci WHERE contract_type = 2 \n" +
|
|
- "and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + node.getContractId()+")",Long.class);
|
|
|
|
|
|
+ "and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + node.getContractId() + ")", Long.class);
|
|
if (contractId == null) {
|
|
if (contractId == null) {
|
|
return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
}
|
|
}
|
|
- userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, contractId+"");
|
|
|
|
- if (userRoleList == null || userRoleList.size() <= 0){
|
|
|
|
|
|
+ userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, contractId + "");
|
|
|
|
+ if (userRoleList == null || userRoleList.size() <= 0) {
|
|
return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//获取电签配置
|
|
//获取电签配置
|
|
- List<JSONObject> jsonList = this.queryTableEVisaConfig(json,node.getPdfUrl());
|
|
|
|
|
|
+ List<JSONObject> jsonList = this.queryTableEVisaConfig(json, node.getPdfUrl());
|
|
if (jsonList == null) {
|
|
if (jsonList == null) {
|
|
return R.data(300, false, "未找到符合电签配置的相关流程,请重新保存后上报");
|
|
return R.data(300, false, "未找到符合电签配置的相关流程,请重新保存后上报");
|
|
}
|
|
}
|
|
@@ -161,35 +163,35 @@ public class EVisaTaskCheckController {
|
|
//获取审批人
|
|
//获取审批人
|
|
List<Long> customFlowUserList = json.getJSONArray("customFlowUserList").toJavaList(Long.class);
|
|
List<Long> customFlowUserList = json.getJSONArray("customFlowUserList").toJavaList(Long.class);
|
|
//获取电签配置,先获取所有节点的infoIds
|
|
//获取电签配置,先获取所有节点的infoIds
|
|
- List<Long> list = Func.toLongList( json.getString("infoIds"));
|
|
|
|
- if (list == null || list.size() <= 0){
|
|
|
|
- return R.fail( "请选择一条数据");
|
|
|
|
|
|
+ List<Long> list = Func.toLongList(json.getString("infoIds"));
|
|
|
|
+ if (list == null || list.size() <= 0) {
|
|
|
|
+ return R.fail("请选择一条数据");
|
|
}
|
|
}
|
|
List<InformationQuery> infoList = informationQueryService.list(new LambdaQueryWrapper<InformationQuery>()
|
|
List<InformationQuery> infoList = informationQueryService.list(new LambdaQueryWrapper<InformationQuery>()
|
|
.in(InformationQuery::getId, list));
|
|
.in(InformationQuery::getId, list));
|
|
- if (infoList == null || infoList.size() <= 0){
|
|
|
|
|
|
+ if (infoList == null || infoList.size() <= 0) {
|
|
return R.fail("没有获取到当前所有资料的上报信息");
|
|
return R.fail("没有获取到当前所有资料的上报信息");
|
|
}
|
|
}
|
|
//获取这些审批人在资料合同段的权限
|
|
//获取这些审批人在资料合同段的权限
|
|
- List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, infoList.get(0).getContractId()+"");
|
|
|
|
|
|
+ List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, infoList.get(0).getContractId() + "");
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
//查看当前项目下是否有监理合同段关联资料合同段
|
|
//查看当前项目下是否有监理合同段关联资料合同段
|
|
Long contractId = jdbcTemplate.queryForObject("SELECT id from m_contract_info mci WHERE contract_type = 2 \n" +
|
|
Long contractId = jdbcTemplate.queryForObject("SELECT id from m_contract_info mci WHERE contract_type = 2 \n" +
|
|
- "and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + json.getString("contractId")+")",Long.class);
|
|
|
|
|
|
+ "and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + json.getString("contractId") + ")", Long.class);
|
|
if (contractId == null) {
|
|
if (contractId == null) {
|
|
- return R.fail( "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
|
|
|
+ return R.fail("所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
}
|
|
}
|
|
- userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, contractId+"");
|
|
|
|
- if (userRoleList == null || userRoleList.size() <= 0){
|
|
|
|
|
|
+ userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, contractId + "");
|
|
|
|
+ if (userRoleList == null || userRoleList.size() <= 0) {
|
|
return R.fail("所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
return R.fail("所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
Map<String, Set<String>> userNameFail = new HashMap<>();
|
|
Map<String, Set<String>> userNameFail = new HashMap<>();
|
|
for (InformationQuery info : infoList) {
|
|
for (InformationQuery info : infoList) {
|
|
- List<JSONObject> jsonList = this.queryTableEVisaConfig(json,info.getPdfUrl());
|
|
|
|
|
|
+ List<JSONObject> jsonList = this.queryTableEVisaConfig(json, info.getPdfUrl());
|
|
if (jsonList == null || jsonList.size() <= 0) {
|
|
if (jsonList == null || jsonList.size() <= 0) {
|
|
- return R.fail( info.getName() + ":未找到电签配置");
|
|
|
|
|
|
+ return R.fail(info.getName() + ":未找到电签配置");
|
|
}
|
|
}
|
|
|
|
|
|
//汇总电签配置的审批角色
|
|
//汇总电签配置的审批角色
|
|
@@ -255,18 +257,18 @@ public class EVisaTaskCheckController {
|
|
|
|
|
|
//获取对应表格的所有电签配置
|
|
//获取对应表格的所有电签配置
|
|
String tableOwner = json.getString("tableOwner");
|
|
String tableOwner = json.getString("tableOwner");
|
|
- if (StringUtils.isBlank(tableOwner)){
|
|
|
|
|
|
+ if (StringUtils.isBlank(tableOwner)) {
|
|
tableOwner = json.getString("classifyType");
|
|
tableOwner = json.getString("classifyType");
|
|
}
|
|
}
|
|
//查询当前节点的PDF
|
|
//查询当前节点的PDF
|
|
InformationQuery node = informationQueryService.getOne(new LambdaQueryWrapper<InformationQuery>()
|
|
InformationQuery node = informationQueryService.getOne(new LambdaQueryWrapper<InformationQuery>()
|
|
- .eq(InformationQuery::getWbsId,json.getString("nodeId"))
|
|
|
|
- .eq(InformationQuery::getClassify,tableOwner));
|
|
|
|
|
|
+ .eq(InformationQuery::getWbsId, json.getString("nodeId"))
|
|
|
|
+ .eq(InformationQuery::getClassify, tableOwner));
|
|
|
|
|
|
- if (node == null || StringUtils.isBlank(node.getPdfUrl())){
|
|
|
|
- return R.fail(300, "当前节点还未生成PDF,不能上报");
|
|
|
|
|
|
+ if (node == null || StringUtils.isBlank(node.getPdfUrl())) {
|
|
|
|
+ return R.fail(300, "当前节点还未生成PDF,不能上报");
|
|
}
|
|
}
|
|
- List<JSONObject> jsonList = this.queryTableEVisaConfig(json,node.getPdfUrl());
|
|
|
|
|
|
+ List<JSONObject> jsonList = this.queryTableEVisaConfig(json, node.getPdfUrl());
|
|
|
|
|
|
if (jsonList == null || jsonList.size() == 0) {
|
|
if (jsonList == null || jsonList.size() == 0) {
|
|
return R.fail(300, "未找到符合电签配置的相关流程,请重新保存再上报");
|
|
return R.fail(300, "未找到符合电签配置的相关流程,请重新保存再上报");
|
|
@@ -286,13 +288,13 @@ public class EVisaTaskCheckController {
|
|
List<Long> ids = flowLink.stream().map(l -> l.getFixedFlowLinkUser()).collect(Collectors.toList());
|
|
List<Long> ids = flowLink.stream().map(l -> l.getFixedFlowLinkUser()).collect(Collectors.toList());
|
|
|
|
|
|
//获取这些人资料合同段下的权限
|
|
//获取这些人资料合同段下的权限
|
|
- List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(flowLink.stream().map(FixedFlowLink::getFixedFlowLinkUser).distinct().collect(Collectors.toList()), node.getContractId()+"");
|
|
|
|
|
|
+ List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(flowLink.stream().map(FixedFlowLink::getFixedFlowLinkUser).distinct().collect(Collectors.toList()), node.getContractId() + "");
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
//查看当前项目下是否有监理合同段关联此合同段
|
|
//查看当前项目下是否有监理合同段关联此合同段
|
|
String sql = "SELECT id from m_contract_info mci WHERE contract_type = 2 and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + node.getContractId() + ")";
|
|
String sql = "SELECT id from m_contract_info mci WHERE contract_type = 2 and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + node.getContractId() + ")";
|
|
ContractInfo contractInfo = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
ContractInfo contractInfo = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
if (contractInfo != null) {
|
|
if (contractInfo != null) {
|
|
- userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(ids, contractInfo.getId()+"");
|
|
|
|
|
|
+ userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(ids, contractInfo.getId() + "");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (userRoleList == null) {
|
|
if (userRoleList == null) {
|
|
@@ -307,7 +309,7 @@ public class EVisaTaskCheckController {
|
|
next.setDisabled(true);
|
|
next.setDisabled(true);
|
|
//设置提示信息
|
|
//设置提示信息
|
|
String name = jdbcTemplate.queryForObject(" select name from blade_user WHERE id = " + userRole.get("userId"), String.class);
|
|
String name = jdbcTemplate.queryForObject(" select name from blade_user WHERE id = " + userRole.get("userId"), String.class);
|
|
- next.setTips(name+"没有电签权限,请检查电签配置或查看表单是否隐藏");
|
|
|
|
|
|
+ next.setTips(name + "没有电签权限,请检查电签配置或查看表单是否隐藏");
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -356,22 +358,22 @@ public class EVisaTaskCheckController {
|
|
List<FixedFlowVO> flowList = flowPage.getRecords();
|
|
List<FixedFlowVO> flowList = flowPage.getRecords();
|
|
|
|
|
|
//获取电签配置,先获取所有节点的infoIds
|
|
//获取电签配置,先获取所有节点的infoIds
|
|
- List<Long> list = Func.toLongList( json.getString("infoIds"));
|
|
|
|
- if (list == null || list.size() <= 0){
|
|
|
|
|
|
+ List<Long> list = Func.toLongList(json.getString("infoIds"));
|
|
|
|
+ if (list == null || list.size() <= 0) {
|
|
return R.fail("请选择一条数据");
|
|
return R.fail("请选择一条数据");
|
|
}
|
|
}
|
|
List<InformationQuery> infoList = informationQueryService.list(new LambdaQueryWrapper<InformationQuery>()
|
|
List<InformationQuery> infoList = informationQueryService.list(new LambdaQueryWrapper<InformationQuery>()
|
|
.in(InformationQuery::getId, list));
|
|
.in(InformationQuery::getId, list));
|
|
- Map<String,List<String>> map = new HashMap<>();
|
|
|
|
|
|
+ Map<String, List<String>> map = new HashMap<>();
|
|
for (InformationQuery info : infoList) {
|
|
for (InformationQuery info : infoList) {
|
|
- List<JSONObject> jsonList = this.queryTableEVisaConfig(json,info.getPdfUrl());
|
|
|
|
|
|
+ List<JSONObject> jsonList = this.queryTableEVisaConfig(json, info.getPdfUrl());
|
|
if (jsonList == null || jsonList.size() <= 0) {
|
|
if (jsonList == null || jsonList.size() <= 0) {
|
|
return R.fail("资料没有配置电签,请尝试重新保存再上报");
|
|
return R.fail("资料没有配置电签,请尝试重新保存再上报");
|
|
}
|
|
}
|
|
|
|
|
|
//汇总电签配置的审批角色
|
|
//汇总电签配置的审批角色
|
|
List<String> eVisaRoleList = jsonList.stream().map(jsonObject -> jsonObject.getString("sigRoleId")).distinct().collect(Collectors.toList());
|
|
List<String> eVisaRoleList = jsonList.stream().map(jsonObject -> jsonObject.getString("sigRoleId")).distinct().collect(Collectors.toList());
|
|
- map.put(info.getWbsId()+"",eVisaRoleList);
|
|
|
|
|
|
+ map.put(info.getWbsId() + "", eVisaRoleList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -386,13 +388,13 @@ public class EVisaTaskCheckController {
|
|
|
|
|
|
|
|
|
|
//获取这些人资料合同段下的权限
|
|
//获取这些人资料合同段下的权限
|
|
- List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(flowLink.stream().map(FixedFlowLink::getFixedFlowLinkUser).distinct().collect(Collectors.toList()),infoList.get(0).getContractId()+"" );
|
|
|
|
|
|
+ List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(flowLink.stream().map(FixedFlowLink::getFixedFlowLinkUser).distinct().collect(Collectors.toList()), infoList.get(0).getContractId() + "");
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
//查看当前项目下是否有监理合同段关联此合同段
|
|
//查看当前项目下是否有监理合同段关联此合同段
|
|
String sql = "SELECT id from m_contract_info mci WHERE contract_type = 2 and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + infoList.get(0).getContractId() + ")";
|
|
String sql = "SELECT id from m_contract_info mci WHERE contract_type = 2 and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + infoList.get(0).getContractId() + ")";
|
|
ContractInfo contractInfo = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
ContractInfo contractInfo = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
if (contractInfo != null) {
|
|
if (contractInfo != null) {
|
|
- userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(ids, contractInfo.getId()+"");
|
|
|
|
|
|
+ userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(ids, contractInfo.getId() + "");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (userRoleList == null) {
|
|
if (userRoleList == null) {
|
|
@@ -425,23 +427,38 @@ public class EVisaTaskCheckController {
|
|
@GetMapping("/checkFlowUserIsExistPfxFile")
|
|
@GetMapping("/checkFlowUserIsExistPfxFile")
|
|
@ApiOperationSupport(order = 4)
|
|
@ApiOperationSupport(order = 4)
|
|
@ApiOperation(value = "检查当前审批人是否存在证书")
|
|
@ApiOperation(value = "检查当前审批人是否存在证书")
|
|
- public R<Boolean> checkTaskUserIsExistPfxFile() {
|
|
|
|
|
|
+ public R<Boolean> checkTaskUserIsExistPfxFile(@RequestParam String projectId) {
|
|
//获取当前审批人的证书
|
|
//获取当前审批人的证书
|
|
- List<SignPfxFile> signPfxFiles = this.signPfxClient.querySignPfxByUserIdOrContractId(AuthUtil.getUserId().toString(), "");
|
|
|
|
- if (signPfxFiles != null && signPfxFiles.size() > 0) {
|
|
|
|
- SignPfxFile signPfxFile = signPfxFiles.get(0);
|
|
|
|
- if (StringUtils.isEmpty(signPfxFile.getCertificateFileUrl())) {
|
|
|
|
- return R.data(300, false, "当前用户未配置签字证书,请联系维护人员处理");
|
|
|
|
- }
|
|
|
|
- if (!new Integer("1").equals(signPfxFile.getIsRegister())) {
|
|
|
|
- return R.data(300, false, "当前用户的证书未注册,请联系维护人员处理");
|
|
|
|
- }
|
|
|
|
- if (StringUtils.isEmpty(signPfxFile.getSignatureFileUrl())) {
|
|
|
|
- return R.data(300, false, "当前用户未配置签字体,请联系维护人员处理");
|
|
|
|
|
|
+ if (projectId != null && StringUtils.isNotEmpty(projectId)) {
|
|
|
|
+
|
|
|
|
+ ProjectInfo projectInfo = projectClient.getById(projectId);
|
|
|
|
+ if (projectInfo.getRemarkType() == 2) {
|
|
|
|
+ User data = userClient.userInfoById(AuthUtil.getUserId()).getData();
|
|
|
|
+ if(StringUtils.isNotEmpty(data.getAccCode())){
|
|
|
|
+ return R.data(true);
|
|
|
|
+ }else{
|
|
|
|
+ return R.data(300, false, "当前用户未找到签字证书,请联系维护人员处理");
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ List<SignPfxFile> signPfxFiles = this.signPfxClient.querySignPfxByUserIdOrContractId(AuthUtil.getUserId().toString(), "");
|
|
|
|
+ if (signPfxFiles != null && signPfxFiles.size() > 0) {
|
|
|
|
+ SignPfxFile signPfxFile = signPfxFiles.get(0);
|
|
|
|
+ if (StringUtils.isEmpty(signPfxFile.getCertificateFileUrl())) {
|
|
|
|
+ return R.data(300, false, "当前用户未配置签字证书,请联系维护人员处理");
|
|
|
|
+ }
|
|
|
|
+ if (!new Integer("1").equals(signPfxFile.getIsRegister())) {
|
|
|
|
+ return R.data(300, false, "当前用户的证书未注册,请联系维护人员处理");
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isEmpty(signPfxFile.getSignatureFileUrl())) {
|
|
|
|
+ return R.data(300, false, "当前用户未配置签字体,请联系维护人员处理");
|
|
|
|
+ }
|
|
|
|
+ return R.data(true);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- return R.data(true);
|
|
|
|
|
|
+ return R.data(300, false, "当前用户未找到签字证书,请联系维护人员处理");
|
|
|
|
+ } else {
|
|
|
|
+ return R.data(300, false, "projectId不能位null");
|
|
}
|
|
}
|
|
- return R.data(300, false, "当前用户未找到签字证书,请联系维护人员处理");
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -574,7 +591,7 @@ public class EVisaTaskCheckController {
|
|
/**
|
|
/**
|
|
* 获取表格的电签配置
|
|
* 获取表格的电签配置
|
|
*/
|
|
*/
|
|
- private List<JSONObject> queryTableEVisaConfig(JSONObject json,String eVisaPDFUrl) {
|
|
|
|
|
|
+ private List<JSONObject> queryTableEVisaConfig(JSONObject json, String eVisaPDFUrl) {
|
|
List<JSONObject> jsonList;
|
|
List<JSONObject> jsonList;
|
|
if (json.containsKey("theLogPrimaryKeyId") && StringUtils.isNotEmpty(json.getString("theLogPrimaryKeyId"))) {
|
|
if (json.containsKey("theLogPrimaryKeyId") && StringUtils.isNotEmpty(json.getString("theLogPrimaryKeyId"))) {
|
|
//日志,需要先获取对应的表格
|
|
//日志,需要先获取对应的表格
|
|
@@ -592,7 +609,7 @@ public class EVisaTaskCheckController {
|
|
} else {
|
|
} else {
|
|
//资料填报
|
|
//资料填报
|
|
List<String> ids = PDFUtil.getPdfSignIds(eVisaPDFUrl);
|
|
List<String> ids = PDFUtil.getPdfSignIds(eVisaPDFUrl);
|
|
- if (ids == null || ids.size() == 0){
|
|
|
|
|
|
+ if (ids == null || ids.size() == 0) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
String sql = "select * from m_textdict_info where id in(" + StringUtils.join(ids, ",") + ") ";
|
|
String sql = "select * from m_textdict_info where id in(" + StringUtils.join(ids, ",") + ") ";
|