From 13ff112e45a64378cdc91aa2f05916721945f08a Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 01 二月 2024 19:22:58 +0800
Subject: [PATCH] 111

---
 server/service/src/main/java/com/doumee/dao/business/model/Notices.java |   51 +++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 47 insertions(+), 4 deletions(-)

diff --git a/server/service/src/main/java/com/doumee/dao/business/model/Notices.java b/server/service/src/main/java/com/doumee/dao/business/model/Notices.java
index c9dc43f..f19bab1 100644
--- a/server/service/src/main/java/com/doumee/dao/business/model/Notices.java
+++ b/server/service/src/main/java/com/doumee/dao/business/model/Notices.java
@@ -1,6 +1,9 @@
 package com.doumee.dao.business.model;
 
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.doumee.core.annotation.excel.ExcelColumn;
+import com.doumee.core.model.LoginUserInfo;
+import com.doumee.core.utils.Constants;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import com.baomidou.mybatisplus.annotation.IdType;
@@ -69,15 +72,20 @@
 
     @ApiModelProperty(value = "鍏宠仈瀵硅薄绫诲瀷")
     @ExcelColumn(name="鍏宠仈瀵硅薄绫诲瀷")
-    private String objType;
+    private Integer objType;
 
     @ApiModelProperty(value = "鍏宠仈瀵硅薄鍚嶇О")
     @ExcelColumn(name="鍏宠仈瀵硅薄鍚嶇О")
     private String objName;
 
-    @ApiModelProperty(value = "绫诲瀷 0骞冲彴娑堟伅 1浼佷笟娑堟伅")
-    @ExcelColumn(name="绫诲瀷 0骞冲彴娑堟伅 1浼佷笟娑堟伅")
-    private String type;
+    @ApiModelProperty(value = "绫诲瀷")
+    @ExcelColumn(name="绫诲瀷")
+    private Integer type;
+
+    @ApiModelProperty(value = "绫诲瀷鎻忚堪")
+    @TableField(exist = false)
+    private String typeDetail;
+
 
     @ApiModelProperty(value = "鍏宠仈鍙傛暟1")
     @ExcelColumn(name="鍏宠仈鍙傛暟1")
@@ -107,6 +115,10 @@
     @ExcelColumn(name="鍏宠仈浼佷笟缂栫爜(鍏宠仈company锛�")
     private Integer companyId;
 
+    @ApiModelProperty(value = "鍏宠仈浼佷笟鍚嶇О")
+    @TableField(exist = false)
+    private String companyName;
+
     @ApiModelProperty(value = "骞冲彴 0骞冲彴娑堟伅 1浼佷笟娑堟伅", example = "1")
     @ExcelColumn(name="骞冲彴 0骞冲彴娑堟伅 1浼佷笟娑堟伅")
     private Integer palt;
@@ -119,4 +131,35 @@
     @ExcelColumn(name="鏄惁宸茶 0鏈 1宸茶")
     private Integer readed;
 
+    public Notices(){
+
+    }
+
+    /**
+     *
+     * @param noticeType 娑堟伅绫诲瀷
+     * @param palt 鏁版嵁骞冲彴 0骞冲彴娑堟伅 1浼佷笟娑堟伅
+     * @param objId 鍏宠仈瀵硅薄涓婚敭
+     * @param content   鏂规鍚嶇О/鍗曚綅鍚嶇О/寮�绁ㄩ噾棰�/鎶ユ浜�
+     * @param companyId 浼佷笟涓婚敭
+     */
+    public Notices(Constants.NoticeObjectType noticeObjectType,Integer palt, Integer objId, String content, Integer companyId,Constants.NoticeType noticeType){
+        this.createDate = new Date();
+        this.creator = userId ;
+        this.isdeleted = Constants.ZERO ;
+        this.title = noticeObjectType.getName();
+        this.objType = noticeObjectType.getKey();
+        this.objId = objId;
+        this.info = noticeObjectType.getInfo();
+        this.content = content;
+        this.status = Constants.ZERO;
+        this.readed = Constants.ZERO;
+        this.type = noticeType.getStatus();
+        this.companyId = companyId;
+        this.palt = palt ;
+    }
+
+
+
+
 }

--
Gitblit v1.9.3