公众号增加类型
This commit is contained in:
parent
0e5854ff26
commit
808ab3f3b4
|
|
@ -46,6 +46,7 @@
|
|||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('playlet:account:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('playlet:account:remove')}]];
|
||||
var typeDict = [[${@dict.getType('sys_public_type')}]];
|
||||
var prefix = ctx + "system/playlet/account";
|
||||
|
||||
$(function() {
|
||||
|
|
@ -68,6 +69,14 @@
|
|||
field: 'name',
|
||||
title: '公众号名称'
|
||||
},
|
||||
{
|
||||
field: 'publicType',
|
||||
title: '类型',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(typeDict, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'introduction',
|
||||
title: '简介',
|
||||
|
|
|
|||
|
|
@ -13,6 +13,14 @@
|
|||
<input name="name" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="publicType" class="form-control m-b" th:with="type=${@dict.getType('sys_public_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">简介:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
|
|
@ -13,6 +13,14 @@
|
|||
<input name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">消息类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="publicType" class="form-control m-b" th:with="type=${@dict.getType('sys_public_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{publicType}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">简介:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@ public class PlayletPublicAccount extends BaseEntity
|
|||
@ApiModelProperty(value = "公众号名称")
|
||||
private String name;
|
||||
|
||||
@Excel(name = "类型")
|
||||
@ApiModelProperty(value = "类型 例如: 01.男频, 02.女频")
|
||||
private String publicType;
|
||||
|
||||
/** 简介 */
|
||||
@Excel(name = "简介")
|
||||
@ApiModelProperty(value = "简介")
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<resultMap type="PlayletPublicAccount" id="PlayletPublicAccountResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="publicType" column="public_type" />
|
||||
<result property="introduction" column="introduction" />
|
||||
<result property="authorAlias" column="author_alias" />
|
||||
<result property="logoUrl" column="logo_url" />
|
||||
|
|
@ -21,7 +22,7 @@
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletPublicAccountVo">
|
||||
select id, name, introduction, author_alias, logo_url, address, original_content_count, followers_count, create_by, create_time, update_by, update_time, remark from playlet_public_account
|
||||
select id, name, public_type, introduction, author_alias, logo_url, address, original_content_count, followers_count, create_by, create_time, update_by, update_time, remark from playlet_public_account
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletPublicAccountList" parameterType="PlayletPublicAccount" resultMap="PlayletPublicAccountResult">
|
||||
|
|
@ -31,6 +32,7 @@
|
|||
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
|
||||
<if test="authorAlias != null and authorAlias != ''"> and author_alias = #{authorAlias}</if>
|
||||
<if test="logoUrl != null and logoUrl != ''"> and logo_url = #{logoUrl}</if>
|
||||
<if test="publicType != null and publicType != ''"> and public_type = #{publicType}</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="originalContentCount != null "> and original_content_count = #{originalContentCount}</if>
|
||||
<if test="followersCount != null "> and followers_count = #{followersCount}</if>
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
insert into playlet_public_account
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="publicType != null">public_type,</if>
|
||||
<if test="introduction != null">introduction,</if>
|
||||
<if test="authorAlias != null">author_alias,</if>
|
||||
<if test="logoUrl != null">logo_url,</if>
|
||||
|
|
@ -60,6 +63,7 @@
|
|||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="publicType != null">#{publicType},</if>
|
||||
<if test="introduction != null">#{introduction},</if>
|
||||
<if test="authorAlias != null">#{authorAlias},</if>
|
||||
<if test="logoUrl != null">#{logoUrl},</if>
|
||||
|
|
@ -78,6 +82,7 @@
|
|||
update playlet_public_account
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="publicType != null">public_type = #{publicType},</if>
|
||||
<if test="introduction != null">introduction = #{introduction},</if>
|
||||
<if test="authorAlias != null">author_alias = #{authorAlias},</if>
|
||||
<if test="logoUrl != null">logo_url = #{logoUrl},</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue