文章更改禁启用字段

master
rong.liu 2 years ago
parent 181e7fd5f1
commit 73e9b218c2
  1. 4
      src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml
  2. 2
      src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java

@ -37,8 +37,8 @@
</if>
<if test="req.templateStatus ==1">
AND c.template_status = #{req.templateStatus}
<if test="req.templateStatus ==0">
AND c.is_disable = #{req.templateStatus}
</if>

@ -62,7 +62,7 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont
reqVO.setPublicationTimeSort(0);
}
if (reqVO.getTemplateStatus() == null) {
//模板状态(0禁用;1启用)
//是否禁用(0默认,0启用 1禁用) todo 此处应该为对is_disable进行设置的
reqVO.setTemplateStatus(0);
}
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO);

Loading…
Cancel
Save