|
|
@ -13,6 +13,7 @@ import org.hibernate.annotations.DynamicInsert;
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
import javax.persistence.*;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -50,10 +51,11 @@ public class SysMessage extends BaseBean {
|
|
|
|
if (this.messageType == null) {
|
|
|
|
if (this.messageType == null) {
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return this.messageType.intValue();
|
|
|
|
return this.messageType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnnoOutputColumn(refClass = ImppEnumUtil.MESSAGE_TYPE_CONTENT.class)
|
|
|
|
@Column(name = "MESSAGE_TYPE_CONTENT")
|
|
|
|
@Column(name = "MESSAGE_TYPE_CONTENT")
|
|
|
|
@ApiParam(value = "消息内容类型(枚举:ImppEnumUtil.MESSAGE_TYPE_CONTENT)", example = "-1")
|
|
|
|
@ApiParam(value = "消息内容类型(枚举:ImppEnumUtil.MESSAGE_TYPE_CONTENT)", example = "-1")
|
|
|
|
private Integer messageContentType;
|
|
|
|
private Integer messageContentType;
|
|
|
@ -154,4 +156,16 @@ public class SysMessage extends BaseBean {
|
|
|
|
@ApiParam(value = "附件集合")
|
|
|
|
@ApiParam(value = "附件集合")
|
|
|
|
private List<SysFileAttach> sysFileAttachList;
|
|
|
|
private List<SysFileAttach> sysFileAttachList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transient
|
|
|
|
|
|
|
|
@ApiParam(value = "附件id集合")
|
|
|
|
|
|
|
|
private List<Long> fileAttachIdList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addFileAttachId(Long attachId){
|
|
|
|
|
|
|
|
if(fileAttachIdList == null){
|
|
|
|
|
|
|
|
fileAttachIdList = new ArrayList<>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fileAttachIdList.add(attachId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|