Merge remote-tracking branch 'origin/master'

master
cheney 2 years ago
commit ed579b4bbd
  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. 5
      src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml
  5. 2
      src/main/java/com/huoran/iasf/mapper/xml/SysTemplateStyleConfigurationMapper.xml

@ -49,7 +49,7 @@ public class SysTemplateController {
@PostMapping("/listOfColumnTemplates") @PostMapping("/listOfColumnTemplates")
@ApiOperation(value = "获取文章模板列表、详情样式", response = SysTemplate.class) @ApiOperation(value = "获取文章模板列表、详情样式", response = SysTemplate.class)
public R listOfColumnTemplates() { 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); return R.success(list);
} }

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

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

@ -51,7 +51,8 @@
( SELECT GROUP_CONCAT( label_name ) FROM sys_content_label l WHERE deleted = 1 AND FIND_IN_SET( l.id, s.lable_id ( SELECT GROUP_CONCAT( label_name ) FROM sys_content_label l WHERE deleted = 1 AND FIND_IN_SET( l.id, s.lable_id
) ) AS labelName, ) ) AS labelName,
( SELECT c.classification_name FROM sys_content_classification c WHERE deleted = 1 AND s.classification_id = ( SELECT c.classification_name FROM sys_content_classification c WHERE deleted = 1 AND s.classification_id =
c.id ) AS classificationName c.id ) AS classificationName ,
(SELECT c.column_name from sys_column c WHERE c.id = s.column_id) as columnName
FROM FROM
sys_content s sys_content s
WHERE WHERE
@ -59,7 +60,7 @@
AND is_release = 1 AND is_release = 1
) t ) t
WHERE WHERE
t.site_id = 1 t.site_id = #{req.siteId}
<if test="req.labelName != null and req.labelName.size() > 0 "> <if test="req.labelName != null and req.labelName.size() > 0 ">

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

Loading…
Cancel
Save