app增加图片/视频素材
This commit is contained in:
parent
afc4a7ba19
commit
9d6356a286
|
|
@ -24,6 +24,18 @@
|
|||
<input name="wxAppId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告图片素材地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="imgUrl" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告视频素材地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="videoUrl" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
|
|
@ -84,6 +84,14 @@
|
|||
field: 'wxAppId',
|
||||
title: 'app跳转的目标微信公众号'
|
||||
},
|
||||
{
|
||||
field: 'imgUrl',
|
||||
title: '广告图片素材地址'
|
||||
},
|
||||
{
|
||||
field: 'videoUrl',
|
||||
title: '广告视频素材地址'
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '状态'
|
||||
|
|
|
|||
|
|
@ -25,6 +25,18 @@
|
|||
<input name="wxAppId" th:field="*{wxAppId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告图片素材地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="imgUrl" th:field="*{imgUrl}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告视频素材地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="videoUrl" th:field="*{videoUrl}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
package com.ruoyi.system.domain;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
|
|
@ -36,4 +34,10 @@ public class CompanyApp extends BaseEntity
|
|||
@Excel(name = "状态 0.启用 1.禁用")
|
||||
private String status;
|
||||
|
||||
@Excel(name = "广告图片素材地址")
|
||||
private String imgUrl;
|
||||
|
||||
@Excel(name = "广告视频素材地址")
|
||||
private String videoUrl;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
<result property="companyId" column="company_id" />
|
||||
<result property="appName" column="app_name" />
|
||||
<result property="wxAppId" column="wx_app_id" />
|
||||
<result property="imgUrl" column="img_url" />
|
||||
<result property="videoUrl" column="video_url" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
|
|
@ -18,7 +20,7 @@
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectCompanyAppVo">
|
||||
select id, company_id, app_name, wx_app_id, status, create_time, create_by, update_by, update_time, remark from company_app
|
||||
select id, company_id, app_name, wx_app_id, img_url, video_url, status, create_time, create_by, update_by, update_time, remark from company_app
|
||||
</sql>
|
||||
|
||||
<select id="selectCompanyAppList" parameterType="CompanyApp" resultMap="CompanyAppResult">
|
||||
|
|
@ -42,6 +44,8 @@
|
|||
<if test="companyId != null">company_id,</if>
|
||||
<if test="appName != null">app_name,</if>
|
||||
<if test="wxAppId != null">wx_app_id,</if>
|
||||
<if test="imgUrl != null">img_url,</if>
|
||||
<if test="videoUrl != null">video_url,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
|
|
@ -53,6 +57,8 @@
|
|||
<if test="companyId != null">#{companyId},</if>
|
||||
<if test="appName != null">#{appName},</if>
|
||||
<if test="wxAppId != null">#{wxAppId},</if>
|
||||
<if test="imgUrl != null">#{imgUrl},</if>
|
||||
<if test="videoUrl != null">#{videoUrl},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
|
|
@ -68,6 +74,8 @@
|
|||
<if test="companyId != null">company_id = #{companyId},</if>
|
||||
<if test="appName != null">app_name = #{appName},</if>
|
||||
<if test="wxAppId != null">wx_app_id = #{wxAppId},</if>
|
||||
<if test="imgUrl != null">img_url = #{imgUrl},</if>
|
||||
<if test="videoUrl != null">video_url = #{videoUrl},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue