瀏覽代碼

Merge remote-tracking branch 'origin/master'

master
CMM 1 年之前
父節點
當前提交
66e58643d8
共有 2 個文件被更改,包括 12 次插入2 次删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存