Commit 68273529 authored by suhuiguang's avatar suhuiguang

Merge branch 'develop_tzs_register' of…

Merge branch 'develop_tzs_register' of http://36.40.66.175:5000/moa/amos-boot-biz into develop_tzs_register
parents 4521163e 4ba03cca
...@@ -967,7 +967,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -967,7 +967,7 @@ public class CommonServiceImpl implements ICommonService {
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行前置校验 // 流程执行前置校验
this.checkForExecuteFlow(taskId, instanceId); this.checkForExecuteFlow(taskId, instanceId);
...@@ -1498,12 +1498,12 @@ public class CommonServiceImpl implements ICommonService { ...@@ -1498,12 +1498,12 @@ public class CommonServiceImpl implements ICommonService {
public void checkForExecuteFlow(String taskId, String instanceId) { public void checkForExecuteFlow(String taskId, String instanceId) {
InstanceRuntimeData instanceRuntimeData = getInstanceRuntimeData(instanceId); InstanceRuntimeData instanceRuntimeData = getInstanceRuntimeData(instanceId);
if(instanceRuntimeData == null){ if(instanceRuntimeData == null){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 当前任务id与当前任务id不一致时,不让操作,解决老页面没关闭,但是流程已经被被人执行(通过、驳回、撤回),工作流未限制错误 // 当前任务id与当前任务id不一致时,不让操作,解决老页面没关闭,但是流程已经被被人执行(通过、驳回、撤回),工作流未限制错误
String currentTaskId = instanceRuntimeData.getNextTaskId(); String currentTaskId = instanceRuntimeData.getNextTaskId();
if (!taskId.equals(currentTaskId)) { if (!taskId.equals(currentTaskId)) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 当前流程已经被转办给其他人或者页面按钮问题导致的权限未控制 // 当前流程已经被转办给其他人或者页面按钮问题导致的权限未控制
String nextExecuteUserIds = instanceRuntimeData.getNextExecuteUserIds(); String nextExecuteUserIds = instanceRuntimeData.getNextExecuteUserIds();
...@@ -1527,12 +1527,12 @@ public class CommonServiceImpl implements ICommonService { ...@@ -1527,12 +1527,12 @@ public class CommonServiceImpl implements ICommonService {
public void checkForRevocationFlow(String taskId, String instanceId) { public void checkForRevocationFlow(String taskId, String instanceId) {
InstanceRuntimeData instanceRuntimeData = getInstanceRuntimeData(instanceId); InstanceRuntimeData instanceRuntimeData = getInstanceRuntimeData(instanceId);
if(instanceRuntimeData == null){ if(instanceRuntimeData == null){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 前端页面上送任务id与当前任务id不一致时,不让操作,解决老页面没关闭,但是流程已经被被人执行(通过、驳回、撤回),工作流未限制错误 // 前端页面上送任务id与当前任务id不一致时,不让操作,解决老页面没关闭,但是流程已经被被人执行(通过、驳回、撤回),工作流未限制错误
String currentTaskId = instanceRuntimeData.getNextTaskId(); String currentTaskId = instanceRuntimeData.getNextTaskId();
if (!taskId.equals(currentTaskId)) { if (!taskId.equals(currentTaskId)) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
if(!instanceRuntimeData.getPromoter().equals(RequestContext.getExeUserId())){ if(!instanceRuntimeData.getPromoter().equals(RequestContext.getExeUserId())){
throw new BadRequest("无权限执行该任务"); throw new BadRequest("无权限执行该任务");
......
...@@ -457,7 +457,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg ...@@ -457,7 +457,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
commonService.checkForRevocationFlow(taskId, instanceId); commonService.checkForRevocationFlow(taskId, instanceId);
// 执行流程 // 执行流程
...@@ -528,7 +528,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg ...@@ -528,7 +528,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
......
...@@ -386,7 +386,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR ...@@ -386,7 +386,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonServiceImpl.checkForExecuteFlow(nextTaskId, instanceId); commonServiceImpl.checkForExecuteFlow(nextTaskId, instanceId);
...@@ -428,7 +428,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR ...@@ -428,7 +428,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonServiceImpl.checkForRevocationFlow(nextTaskId, instanceId); commonServiceImpl.checkForRevocationFlow(nextTaskId, instanceId);
......
...@@ -395,7 +395,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -395,7 +395,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
...@@ -443,7 +443,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -443,7 +443,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 撤回校验 // 撤回校验
commonServiceImpl.checkForRevocationFlow(nextTaskId, instanceId); commonServiceImpl.checkForRevocationFlow(nextTaskId, instanceId);
......
...@@ -728,7 +728,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg ...@@ -728,7 +728,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 撤回校验 // 撤回校验
commonServiceImpl.checkForRevocationFlow(noticeDto.getNextTaskId(), noticeDto.getInstanceId()); commonServiceImpl.checkForRevocationFlow(noticeDto.getNextTaskId(), noticeDto.getInstanceId());
...@@ -786,7 +786,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg ...@@ -786,7 +786,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonServiceImpl.checkForExecuteFlow(dto.getNextTaskId(), dto.getInstanceId()); commonServiceImpl.checkForExecuteFlow(dto.getNextTaskId(), dto.getInstanceId());
......
...@@ -402,7 +402,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto, ...@@ -402,7 +402,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
...@@ -541,7 +541,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto, ...@@ -541,7 +541,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
......
...@@ -370,7 +370,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto, ...@@ -370,7 +370,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
...@@ -477,7 +477,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto, ...@@ -477,7 +477,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
......
...@@ -791,7 +791,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -791,7 +791,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
...@@ -834,7 +834,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -834,7 +834,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
......
...@@ -695,7 +695,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -695,7 +695,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
...@@ -745,7 +745,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -745,7 +745,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
......
...@@ -172,7 +172,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -172,7 +172,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
...@@ -294,7 +294,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -294,7 +294,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(_nextTaskId, instanceId); commonService.checkForRevocationFlow(_nextTaskId, instanceId);
...@@ -454,7 +454,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -454,7 +454,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(String.valueOf(map.get("nextTaskId")), contract.getInstanceId()); commonService.checkForExecuteFlow(String.valueOf(map.get("nextTaskId")), contract.getInstanceId());
......
...@@ -658,7 +658,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -658,7 +658,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
...@@ -704,7 +704,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -704,7 +704,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
......
...@@ -570,7 +570,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc ...@@ -570,7 +570,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
...@@ -635,7 +635,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc ...@@ -635,7 +635,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
......
...@@ -625,7 +625,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -625,7 +625,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForRevocationFlow(nextTaskId, instanceId); commonService.checkForRevocationFlow(nextTaskId, instanceId);
...@@ -678,7 +678,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -678,7 +678,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if (!isLocked) { if (!isLocked) {
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
......
...@@ -637,7 +637,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -637,7 +637,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 流程执行时,状态及权限校验 // 流程执行时,状态及权限校验
commonService.checkForExecuteFlow(nextTaskId, instanceId); commonService.checkForExecuteFlow(nextTaskId, instanceId);
...@@ -686,7 +686,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -686,7 +686,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS); boolean isLocked = lock.tryLock(0, 180, TimeUnit.SECONDS);
// 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回) // 解决并发问题:多个人同时操作一个流程(并发执行通过、驳回、撤回)
if(!isLocked){ if(!isLocked){
throw new BadRequest("当前流程已经被执行!"); throw new BadRequest("当前流程已经被执行!请重新打开页面查看并执行!");
} }
// 撤回校验 // 撤回校验
commonServiceImpl.checkForRevocationFlow(nextTaskId, instanceId); commonServiceImpl.checkForRevocationFlow(nextTaskId, instanceId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment