Browse Source

Merge remote-tracking branch 'origin/master'

master
CMM 1 year ago
parent
commit
66e58643d8
2 changed files with 12 additions and 2 deletions
  1. +10
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
  2. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/config/SessionTimeoutConfig.java

+ 10
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -1309,6 +1309,16 @@ public class TodoCenterManage {
.asc()
.list();
if(CollUtil.isEmpty(tasks)){
//如果此子单位为空 那就直接再查下 他的其它任务
List<Task> currentTasks = taskService.createTaskQuery()
.processInstanceId(instance.getId())
.taskAssignee(employeeCode)
.orderByTaskCreateTime()
.asc()
.list();
if(CollUtil.isNotEmpty(currentTasks)){
return currentTasks.get(0).getId();
}
return taskId;
}
return tasks.get(0).getId();


pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/config/RedisSessionTimeoutConfig.java → pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/config/SessionTimeoutConfig.java View File

@@ -21,9 +21,9 @@ import javax.annotation.PostConstruct;
@Configuration
@RequiredArgsConstructor
@AutoConfigureAfter(RedisHttpSessionConfiguration.class)
public class RedisSessionTimeoutConfig {
public class SessionTimeoutConfig {

@Value("${spring.session.timeout:60 * 60 * 4}")
@Value("${spring.session.timeout:14400}")
private Integer springSessionTimeout;

private final RedisHttpSessionConfiguration redisHttpSessionConfiguration;

Loading…
Cancel
Save