parent
2e387f1394
commit
0130d1715d
@ -1,130 +1,148 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
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;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 广告历史对象 b_poster_history
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public class BPosterHistory extends BaseEntity
|
||||
{
|
||||
public class BPosterHistory extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/** 广告id */
|
||||
/**
|
||||
* 商户id
|
||||
*/
|
||||
private Long shanghuId;
|
||||
|
||||
/**
|
||||
* 广告id
|
||||
*/
|
||||
@Excel(name = "广告id")
|
||||
private Long posterId;
|
||||
|
||||
/** 广告名称 */
|
||||
/**
|
||||
* 广告名称
|
||||
*/
|
||||
@Excel(name = "广告名称")
|
||||
private String posterName;
|
||||
|
||||
/** 有效起始时间 */
|
||||
/**
|
||||
* 有效起始时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效起始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 有效结束时间 */
|
||||
/**
|
||||
* 有效结束时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date endTime;
|
||||
|
||||
/** 视频路径 */
|
||||
/**
|
||||
* 视频路径
|
||||
*/
|
||||
@Excel(name = "视频路径")
|
||||
private String videoPath;
|
||||
|
||||
/** 视频封面 */
|
||||
/**
|
||||
* 视频封面
|
||||
*/
|
||||
@Excel(name = "视频封面")
|
||||
private String videoLogo;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
public BPosterHistory() {
|
||||
}
|
||||
|
||||
public BPosterHistory(Long id, Long shanghuId, Long posterId, String posterName, Date startTime, Date endTime, String videoPath, String videoLogo) {
|
||||
this.id = id;
|
||||
this.shanghuId = shanghuId;
|
||||
this.posterId = posterId;
|
||||
this.posterName = posterName;
|
||||
this.startTime = startTime;
|
||||
this.endTime = endTime;
|
||||
this.videoPath = videoPath;
|
||||
this.videoLogo = videoLogo;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setPosterId(Long posterId)
|
||||
{
|
||||
this.posterId = posterId;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getPosterId()
|
||||
{
|
||||
public Long getPosterId() {
|
||||
return posterId;
|
||||
}
|
||||
public void setPosterName(String posterName)
|
||||
{
|
||||
this.posterName = posterName;
|
||||
|
||||
public void setPosterId(Long posterId) {
|
||||
this.posterId = posterId;
|
||||
}
|
||||
|
||||
public String getPosterName()
|
||||
{
|
||||
public String getPosterName() {
|
||||
return posterName;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
|
||||
public void setPosterName(String posterName) {
|
||||
this.posterName = posterName;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
public Date getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
public void setEndTime(Date endTime)
|
||||
{
|
||||
this.endTime = endTime;
|
||||
|
||||
public void setStartTime(Date startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getEndTime()
|
||||
{
|
||||
public Date getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
public void setVideoPath(String videoPath)
|
||||
{
|
||||
this.videoPath = videoPath;
|
||||
|
||||
public void setEndTime(Date endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getVideoPath()
|
||||
{
|
||||
public String getVideoPath() {
|
||||
return videoPath;
|
||||
}
|
||||
public void setVideoLogo(String videoLogo)
|
||||
{
|
||||
this.videoLogo = videoLogo;
|
||||
|
||||
public void setVideoPath(String videoPath) {
|
||||
this.videoPath = videoPath;
|
||||
}
|
||||
|
||||
public String getVideoLogo()
|
||||
{
|
||||
public String getVideoLogo() {
|
||||
return videoLogo;
|
||||
}
|
||||
|
||||
public void setVideoLogo(String videoLogo) {
|
||||
this.videoLogo = videoLogo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("posterId", getPosterId())
|
||||
.append("posterName", getPosterName())
|
||||
.append("startTime", getStartTime())
|
||||
.append("endTime", getEndTime())
|
||||
.append("videoPath", getVideoPath())
|
||||
.append("videoLogo", getVideoLogo())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
return "BPosterHistory{" + "id=" + id + ", shanghuId=" + shanghuId + ", posterId=" + posterId + ", posterName='" + posterName + '\'' + ", startTime=" + startTime + ", endTime=" + endTime + ", videoPath='" + videoPath + '\'' + ", videoLogo='" + videoLogo + '\'' + '}';
|
||||
}
|
||||
|
||||
public Long getShanghuId() {
|
||||
return shanghuId;
|
||||
}
|
||||
|
||||
public void setShanghuId(Long shanghuId) {
|
||||
this.shanghuId = shanghuId;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain.dto.request;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 广告批量分配商户请求类
|
||||
*
|
||||
* @author wu
|
||||
* @since 2023/11/24 9:36
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("广告批量分配商户请求类")
|
||||
public class PosterRequest implements Serializable {
|
||||
private static final long serialVersionUID = -2550281756138991362L;
|
||||
|
||||
/**
|
||||
* 广告id
|
||||
*/
|
||||
@ApiModelProperty(value = "广告id")
|
||||
@NotNull(message = "广告不能为空")
|
||||
private Long posterId;
|
||||
|
||||
/**
|
||||
* 商户id集合
|
||||
*/
|
||||
@ApiModelProperty(value = "商户id集合")
|
||||
private List<Long> shanghuIds;
|
||||
|
||||
/**
|
||||
* 商户城市
|
||||
*/
|
||||
@ApiModelProperty(value = "商户城市")
|
||||
private String shanghuCity;
|
||||
|
||||
/**
|
||||
* 商户名称
|
||||
*/
|
||||
@ApiModelProperty(value = "商户名称")
|
||||
private String shanghuName;
|
||||
}
|
Loading…
Reference in new issue