Ver código fonte

处理立即执行接口

tags/v1.0.0^2^2
wanjing 1 ano atrás
pai
commit
c88a49b278
1 arquivos alterados com 3 adições e 1 exclusões
  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 Ver arquivo

@@ -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()) {
// 普通用户可对自己创建的任务执行此操作

Carregando…
Cancelar
Salvar