Compare commits

...

2 Commits

Author SHA1 Message Date
kuang.yife f7334eed46 公众号增加类型 2024-06-04 10:18:01 +08:00
kuang.yife 808ab3f3b4 公众号增加类型 2024-06-04 10:16:46 +08:00
5 changed files with 35 additions and 1 deletions

View File

@ -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: '简介',

View File

@ -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">

View File

@ -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">

View File

@ -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 = "简介")

View File

@ -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>