package com.goafanti.common.model;

import com.goafanti.common.enums.AdminFields;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;
import java.util.Date;

public class PublicReleaseLog implements Serializable {
    /**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.id
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private Integer id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.prid
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private Integer prid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.aid
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private String aid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.remarks
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private String remarks;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.status
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private Integer status;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.create_time
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private Date createTime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column public_release_log.photo_url
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private String photoUrl;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table public_release_log
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.id
	 * @return  the value of public_release_log.id
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.id
	 * @param id  the value for public_release_log.id
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.prid
	 * @return  the value of public_release_log.prid
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public Integer getPrid() {
		return prid;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.prid
	 * @param prid  the value for public_release_log.prid
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setPrid(Integer prid) {
		this.prid = prid;
	}
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.aid
	 * @return  the value of public_release_log.aid
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public String getAid() {
		return aid;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.aid
	 * @param aid  the value for public_release_log.aid
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setAid(String aid) {
		this.aid = aid == null ? null : aid.trim();
	}
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.remarks
	 * @return  the value of public_release_log.remarks
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public String getRemarks() {
		return remarks;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.remarks
	 * @param remarks  the value for public_release_log.remarks
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks == null ? null : remarks.trim();
	}
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.status
	 * @return  the value of public_release_log.status
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.status
	 * @param status  the value for public_release_log.status
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.create_time
	 * @return  the value of public_release_log.create_time
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.create_time
	 * @param createTime  the value for public_release_log.create_time
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column public_release_log.photo_url
	 * @return  the value of public_release_log.photo_url
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public String getPhotoUrl() {
		return photoUrl;
	}
	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column public_release_log.photo_url
	 * @param photoUrl  the value for public_release_log.photo_url
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl == null ? null : photoUrl.trim();
	}
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table public_release_log
	 * @mbg.generated  Thu Jun 24 11:35:04 CST 2021
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", prid=").append(prid);
		sb.append(", aid=").append(aid);
		sb.append(", remarks=").append(remarks);
		sb.append(", status=").append(status);
		sb.append(", createTime=").append(createTime);
		sb.append(", photoUrl=").append(photoUrl);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
	public PublicReleaseLog() {}
    public PublicReleaseLog(Integer id,String aid,Integer status, String remarks, Date date) {
		this.prid=id;
		this.aid=aid;
		this.status=status;
		this.remarks=remarks;
		this.createTime=date;
	}
//状态 0驳回 1发起 2同意 3打卡 4 撤销 5修改
	public enum states {
		bh(0,"驳回"),
		fq(1,"发起"),
		ty(2,"同意"),
		dk(3,"打卡"),
		cx(4,"撤销"),
		xg(5,"修改"),
		sc(6,"删除");
		Integer code;
		String desc;

	private states(Integer code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public Integer getCode() {
		return this.code;
	}

}
}
