修复虚拟机系统图片显示Bug
This commit is contained in:
@@ -90,7 +90,7 @@ public class HostController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/hostList")
|
@GetMapping("/hostList")
|
||||||
public ResponseResult vmListWithCondition(
|
public ResponseResult hostListWithCondition(
|
||||||
@RequestParam(value = "q", required = false) String nameLike,
|
@RequestParam(value = "q", required = false) String nameLike,
|
||||||
@RequestParam(value = "selectedStatus", required = false) List<Integer> selectedStatus,
|
@RequestParam(value = "selectedStatus", required = false) List<Integer> selectedStatus,
|
||||||
@RequestParam("perPage") Integer perPage,
|
@RequestParam("perPage") Integer perPage,
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ public class HostMachineServiceImpl extends ServiceImpl<HostMachineMapper, HostM
|
|||||||
public ResponseResult<HostVo> getHostById(Integer id) {
|
public ResponseResult<HostVo> getHostById(Integer id) {
|
||||||
HostMachine hostMachine = getById(id);
|
HostMachine hostMachine = getById(id);
|
||||||
HostVo hostVo = BeanCopyUtils.copyBean(hostMachine, HostVo.class);
|
HostVo hostVo = BeanCopyUtils.copyBean(hostMachine, HostVo.class);
|
||||||
Os os = osMapper.selectById(hostMachine.getOsId());
|
Os os = osService.getById(hostMachine.getOsId());
|
||||||
hostVo.setOsKernel(os.getKernel());
|
hostVo.setOsKernel(os.getKernel());
|
||||||
|
|
||||||
if (Objects.nonNull(hostMachine.getSshId())) {
|
if (Objects.nonNull(hostMachine.getSshId())) {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ spring:
|
|||||||
password: 200712
|
password: 200712
|
||||||
|
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
|
#打印SQL日志 建议生产环境关掉 否则日志爆炸
|
||||||
configuration:
|
configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
global-config:
|
global-config:
|
||||||
|
|||||||
Reference in New Issue
Block a user