lrj
1 天以前 9f8395fab13ca4b230a0f7d62636e209745c91d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.rongyichuang.carousel.entity;
 
import com.rongyichuang.common.entity.BaseEntity;
import jakarta.persistence.*;
import org.hibernate.annotations.Where;
 
/**
 * 轮播图(新闻与推广)实体类
 */
@Entity
@Table(name = "t_carousel")
@Where(clause = "state = 1")
public class Carousel extends BaseEntity {
 
    /**
     * 新闻标题
     */
    @Column(name = "title", nullable = false, length = 100)
    private String title;
 
    /**
     * 新闻内容
     */
    @Column(name = "description", length = 255)
    private String content;
 
    /**
     * 播放顺序
     */
    @Column(name = "sort_order")
    private Integer sortOrder;
 
    /**
     * 媒体数量(冗余字段,用于列表显示)
     */
    @Transient
    private Integer mediaCount;
 
    /**
     * 状态:1-正常,0-删除
     */
    @Column(name = "state", nullable = false)
    private Integer state = 1;
 
    // Getters and Setters
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public Integer getSortOrder() {
        return sortOrder;
    }
 
    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
 
    public Integer getMediaCount() {
        return mediaCount;
    }
 
    public void setMediaCount(Integer mediaCount) {
        this.mediaCount = mediaCount;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
}