1
zj
2024-06-13 8eea5be3b36875bd4ffe70e6c3a5bb07b1d829bf
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
package com.yami.trading.bean.chat.domain;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.trading.common.domain.UUIDEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.util.Date;
 
/**
 * im消息Entity
 * @author lucas
 * @version 2023-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_otc_onlinechat_message")
public class OtcOnlineChatMessage extends UUIDEntity implements Comparable<OtcOnlineChatMessage>{
 
    private static final long serialVersionUID = 1L;
 
    /**
     * PARTY_ID
     */
    private String partyId;
    /**
     * SEND_RECEIVE
     */
    private String sendReceive;
    /**
     * CONTENT_TYPE
     */
    private String contentType;
    /**
     * CONTENT
     */
    private String content;
    /**
     * CREATE_TIME
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * USERNAME
     */
    private String username;
    /**
     * IP
     */
    private String ip;
    /**
     * ORDER_NO
     */
    private String orderNo;
    /**
     * DELETE_STATUS
     */
    private Integer deleteStatus;
    /**
     * create_time_ts
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createTimeTs;
 
 
    /**
     * 逻辑删除标记
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;
 
    @TableField("IS_READ")
    private int isRead;
 
    @Override
    public int compareTo(OtcOnlineChatMessage onlineChatMessage) {
 
        if (this.createTime.after(onlineChatMessage.getCreateTime())) {
            return 1;
        } else if (this.createTime.before(onlineChatMessage.getCreateTime())) {
            return -1;
        }
        return 0;
    }
 
}