From 17964852a3fed10dec5eaf661631246a577b49a9 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Wed, 1 Mar 2023 14:20:48 +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 --- .../iasf/mapper/xml/SysContentMapper.xml | 37 ++++++++----------- .../service/impl/SysContentServiceImpl.java | 10 +++-- .../huoran/iasf/vo/req/PageContentReqVO.java | 7 ++-- 3 files changed, 26 insertions(+), 28 deletions(-) diff --git a/src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml b/src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml index 6aa1f2b..60b9b8a 100644 --- a/src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml +++ b/src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml @@ -37,8 +37,8 @@ - - AND c.is_disable = #{req.templateStatus} + + AND c.is_disable = #{req.isDisable} @@ -59,7 +59,6 @@ - @@ -162,24 +161,20 @@ diff --git a/src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java b/src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java index a12f431..3b12473 100644 --- a/src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java +++ b/src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java @@ -61,10 +61,12 @@ public class SysContentServiceImpl extends ServiceImpl pageList = baseMapper.articlePaginationList(page, reqVO); return R.success(pageList); } diff --git a/src/main/java/com/huoran/iasf/vo/req/PageContentReqVO.java b/src/main/java/com/huoran/iasf/vo/req/PageContentReqVO.java index 53df03f..0c9756e 100644 --- a/src/main/java/com/huoran/iasf/vo/req/PageContentReqVO.java +++ b/src/main/java/com/huoran/iasf/vo/req/PageContentReqVO.java @@ -55,8 +55,9 @@ public class PageContentReqVO extends PageReqVO { @ApiModelProperty(value = "发布时间排序(0默认倒序 1升序)") private Integer publicationTimeSort; - @ApiModelProperty(value = "模板状态(0禁用;1启用)") - private Integer templateStatus; - + /* @ApiModelProperty(value = "模板状态(0禁用;1启用)") + private Integer templateStatus;*/ + @ApiModelProperty(value = "是否禁用(0默认,0启用 1禁用)") + private Integer isDisable; } \ No newline at end of file