From dbc5e46f7ee7eb71f12be668672899a1c19f04e1 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Fri, 25 Nov 2022 10:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E6=8D=AE=E9=9C=80=E6=B1=82=E6=9B=B4?= =?UTF-8?q?=E6=94=B9+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/SysTemplateStyleConfiguration.java | 37 +++++++++++++++++++ .../SysTemplateStyleConfigurationMapper.java | 20 ++++++++++ .../SysTemplateStyleConfigurationMapper.xml | 13 +++++++ .../SysTemplateStyleConfigurationService.java | 19 ++++++++++ ...TemplateStyleConfigurationServiceImpl.java | 29 +++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 src/main/java/com/huoran/iasf/entity/SysTemplateStyleConfiguration.java create mode 100644 src/main/java/com/huoran/iasf/mapper/SysTemplateStyleConfigurationMapper.java create mode 100644 src/main/java/com/huoran/iasf/mapper/xml/SysTemplateStyleConfigurationMapper.xml create mode 100644 src/main/java/com/huoran/iasf/service/SysTemplateStyleConfigurationService.java create mode 100644 src/main/java/com/huoran/iasf/service/impl/SysTemplateStyleConfigurationServiceImpl.java diff --git a/src/main/java/com/huoran/iasf/entity/SysTemplateStyleConfiguration.java b/src/main/java/com/huoran/iasf/entity/SysTemplateStyleConfiguration.java new file mode 100644 index 0000000..b3ddd9c --- /dev/null +++ b/src/main/java/com/huoran/iasf/entity/SysTemplateStyleConfiguration.java @@ -0,0 +1,37 @@ +package com.huoran.iasf.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 栏目样式、列表样式、详情样式配置表 + *

+ * + * @author cheney + * @since 2022-11-24 + */ +@Data + @EqualsAndHashCode(callSuper = false) + @ApiModel(value="SysTemplateStyleConfiguration对象", description="栏目样式、列表样式、详情样式配置表") +public class SysTemplateStyleConfiguration implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @ApiModelProperty(value = "栏目id") + private Integer templateId; + + @ApiModelProperty(value = "样式id") + private Integer styleId; + + +} diff --git a/src/main/java/com/huoran/iasf/mapper/SysTemplateStyleConfigurationMapper.java b/src/main/java/com/huoran/iasf/mapper/SysTemplateStyleConfigurationMapper.java new file mode 100644 index 0000000..aa50c3b --- /dev/null +++ b/src/main/java/com/huoran/iasf/mapper/SysTemplateStyleConfigurationMapper.java @@ -0,0 +1,20 @@ +package com.huoran.iasf.mapper; + +import com.huoran.iasf.entity.SysTemplateStyle; +import com.huoran.iasf.entity.SysTemplateStyleConfiguration; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * 栏目样式、列表样式、详情样式配置表 Mapper 接口 + *

+ * + * @author cheney + * @since 2022-11-24 + */ +public interface SysTemplateStyleConfigurationMapper extends BaseMapper { + List getTheStyleUnderTheTemplate(@Param("templateId") Integer templateId,@Param("type") Integer type); +} diff --git a/src/main/java/com/huoran/iasf/mapper/xml/SysTemplateStyleConfigurationMapper.xml b/src/main/java/com/huoran/iasf/mapper/xml/SysTemplateStyleConfigurationMapper.xml new file mode 100644 index 0000000..d1e46f7 --- /dev/null +++ b/src/main/java/com/huoran/iasf/mapper/xml/SysTemplateStyleConfigurationMapper.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/src/main/java/com/huoran/iasf/service/SysTemplateStyleConfigurationService.java b/src/main/java/com/huoran/iasf/service/SysTemplateStyleConfigurationService.java new file mode 100644 index 0000000..eb3d991 --- /dev/null +++ b/src/main/java/com/huoran/iasf/service/SysTemplateStyleConfigurationService.java @@ -0,0 +1,19 @@ +package com.huoran.iasf.service; + +import com.huoran.iasf.entity.SysTemplateStyle; +import com.huoran.iasf.entity.SysTemplateStyleConfiguration; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 栏目样式、列表样式、详情样式配置表 服务类 + *

+ * + * @author cheney + * @since 2022-11-24 + */ +public interface SysTemplateStyleConfigurationService extends IService { + List getsTheStyleUnderTheTemplate(Integer templateId,Integer type); +} diff --git a/src/main/java/com/huoran/iasf/service/impl/SysTemplateStyleConfigurationServiceImpl.java b/src/main/java/com/huoran/iasf/service/impl/SysTemplateStyleConfigurationServiceImpl.java new file mode 100644 index 0000000..d5e2de2 --- /dev/null +++ b/src/main/java/com/huoran/iasf/service/impl/SysTemplateStyleConfigurationServiceImpl.java @@ -0,0 +1,29 @@ +package com.huoran.iasf.service.impl; + +import com.huoran.iasf.entity.SysTemplateStyle; +import com.huoran.iasf.entity.SysTemplateStyleConfiguration; +import com.huoran.iasf.mapper.SysTemplateStyleConfigurationMapper; +import com.huoran.iasf.service.SysTemplateStyleConfigurationService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 栏目样式、列表样式、详情样式配置表 服务实现类 + *

+ * + * @author cheney + * @since 2022-11-24 + */ +@Service +public class SysTemplateStyleConfigurationServiceImpl extends ServiceImpl implements SysTemplateStyleConfigurationService { + + + + @Override + public List getsTheStyleUnderTheTemplate(Integer templateId, Integer type) { + return baseMapper.getTheStyleUnderTheTemplate(templateId, type); + } +}