| @@ -1,6 +1,12 @@ | |||||
| ALTER TABLE `mallink`.`wx_topic` | ALTER TABLE `mallink`.`wx_topic` | ||||
| ADD COLUMN `topic_type` smallint(3) NOT NULL DEFAULT 1 COMMENT 'EnumWxTopicType' AFTER `parent_tenant_id`; | ADD COLUMN `topic_type` smallint(3) NOT NULL DEFAULT 1 COMMENT 'EnumWxTopicType' AFTER `parent_tenant_id`; | ||||
| ALTER TABLE `mallink`.`wx_topic` | |||||
| ADD COLUMN `is_only_ad` tinyint(1) NOT NULL DEFAULT 0 COMMENT '首页是否只展示封面图' AFTER `status`; | |||||
| ALTER TABLE `mallink`.`wx_appinfo` | ALTER TABLE `mallink`.`wx_appinfo` | ||||
| ADD COLUMN `mould_type` smallint(2) NOT NULL DEFAULT 0 COMMENT '模板类型' AFTER `type`; | |||||
| ADD COLUMN `mould_type` smallint(2) NOT NULL DEFAULT 0 COMMENT '风格模板类型' AFTER `type`; | |||||
| @@ -43,6 +43,8 @@ public class WxTopic extends TenantEntity { | |||||
| private Date endTime; | private Date endTime; | ||||
| @io.swagger.annotations.ApiModelProperty(value="状态1生效2失效3作废",name="status") | @io.swagger.annotations.ApiModelProperty(value="状态1生效2失效3作废",name="status") | ||||
| private Integer status; | private Integer status; | ||||
| @io.swagger.annotations.ApiModelProperty(value="首页是否只展示封面图",name="isOnlyAd") | |||||
| private Integer isOnlyAd; | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createtime") | @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createtime") | ||||
| private Date createtime; | private Date createtime; | ||||
| @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updatetime") | @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updatetime") | ||||
| @@ -16,6 +16,8 @@ | |||||
| <result column="begin_time" property="beginTime"/> | <result column="begin_time" property="beginTime"/> | ||||
| <result column="end_time" property="endTime"/> | <result column="end_time" property="endTime"/> | ||||
| <result column="status" property="status"/> | <result column="status" property="status"/> | ||||
| <result column="is_only_ad" property="isOnlyAd"/> | |||||
| <result column="createtime" property="createtime"/> | <result column="createtime" property="createtime"/> | ||||
| <result column="updatetime" property="updatetime"/> | <result column="updatetime" property="updatetime"/> | ||||
| <result column="bg_color" property="bgColor"/> | <result column="bg_color" property="bgColor"/> | ||||
| @@ -23,7 +25,7 @@ | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`tenant_id`,`parent_tenant_id`,`topic_type`,`name`,`title`,`content`,`cover`,`cover_picture`,`detail_picture`,`advert`,`begin_time`,`end_time`,`createtime`,`updatetime`,`bg_color` | |||||
| `id`,`tenant_id`,`parent_tenant_id`,`topic_type`,`name`,`title`,`content`,`cover`,`cover_picture`,`detail_picture`,`advert`,`begin_time`,`end_time`,`is_only_ad`,`createtime`,`updatetime`,`bg_color` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||