package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.entity.MemberAgreementFile;
import com.ssm.manage.page.BasePage;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class MemberAgreementRequest extends BasePage {

    @Getter
    @Setter
    @Column(name = "agreement_name")
    private String agreementName;
    /**
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 门店ID
     */
    @Column(name = "store_id")
    private Long storeId;

    /**
     * 内容
     */
    @Column(name = "content")
    private String content;


     /**
     * 创建人名称
     */
    @Column(name = "add_name")
        private String addName;

    /**
     * 创建时间
     */
    @Column(name = "add_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addDate;

    /**
     * 修改人名称
     */
    @Column(name = "update_name")
    private String updateName;

    /**
     * 修改时间
     */
    @Column(name = "update_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

    /**
     * 生效人名称
     */
    @Column(name = "start_name")
    private String startName;

    /**
     * 生效时间
     */
    @Column(name = "start_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDate;

    /**
     * 失效人名称
     */
    @Column(name = "end_name")
    private String endName;

    /**
     * 失效时间
     */
    @Column(name = "end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;

    /**
     * 启用状态(0未启用,1启用中)
     */
    @Column(name = "start_state")
    private Integer startState;

    List<MemberAgreementFile> memberAgreementFiles;

    private String startTime;
    private String endTime;


}
