|
@@ -199,6 +199,14 @@ public class EVisaServiceImpl implements EVisaService {
|
|
|
//todo 这里应当是配置限制参数,初版暂时写死
|
|
|
int batch = 20;
|
|
|
|
|
|
+ //获取任务对应表格的电签配置
|
|
|
+ List<JSONObject> eVisaConfigList = this.taskClient.queryBusinessTableEVisaConfig(task.getParallelProcessInstanceId());
|
|
|
+
|
|
|
+ if(eVisaConfigList == null || eVisaConfigList.size() == 0){
|
|
|
+ //没有电签配置,默认当前任务为不签字审批,返回成功
|
|
|
+ return SUCCESS;
|
|
|
+ }
|
|
|
+
|
|
|
//首先获取当前用户的证书信息
|
|
|
List<SignPfxFile> userPfxList = this.signPfxClient.querySignPfxByUserIdOrContractId(AuthUtil.getUserId().toString(), "");
|
|
|
if(userPfxList == null || userPfxList.size() <= 0){
|
|
@@ -213,14 +221,6 @@ public class EVisaServiceImpl implements EVisaService {
|
|
|
return NOT_PFX_OR_FILE;
|
|
|
}
|
|
|
|
|
|
- //获取任务对应表格的电签配置
|
|
|
- List<JSONObject> eVisaConfigList = this.taskClient.queryBusinessTableEVisaConfig(task.getParallelProcessInstanceId());
|
|
|
-
|
|
|
- if(eVisaConfigList == null || eVisaConfigList.size() == 0){
|
|
|
- //没有电签配置,默认当前任务为不签字审批,返回成功
|
|
|
- return SUCCESS;
|
|
|
- }
|
|
|
-
|
|
|
//上锁
|
|
|
if(DistributedRedisLock.acquire(AuthUtil.getUserId().toString(), batch)){
|
|
|
try{
|