k94314517
2025-05-19 cdd6551b190b981b807a3b95e9635c559ccc769d
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,8 +115,12 @@
    @ExcelColumn(name="关联企业编码(关联company)")
    private Integer companyId;
    @ApiModelProperty(value = "平台 0平台消息 1企业消息", example = "1")
    @ExcelColumn(name="平台 0平台消息 1企业消息")
    @ApiModelProperty(value = "关联企业名称")
    @TableField(exist = false)
    private String companyName;
    @ApiModelProperty(value = "平台 0平台消息 1企业消息 2商户消息", example = "1")
    @ExcelColumn(name="平台 0平台消息 1企业消息 2商户消息 ")
    private Integer palt;
    @ApiModelProperty(value = "状态 0正常 1已关闭 ", example = "1")
@@ -118,5 +130,39 @@
    @ApiModelProperty(value = "是否已读 0未读 1已读", example = "1")
    @ExcelColumn(name="是否已读 0未读 1已读")
    private Integer readed;
    @ApiModelProperty(value = "查詢类型 0投保 1发票 2理赔", example = "1")
    @TableField(exist = false)
    private Integer queryType;
    public Notices(){
    }
    /**
     *
     * @param noticeType 消息类型
     * @param palt 数据平台 0平台消息 1企业消息 2商户消息
     * @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 ;
    }
}