From 1f9bbe96bc6cfa8fc6b8161537838ed4a5513b66 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Mon, 27 Mar 2023 10:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/huoran/iasf/controller/SysColumnController.java | 5 +++++ .../com/huoran/iasf/controller/SysContentController.java | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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()); }