Commit 0f086a91 authored by 赵啸非's avatar 赵啸非

添加产品资源枚举类

parent 0477ba10
...@@ -55,7 +55,7 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService { ...@@ -55,7 +55,7 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService {
String serviceName = item.getServiceName(); String serviceName = item.getServiceName();
boolean healthy = item.isHealthy(); boolean healthy = item.isHealthy();
if (healthy) { if (healthy) {
setupProjectEntity.setProjectStatus(ProjectStatusEnum.运行.getValue()); setupProjectEntity.setProjectStatus(ProjectStatusEnum.运行.getValue());
} else { } else {
setupProjectEntity.setProjectStatus(ProjectStatusEnum.停止.getValue()); setupProjectEntity.setProjectStatus(ProjectStatusEnum.停止.getValue());
} }
...@@ -72,7 +72,7 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService { ...@@ -72,7 +72,7 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService {
String destPath = projectPath + File.separator + projectCode + File.separator + "dist" + File.separator + "index.html"; String destPath = projectPath + File.separator + projectCode + File.separator + "dist" + File.separator + "index.html";
File uiFile = new File(destPath); File uiFile = new File(destPath);
if (uiFile.exists()) { if (uiFile.exists()) {
setupProjectEntity.setProjectStatus(ProjectStatusEnum.运行.getValue()); setupProjectEntity.setProjectStatus(ProjectStatusEnum.运行.getValue());
setupProjectEntity.setUpdateTime(new Date()); setupProjectEntity.setUpdateTime(new Date());
setupProjectService.update(setupProjectEntity); setupProjectService.update(setupProjectEntity);
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment