diff --git a/zc-business/src/main/java/com/zc/business/domain/DcVoiceBroadcast.java b/zc-business/src/main/java/com/zc/business/domain/DcVoiceBroadcast.java index 51cfc018..33e6ab75 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcVoiceBroadcast.java +++ b/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.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; @@ -13,7 +16,10 @@ import com.ruoyi.common.core.domain.BaseEntity; * @author ruoyi * @date 2024-04-19 */ +@Data @ApiModel("语音广播预发布对象") +@NoArgsConstructor +@AllArgsConstructor public class DcVoiceBroadcast extends BaseEntity { private static final long serialVersionUID = 1L; @@ -29,44 +35,8 @@ public class DcVoiceBroadcast extends BaseEntity /** 内容 */ @Excel(name = "内容") 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(); - } } diff --git a/zc-business/src/main/resources/mapper/business/DcVoiceBroadcastMapper.xml b/zc-business/src/main/resources/mapper/business/DcVoiceBroadcastMapper.xml index 45b14aa3..2551fa05 100644 --- a/zc-business/src/main/resources/mapper/business/DcVoiceBroadcastMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcVoiceBroadcastMapper.xml @@ -11,10 +11,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + - 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