|
@@ -6,8 +6,6 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
-import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
-
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -16,7 +14,7 @@ import java.io.Serializable;
|
|
* </p>
|
|
* </p>
|
|
*
|
|
*
|
|
* @author 吴涛涛
|
|
* @author 吴涛涛
|
|
- * @since 2019-08-09
|
|
|
|
|
|
+ * @since 2019-08-10
|
|
*/
|
|
*/
|
|
@TableName("tb_news_notice")
|
|
@TableName("tb_news_notice")
|
|
public class NewsNotice extends Model<NewsNotice> {
|
|
public class NewsNotice extends Model<NewsNotice> {
|
|
@@ -42,10 +40,10 @@ public class NewsNotice extends Model<NewsNotice> {
|
|
private String projectName;
|
|
private String projectName;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 模具id(针对消息提醒类型1,2)
|
|
|
|
|
|
+ * 引用的外部表id(模具,文档,设备)
|
|
*/
|
|
*/
|
|
- @TableField("mould_id")
|
|
|
|
- private Integer mouldId;
|
|
|
|
|
|
+ @TableField("ref_id")
|
|
|
|
+ private Integer refId;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 消息提醒类型0-审批,1-保养,2-告警
|
|
* 消息提醒类型0-审批,1-保养,2-告警
|
|
@@ -59,41 +57,10 @@ public class NewsNotice extends Model<NewsNotice> {
|
|
@TableField("content")
|
|
@TableField("content")
|
|
private String content;
|
|
private String content;
|
|
|
|
|
|
- /**
|
|
|
|
- * 模具编号(针对消息提醒类型1)
|
|
|
|
- */
|
|
|
|
- @TableField("mould_no")
|
|
|
|
- private String mouldNo;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 文件id
|
|
|
|
- */
|
|
|
|
- @TableField("file_id")
|
|
|
|
- private Integer fileId;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 文件所属类型
|
|
|
|
- */
|
|
|
|
- @TableField("file_blong_type")
|
|
|
|
- private Integer fileBlongType;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 设备id(针对消息提醒类型2)
|
|
|
|
- */
|
|
|
|
- @TableField("equipment_id")
|
|
|
|
- private Integer equipmentId;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 设备编号(针对消息提醒类型2)
|
|
|
|
- */
|
|
|
|
- @TableField("equipment_no")
|
|
|
|
- private String equipmentNo;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 时间
|
|
* 时间
|
|
*/
|
|
*/
|
|
@TableField("indate")
|
|
@TableField("indate")
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
private LocalDateTime indate;
|
|
private LocalDateTime indate;
|
|
|
|
|
|
|
|
|
|
@@ -121,12 +88,12 @@ public class NewsNotice extends Model<NewsNotice> {
|
|
this.projectName = projectName;
|
|
this.projectName = projectName;
|
|
}
|
|
}
|
|
|
|
|
|
- public Integer getMouldId() {
|
|
|
|
- return mouldId;
|
|
|
|
|
|
+ public Integer getRefId() {
|
|
|
|
+ return refId;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setMouldId(Integer mouldId) {
|
|
|
|
- this.mouldId = mouldId;
|
|
|
|
|
|
+ public void setRefId(Integer refId) {
|
|
|
|
+ this.refId = refId;
|
|
}
|
|
}
|
|
|
|
|
|
public Integer getNoticeType() {
|
|
public Integer getNoticeType() {
|
|
@@ -145,46 +112,6 @@ public class NewsNotice extends Model<NewsNotice> {
|
|
this.content = content;
|
|
this.content = content;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getMouldNo() {
|
|
|
|
- return mouldNo;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setMouldNo(String mouldNo) {
|
|
|
|
- this.mouldNo = mouldNo;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getFileId() {
|
|
|
|
- return fileId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setFileId(Integer fileId) {
|
|
|
|
- this.fileId = fileId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getFileBlongType() {
|
|
|
|
- return fileBlongType;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setFileBlongType(Integer fileBlongType) {
|
|
|
|
- this.fileBlongType = fileBlongType;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getEquipmentId() {
|
|
|
|
- return equipmentId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setEquipmentId(Integer equipmentId) {
|
|
|
|
- this.equipmentId = equipmentId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getEquipmentNo() {
|
|
|
|
- return equipmentNo;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setEquipmentNo(String equipmentNo) {
|
|
|
|
- this.equipmentNo = equipmentNo;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public LocalDateTime getIndate() {
|
|
public LocalDateTime getIndate() {
|
|
return indate;
|
|
return indate;
|
|
}
|
|
}
|
|
@@ -204,14 +131,9 @@ public class NewsNotice extends Model<NewsNotice> {
|
|
"id=" + id +
|
|
"id=" + id +
|
|
", projectId=" + projectId +
|
|
", projectId=" + projectId +
|
|
", projectName=" + projectName +
|
|
", projectName=" + projectName +
|
|
- ", mouldId=" + mouldId +
|
|
|
|
|
|
+ ", refId=" + refId +
|
|
", noticeType=" + noticeType +
|
|
", noticeType=" + noticeType +
|
|
", content=" + content +
|
|
", content=" + content +
|
|
- ", mouldNo=" + mouldNo +
|
|
|
|
- ", fileId=" + fileId +
|
|
|
|
- ", fileBlongType=" + fileBlongType +
|
|
|
|
- ", equipmentId=" + equipmentId +
|
|
|
|
- ", equipmentNo=" + equipmentNo +
|
|
|
|
", indate=" + indate +
|
|
", indate=" + indate +
|
|
"}";
|
|
"}";
|
|
}
|
|
}
|