提交 a932839e 作者: 张小凤

IndustryTypeController(update)

上级 e40d7560
......@@ -65,7 +65,7 @@ public class IndustryTypeController {
@ApiOperation(value = "一级行业详情-全部")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = IndustryTypeDTO.class)})
@GetMapping("getIndustryTypeById")
public ResultBody<IndustryTypeDTO> getIndustryTypeById(@RequestParam Integer id) {
public IndustryTypeDTO getIndustryTypeById(@RequestParam Integer id) {
return industryTypeService.getIndustryTypeById(id);
}
......
......@@ -22,7 +22,7 @@ public interface IndustryTypeService {
ResultBody<IndustryTypeDTO> listInspectionsByIndustryTypeId(Integer id);
ResultBody<IndustryTypeDTO> getIndustryTypeById(Integer id);
IndustryTypeDTO getIndustryTypeById(Integer id);
List<IndustryTypeDTO> listIndustry();
}
......@@ -84,12 +84,9 @@ public class IndustryTypeServiceImpl implements IndustryTypeService {
}
@Override
public ResultBody<IndustryTypeDTO> getIndustryTypeById(Integer id) {
public IndustryTypeDTO getIndustryTypeById(Integer id) {
IndustryTypeDO industryTypeDO = industryTypeDao.getIndustryTypeById(id);
if (industryTypeDO == null) {
return ResultBody.success();
}
return ResultBody.success(industryTypeDO.buildIndustryTypeDTO());
return industryTypeDO.buildIndustryTypeDTO();
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论