zhaowenxuan
2025-02-06 06c12d2b42c343798d9476be66031b48967df639
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package com.ltkj.mall.domain;
 
import java.util.Date;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ltkj.common.annotation.Excel;
import com.ltkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
 
/**
 * 备忘录对象 stj_memo
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-11-15
 */
@Data
public class StjMemo extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
 
    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;
 
    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String userName;
 
    /**
     * 备忘日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备忘日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mDate;
 
    /**
     * 日期类型(0全天/1指定时间)
     */
    @Excel(name = "日期类型(0全天/1指定时间)")
    private String dateType;
 
    /**
     * 时间点
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间点", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date mTime;
 
    /**
     * 备忘状态(0未完成/1已完成)
     */
    @Excel(name = "备忘状态(0未完成/1已完成)")
    private String mFlag;
 
    /**
     * 是否重复提醒(Y/N)
     */
    @Excel(name = "是否重复提醒(Y/N)")
    private String isRepeat;
 
    /**
     * 提醒间隔(15/20/30/60m)
     */
    @Excel(name = "提醒间隔(15/20/30/60m)")
    private Long repeatTime;
 
    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;
 
    /**
     * 事件
     */
    @Excel(name = "事件")
    private String event;
 
    /**
     * 紧急状态(0低/1中/2高)
     */
    @Excel(name = "紧急状态(0低/1中/2高)")
    private String stateLevel;
 
    @TableField(exist = false)
    private String format;
 
 
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("mDate", getMDate())
                .append("dateType", getDateType())
                .append("mTime", getMTime())
                .append("mFlag", getMFlag())
                .append("isRepeat", getIsRepeat())
                .append("repeatTime", getRepeatTime())
                .append("title", getTitle())
                .append("event", getEvent())
                .append("stateLevel", getStateLevel())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .append("createId", getCreateId())
                .append("updateId", getUpdateId())
                .toString();
    }
}