chen_xi
2022-09-21 3cf43da7391aa26f689e3d73d6231bb05929b62b
screen-manage/src/main/java/com/moral/api/controller/VersionController.java
@@ -114,9 +114,19 @@
            return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(),
                    ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg());
        VersionDTO dto = versionService.queryVersionById(form);
        VersionQueryDTO dto = versionService.queryVersionById(form);
        VersionVO vo = VersionVO.convert(dto);
        VersionQueryVO vo = VersionQueryVO.convert(dto);
        return new ResultMessage(dto.getCode(), dto.getMsg(), vo);
    }
    @GetMapping("queryByOrgId")
    public ResultMessage queryByOrganizationId(Integer organizationId){
        VersionQueryDTO dto = versionService.queryByOrganizationId(organizationId);
        VersionQueryVO vo = VersionQueryVO.convert(dto);
        return new ResultMessage(dto.getCode(), dto.getMsg(), vo);
    }