package com.ruoyi.web.modules.epidemic;

import java.util.Calendar;
import java.util.Date;
import com.ruoyi.web.modules.epidemic.domain.BizEpidemicReport;

/**
 * 疫情上报测试样例数据。
 */
public final class EpidemicReportTestSamples
{
    private EpidemicReportTestSamples()
    {
    }

    public static BizEpidemicReport sampleOpen()
    {
        BizEpidemicReport r = new BizEpidemicReport();
        r.setReportDate(date(2026, Calendar.MAY, 10));
        r.setTransmissionRoute(2);
        r.setAffectedLocationTrack("某牧场A区");
        r.setEpidemicType(1);
        r.setEpidemicName("口蹄疫");
        r.setRiskLevel(1);
        r.setReleaseDate(null);
        return r;
    }

    public static BizEpidemicReport sampleRelieved()
    {
        BizEpidemicReport r = sampleOpen();
        r.setId(2L);
        r.setReleaseDate(date(2026, Calendar.JUNE, 1));
        return r;
    }

    public static Date date(int year, int month, int day)
    {
        Calendar cal = Calendar.getInstance();
        cal.set(year, month, day, 0, 0, 0);
        cal.set(Calendar.MILLISECOND, 0);
        return cal.getTime();
    }
}
