package thyyxxk.webserver.entity.adverseevent;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class ReportIndex {
    private Integer pid;
    private String category;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date occurDatetime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date submitDatetime;
    private String userName;
    private String deptCode;
    private String department;
    private Integer handled;
    private String deptDealerName;
    private Integer printed;

    public Integer getHandled() {
        return null == handled ? 0 : handled;
    }

    public Integer getPrinted() {
        return null == printed ? 0 : printed;
    }
}
