提交代码

master
rong.liu 2 years ago
parent a7b3289f21
commit 2dcb6c6591
  1. 2
      src/main/java/com/huoran/iasf/controller/SysTemplateController.java
  2. 3
      src/main/java/com/huoran/iasf/entity/SysTemplate.java
  3. 3
      src/main/java/com/huoran/iasf/entity/SysTemplateStyle.java
  4. 2
      src/main/java/com/huoran/iasf/mapper/xml/SysTemplateStyleConfigurationMapper.xml

@ -49,7 +49,7 @@ public class SysTemplateController {
@PostMapping("/listOfColumnTemplates")
@ApiOperation(value = "获取文章模板列表、详情样式", response = SysTemplate.class)
public R listOfColumnTemplates() {
List<SysTemplate> list = templateService.list(new QueryWrapper<SysTemplate>().eq("type", 1));
List<SysTemplate> list = templateService.list(new QueryWrapper<SysTemplate>().eq("type", 1).eq("is_hide",0));
return R.success(list);
}

@ -36,5 +36,6 @@ public class SysTemplate implements Serializable {
@ApiModelProperty(value = "类型(0栏目 1文章)")
private Integer type;
@ApiModelProperty(value = "是否隐藏(0默认不隐藏 1隐藏)")
private Integer isHide;
}

@ -43,4 +43,7 @@ public class SysTemplateStyle implements Serializable {
@ApiModelProperty(value = "是否为长页")
private Integer isLongPage;
@ApiModelProperty(value = "是否隐藏(0默认不隐藏 1隐藏)")
private Integer isHide;
}

@ -8,6 +8,6 @@
inner join sys_template t on c.template_id = t.id
inner join sys_template_style s on s.id = c.style_id
WHERE c.template_id = #{templateId}
and s.type = #{type}
and s.type = #{type} and s.is_hide = 0
</select>
</mapper>

Loading…
Cancel
Save