Sfoglia il codice sorgente

处理立即执行接口

tags/v1.0.0^2^2
wanjing 1 anno fa
parent
commit
c88a49b278
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/handle/ExecuteHandle.java

+ 3
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/handle/ExecuteHandle.java Vedi File

@@ -51,7 +51,9 @@ public class ExecuteHandle implements GenerateInspectionFieldHander {
} else if (RoleEnum.ADMIN.getCode() == user.getRoleId()) {
// 管理员可对本部门的任务执行此操作
if (user.getDeptId().equals(inspectionVo.getDeptId())) {
inspectionVo.setExecute(true);
if (1 == inspectionVo.getExecutionStatus()) {
inspectionVo.setExecute(true);
}
}
} else if (RoleEnum.ORDINARY_USER.getCode() == user.getRoleId()) {
// 普通用户可对自己创建的任务执行此操作

Loading…
Annulla
Salva