Browse Source

语音广播 模板新增字段

develop
王兴琳 6 months ago
parent
commit
dfb2448661
  1. 48
      zc-business/src/main/java/com/zc/business/domain/DcVoiceBroadcast.java
  2. 14
      zc-business/src/main/resources/mapper/business/DcVoiceBroadcastMapper.xml

48
zc-business/src/main/java/com/zc/business/domain/DcVoiceBroadcast.java

@ -2,6 +2,9 @@ package com.zc.business.domain;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
@ -13,7 +16,10 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2024-04-19 * @date 2024-04-19
*/ */
@Data
@ApiModel("语音广播预发布对象") @ApiModel("语音广播预发布对象")
@NoArgsConstructor
@AllArgsConstructor
public class DcVoiceBroadcast extends BaseEntity public class DcVoiceBroadcast extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -29,44 +35,8 @@ public class DcVoiceBroadcast extends BaseEntity
/** 内容 */ /** 内容 */
@Excel(name = "内容") @Excel(name = "内容")
private String content; private String content;
private String repeatTimes;
private String priority;
private String outVol;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCategory(String category)
{
this.category = category;
}
public String getCategory()
{
return category;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("category", getCategory())
.append("content", getContent())
.append("remark", getRemark())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
} }

14
zc-business/src/main/resources/mapper/business/DcVoiceBroadcastMapper.xml

@ -11,10 +11,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="repeatTimes" column="repeat_times" />
<result property="outVol" column="outVol" />
<result property="priority" column="priority" />
</resultMap> </resultMap>
<sql id="selectDcVoiceBroadcastVo"> <sql id="selectDcVoiceBroadcastVo">
select id, category, content, remark, create_time, update_time from dc_voice_broadcast select id, category, content, remark, create_time, update_time,priority,outVol,repeat_times from dc_voice_broadcast
</sql> </sql>
<select id="selectDcVoiceBroadcastList" parameterType="com.zc.business.domain.DcVoiceBroadcast" resultMap="DcVoiceBroadcastResult"> <select id="selectDcVoiceBroadcastList" parameterType="com.zc.business.domain.DcVoiceBroadcast" resultMap="DcVoiceBroadcastResult">
@ -43,6 +46,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="priority != null">priority,</if>
<if test="outVol != null">outVol,</if>
<if test="repeatTimes != null">repeat_times,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="category != null">#{category},</if> <if test="category != null">#{category},</if>
@ -50,6 +56,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="priority != null">#{priority},</if>
<if test="outVol != null">#{outVol},</if>
<if test="repeatTimes != null">#{repeatTimes},</if>
</trim> </trim>
</insert> </insert>
@ -61,6 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="repeatTimes != null">repeat_times = #{repeatTimes},</if>
<if test="outVol != null">outVol = #{outVol},</if>
<if test="priority != null">priority = #{priority},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>

Loading…
Cancel
Save