parent
2e387f1394
commit
0130d1715d
@ -1,130 +1,148 @@
|
|||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
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.annotation.Excel;
|
||||||
import com.ruoyi.common.core.domain.BaseEntity;
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 广告历史对象 b_poster_history
|
* 广告历史对象 b_poster_history
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2023-11-21
|
* @date 2023-11-21
|
||||||
*/
|
*/
|
||||||
public class BPosterHistory extends BaseEntity
|
public class BPosterHistory extends BaseEntity {
|
||||||
{
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** $column.columnComment */
|
/**
|
||||||
|
* $column.columnComment
|
||||||
|
*/
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/** 广告id */
|
/**
|
||||||
|
* 商户id
|
||||||
|
*/
|
||||||
|
private Long shanghuId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 广告id
|
||||||
|
*/
|
||||||
@Excel(name = "广告id")
|
@Excel(name = "广告id")
|
||||||
private Long posterId;
|
private Long posterId;
|
||||||
|
|
||||||
/** 广告名称 */
|
/**
|
||||||
|
* 广告名称
|
||||||
|
*/
|
||||||
@Excel(name = "广告名称")
|
@Excel(name = "广告名称")
|
||||||
private String posterName;
|
private String posterName;
|
||||||
|
|
||||||
/** 有效起始时间 */
|
/**
|
||||||
|
* 有效起始时间
|
||||||
|
*/
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@Excel(name = "有效起始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "有效起始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
private Date startTime;
|
private Date startTime;
|
||||||
|
|
||||||
/** 有效结束时间 */
|
/**
|
||||||
|
* 有效结束时间
|
||||||
|
*/
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@Excel(name = "有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
private Date endTime;
|
private Date endTime;
|
||||||
|
|
||||||
/** 视频路径 */
|
/**
|
||||||
|
* 视频路径
|
||||||
|
*/
|
||||||
@Excel(name = "视频路径")
|
@Excel(name = "视频路径")
|
||||||
private String videoPath;
|
private String videoPath;
|
||||||
|
|
||||||
/** 视频封面 */
|
/**
|
||||||
|
* 视频封面
|
||||||
|
*/
|
||||||
@Excel(name = "视频封面")
|
@Excel(name = "视频封面")
|
||||||
private String videoLogo;
|
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.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;
|
return id;
|
||||||
}
|
}
|
||||||
public void setPosterId(Long posterId)
|
|
||||||
{
|
public void setId(Long id) {
|
||||||
this.posterId = posterId;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getPosterId()
|
public Long getPosterId() {
|
||||||
{
|
|
||||||
return posterId;
|
return posterId;
|
||||||
}
|
}
|
||||||
public void setPosterName(String posterName)
|
|
||||||
{
|
public void setPosterId(Long posterId) {
|
||||||
this.posterName = posterName;
|
this.posterId = posterId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPosterName()
|
public String getPosterName() {
|
||||||
{
|
|
||||||
return posterName;
|
return posterName;
|
||||||
}
|
}
|
||||||
public void setStartTime(Date startTime)
|
|
||||||
{
|
public void setPosterName(String posterName) {
|
||||||
this.startTime = startTime;
|
this.posterName = posterName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getStartTime()
|
public Date getStartTime() {
|
||||||
{
|
|
||||||
return startTime;
|
return startTime;
|
||||||
}
|
}
|
||||||
public void setEndTime(Date endTime)
|
|
||||||
{
|
public void setStartTime(Date startTime) {
|
||||||
this.endTime = endTime;
|
this.startTime = startTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getEndTime()
|
public Date getEndTime() {
|
||||||
{
|
|
||||||
return endTime;
|
return endTime;
|
||||||
}
|
}
|
||||||
public void setVideoPath(String videoPath)
|
|
||||||
{
|
public void setEndTime(Date endTime) {
|
||||||
this.videoPath = videoPath;
|
this.endTime = endTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getVideoPath()
|
public String getVideoPath() {
|
||||||
{
|
|
||||||
return videoPath;
|
return videoPath;
|
||||||
}
|
}
|
||||||
public void setVideoLogo(String videoLogo)
|
|
||||||
{
|
public void setVideoPath(String videoPath) {
|
||||||
this.videoLogo = videoLogo;
|
this.videoPath = videoPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getVideoLogo()
|
public String getVideoLogo() {
|
||||||
{
|
|
||||||
return videoLogo;
|
return videoLogo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setVideoLogo(String videoLogo) {
|
||||||
|
this.videoLogo = videoLogo;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return "BPosterHistory{" + "id=" + id + ", shanghuId=" + shanghuId + ", posterId=" + posterId + ", posterName='" + posterName + '\'' + ", startTime=" + startTime + ", endTime=" + endTime + ", videoPath='" + videoPath + '\'' + ", videoLogo='" + videoLogo + '\'' + '}';
|
||||||
.append("id", getId())
|
}
|
||||||
.append("posterId", getPosterId())
|
|
||||||
.append("posterName", getPosterName())
|
public Long getShanghuId() {
|
||||||
.append("startTime", getStartTime())
|
return shanghuId;
|
||||||
.append("endTime", getEndTime())
|
}
|
||||||
.append("videoPath", getVideoPath())
|
|
||||||
.append("videoLogo", getVideoLogo())
|
public void setShanghuId(Long shanghuId) {
|
||||||
.append("createBy", getCreateBy())
|
this.shanghuId = shanghuId;
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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