Commit e5774d2a authored by 黎博's avatar 黎博

config_path新增非空判断

parent 1bcdefb2
......@@ -7,6 +7,7 @@ import cn.qg.holmes.service.k8s.DockerProjectService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -116,7 +117,9 @@ public class DockerProjectController {
map.put("git_path", dockerProject.getGitPath());
map.put("git_path_group", dockerProject.getGitPathGroup());
map.put("host_name", dockerProject.getHostName());
map.put("config_path", dockerProject.getConfigPath());
if (!StringUtils.isEmpty(dockerProject.getConfigPath())) {
map.put("config_path", dockerProject.getConfigPath());
}
map.put("desc", dockerProject.getDesc());
map.put("auth", dockerProject.getOwner());
map.put("jar_path", dockerProject.getJarPath());
......
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