站内信 全部完成
parent
f8e6e35009
commit
1b76c95b7a
@ -0,0 +1,79 @@
|
||||
package cn.estsh.i3plus.pojo.platform.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description : 关系-用户消息
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2018-11-15 20:35
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="REF_USER_MESSAGE")
|
||||
@Api(value="关系-表达式与触发器",description = "关系-表达式与触发器")
|
||||
public class RefUserMessage extends BaseBean {
|
||||
|
||||
@Column(name="MESSAGE_ID")
|
||||
@ApiParam(value ="消息id" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long messageId;
|
||||
|
||||
public Long getMessageId(){
|
||||
if(messageId != null) {
|
||||
return messageId.longValue();
|
||||
}else{
|
||||
return messageId;
|
||||
}
|
||||
}
|
||||
|
||||
@Column(name="MESSAGE_TITLE_RDD")
|
||||
@ApiParam(value ="冗余消息标题")
|
||||
private String messageTitleRdd;
|
||||
|
||||
@Column(name="MESSAGE_TYPE_RDD")
|
||||
@ApiParam(value ="冗余消息类型")
|
||||
private Integer messageTypeRdd;
|
||||
|
||||
@Column(name="RECEIVER_ID")
|
||||
@ApiParam(value ="接收者ID" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long receiverId;
|
||||
|
||||
public Long getReceiverId(){
|
||||
if(messageId != null) {
|
||||
return messageId.longValue();
|
||||
}else{
|
||||
return messageId;
|
||||
}
|
||||
}
|
||||
|
||||
@Column(name="RECEIVER_NAME_RDD")
|
||||
@ApiParam(value ="接收者名称" ,example = "-1")
|
||||
private String receiverNameRdd;
|
||||
|
||||
@Column(name="RECEIVER_TIME")
|
||||
@ApiParam(value = "接收时间")
|
||||
private String receiverTime;
|
||||
|
||||
@Column(name="MESSAGE_STATUS")
|
||||
@ApiParam(value = "消息状态")
|
||||
private Integer messageStatus;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.platform.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.RefUserMessage;
|
||||
|
||||
/**
|
||||
* @Description : 关系-用户消息
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2018-11-15 20:45
|
||||
* @Modify:
|
||||
**/
|
||||
public interface RefUserMessageRepository extends BaseRepository<RefUserMessage,Long> {
|
||||
}
|
Loading…
Reference in New Issue