diff --git a/src/main/java/com/huoran/iasf/controller/SysColumnController.java b/src/main/java/com/huoran/iasf/controller/SysColumnController.java index 6d79e38..2f3b692 100644 --- a/src/main/java/com/huoran/iasf/controller/SysColumnController.java +++ b/src/main/java/com/huoran/iasf/controller/SysColumnController.java @@ -3,6 +3,8 @@ package com.huoran.iasf.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.huoran.iasf.common.aop.annotation.NoRepeatSubmit; +import com.huoran.iasf.common.exception.NotFoundException; +import com.huoran.iasf.common.exception.code.BaseResponseCode; import com.huoran.iasf.common.utils.Constant; import com.huoran.iasf.entity.*; import com.huoran.iasf.service.*; @@ -75,6 +77,9 @@ public class SysColumnController { @ApiOperation(value = "查询详情", response = SysColumn.class) public R findById(@RequestParam("id") @ApiParam(value = "序号") Integer id) { SysColumn sysColumn = service.getById(id); + /*if (sysColumn == null) { + throw new NotFoundException(BaseResponseCode.DATA_DOES_NOT_EXIST); + }*/ SysTemplateStyle sysTemplateStyle = styleService.getById(sysColumn.getListStyleId()); if (sysTemplateStyle.getPath() != null) { diff --git a/src/main/java/com/huoran/iasf/controller/SysContentController.java b/src/main/java/com/huoran/iasf/controller/SysContentController.java index 8fab6b9..d080158 100644 --- a/src/main/java/com/huoran/iasf/controller/SysContentController.java +++ b/src/main/java/com/huoran/iasf/controller/SysContentController.java @@ -75,14 +75,14 @@ public class SysContentController { SysContent sysContent = service.getById(id); - if (sysContent == null) { + /* if (sysContent == null) { throw new NotFoundException(BaseResponseCode.DATA_DOES_NOT_EXIST); - } + }*/ SysColumn sysColumn = columnService.getById(sysContent.getColumnId()); - if (sysColumn == null) { + /*if (sysColumn == null) { throw new NotFoundException(BaseResponseCode.DATA_DOES_NOT_EXIST); - } + }*/ if (sysColumn.getColumnName() != null) { sysContent.setColumnName(sysColumn.getColumnName()); }