package com.hotent.project.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hotent.base.entity.BaseModel;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.sql.Blob;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 通知公告表
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-09-27
 */
@Data
@ApiModel(value="CostNotice对象", description="通知公告表")
public class CostNotice extends BaseModel<CostNotice> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "公告ID")
    @TableId(value = "notice_id", type = IdType.ASSIGN_ID)
    @JsonProperty("noticeId")
    private String noticeId;

    @ApiModelProperty(value = "公告标题")
    @TableField("notice_title")
    @JsonProperty("noticeTitle")
    private String noticeTitle;

    @ApiModelProperty(value = "公告类型（1通知 2公告）")
    @TableField("notice_type")
    @JsonProperty("noticeType")
    private String noticeType;

    @ApiModelProperty(value = "公告内容")
    @TableField("notice_content")
    @JsonProperty("noticeContent")
    private String noticeContent;

    @ApiModelProperty(value = "公告状态（0正常 1关闭）")
    @TableField("status")
    @JsonProperty("status")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonProperty("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @JsonProperty("createBy")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateBy")
    private String updateBy;
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    @JsonProperty("remark")
    private String remark;

    @ApiModelProperty(value = "逻辑删除：0正常 1删除")
    @TableField("is_deleted")
    @JsonProperty("isDeleted")
    private String isDeleted;

    @ApiModelProperty(value = "项目id")
    @TableField("project_id")
    @JsonProperty("projectId")
    private String projectId;

    @JsonProperty("projectName")
    @TableField(exist = false)
    private String projectName;

    @TableField("enterprise_id")
    @JsonProperty("enterpriseId")
    private String enterpriseId;

    @JsonProperty("enterpriseName")
    @TableField(exist = false)
    private String enterpriseName;


    @ApiModelProperty(value = "消息来源")
    @TableField("notice_source")
    @JsonProperty("noticeSource")
    private String noticeSource;

    @ApiModelProperty(value = "发送对象")
    @TableField("send_target")
    @JsonProperty("sendTarget")
    private String sendTarget;

    private String taskId;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    // Getter & Setter
    public String getNoticeSource() { return noticeSource; }
    public void setNoticeSource(String noticeSource) { this.noticeSource = noticeSource; }

    public String getSendTarget() { return sendTarget; }
    public void setSendTarget(String sendTarget) { this.sendTarget = sendTarget; }
    public String getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(String enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(String noticeId) {
        this.noticeId = noticeId;
    }
    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }
    public String getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(String noticeType) {
        this.noticeType = noticeType;
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }


    @Override
    protected Serializable pkVal() {
        return this.noticeId;
    }

    @Override
    public String toString() {
        return "CostNotice{" +
            "noticeId=" + noticeId +
            ", noticeTitle=" + noticeTitle +
            ", noticeType=" + noticeType +
            ", noticeContent=" + noticeContent +
            ", status=" + status +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", remark=" + remark +
            ", isDeleted=" + isDeleted +
            ", projectId=" + projectId +
        "}";
    }
}
