package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.entity.ProjectProgressFile;
import com.ssm.manage.page.BasePage;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

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

@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class ProjectProgressRequest extends BasePage {
    /**
     * 主键ID
     */
    @Id
    private Long id;

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

    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;

    /**
     * 会员ID
     */
    @Column(name = "member_id")
    private Long memberId;

    /**
     * 会员名称
     */
    @Column(name = "member_name")
    private String memberName;

    /**
     * 会员身份证号
     */
    @Column(name = "member_identity")
    private String memberIdentity;

    /**
     * 会员手机号
     */
    @Column(name = "member_phone")
    private String memberPhone;

    /**
     * 项目编码
     */
    @Column(name = "project_id")
    private Long projectId;

    /**
     * 项目名称
     */
    @Column(name = "project_name")
    private String projectName;

    /**
     * 单据主键ID
     */
    @Column(name = "doc_id")
    private Long docId;

    /**
     * 单据号
     */
    @Column(name = "doc_num")
    private String docNum;

    /**
     * 单据时间
     */
    @Column(name = "doc_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date docDate;

    /**
     * 单据服务人名称
     */
    @Column(name = "staff_names")
    private String staffNames;

    /**
     * 护理前症状
     */
    private String symptomatic;

    /**
     * 护理后效果
     */
    @Column(name = "nursing_effect")
    private String nursingEffect;

    /**
     * 反馈意见
     */
    @Column(name = "feed_back")
    private String feedBack;

    /**
     * 单据服务人ID
     */
    @Column(name = "staff_ids")
    private String staffIds;


    // 文件
    private List<MultipartFile> files;

    private List<ProjectProgressFile> uploadFiles;
    //0:护理前 1:护理后
    private int type;

    /**
     * 0:会员反馈/1:员工反馈
     */
    private Integer source;

    private String staffId;

}
