|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 系统消息信息表 | 
|---|
|  |  |  | * @author 江蹄蹄 | 
|---|
|  |  |  | * @date 2024/01/15 11:15 | 
|---|
|  |  |  | * @date 2024/01/16 10:03 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @ApiModel("系统消息信息表") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "创建时间") | 
|---|
|  |  |  | @ExcelColumn(name="创建时间") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Date createDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "更新人编码", example = "1") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "更新时间") | 
|---|
|  |  |  | @ExcelColumn(name="更新时间") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Date editDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "是否删除0否 1是", example = "1") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @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") | 
|---|
|  |  |  | 
|---|
|  |  |  | @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") | 
|---|
|  |  |  | 
|---|
|  |  |  | @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 ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|