package com.zhyc.module.biosafety.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhyc.module.enums.Gender;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 检疫记录对象 sw_quarantine_report
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("QuarantineReport")
public class QuarantineReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;


//  羊只耳号
    private String[] ids;

    /** 羊只 */
    private Long sheepId;

    @Excel(name = "羊只耳号")
    private String sheepNo;
    @Excel(name = "羊只类别")
    private String sheepType;
    @Excel(name = "羊只性别")
    private String genderName;
    private String gender;
    @Excel(name = "月龄")
    private Long monthAge;
    @Excel(name = "胎次")
    private Long parity;
    @Excel(name = "繁育状态")
    private String breed;


    /** 检疫日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检疫日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datetime;

    /** 检疫项目 */

    private Long quarItem;

    /** 检疫项目 */
    @Excel(name = "检疫项目")
    private String itemName;


    /** 样品类型 */
    private Long sampleType;

    /** 样品 */
    @Excel(name = "样品类型")
    private String sample;


    /** 采样员 */
    @Excel(name = "采样员")
    private String sampler;

    /** 检疫员 */
    @Excel(name = "检疫员")
    private String quarOfficer;

    /** 检疫结果 */
    @Excel(name = "检疫结果")
    private String result;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 备注*/
    @Excel(name = "备注")
    private String comment;

    public void setGender(String gender) {
        this.gender = gender;
        this.genderName = Gender.getDescByCode(Integer.valueOf(gender));
    }

    //  排序查询
    private String orderByColumn;
    private String isAsc;
}
