修复虚拟机系统图片显示Bug

This commit is contained in:
2023-03-07 21:03:43 +08:00
parent d26d79d7fd
commit cea2a3f57a
3 changed files with 3 additions and 2 deletions
@@ -90,7 +90,7 @@ public class HostController {
}
@GetMapping("/hostList")
public ResponseResult vmListWithCondition(
public ResponseResult hostListWithCondition(
@RequestParam(value = "q", required = false) String nameLike,
@RequestParam(value = "selectedStatus", required = false) List<Integer> selectedStatus,
@RequestParam("perPage") Integer perPage,
@@ -232,7 +232,7 @@ public class HostMachineServiceImpl extends ServiceImpl<HostMachineMapper, HostM
public ResponseResult<HostVo> getHostById(Integer id) {
HostMachine hostMachine = getById(id);
HostVo hostVo = BeanCopyUtils.copyBean(hostMachine, HostVo.class);
Os os = osMapper.selectById(hostMachine.getOsId());
Os os = osService.getById(hostMachine.getOsId());
hostVo.setOsKernel(os.getKernel());
if (Objects.nonNull(hostMachine.getSshId())) {
+1
View File
@@ -23,6 +23,7 @@ spring:
password: 200712
mybatis-plus:
#打印SQL日志 建议生产环境关掉 否则日志爆炸
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config: