|
@@ -34,6 +34,7 @@ import tk.mybatis.mapper.weekend.WeekendCriteria;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -174,7 +175,7 @@ public class WorkflowTaskBomServiceImpl extends BaseServiceImpl<WorkflowTaskBomM
|
|
|
if(StringUtils.isNotBlank(val) && "Y".equals(val)){
|
|
|
throw new DeniedException("有人正在审批该任务,请刷新页面");
|
|
|
}
|
|
|
- RedisUtils.setString(record.getTaskId(),"Y");
|
|
|
+ RedisUtils.setString(record.getTaskId(),"Y",10, TimeUnit.SECONDS);
|
|
|
}
|
|
|
checkPreview(record);
|
|
|
WorkflowTaskBom bom = mapper.selectByPrimaryKey(record.getTaskBomId());
|