package org.dromara.system.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.system.domain.TblDzbcPathScheduling;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 定制班车-路线排班业务对象 tbl_dzbc_path_scheduling
 *
 * @author Lion Li
 * @date 2025-02-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TblDzbcPathScheduling.class, reverseConvertGenerate = false)
public class TblDzbcPathSchedulingBo extends BaseEntity {

    /**
     * 编号
     */
    //@NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 路线id
     */
    //@NotNull(message = "路线id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pathId;

    /**
     * 车辆id
     */
    //@NotNull(message = "车辆id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long carId;

    /**
     * 排班日期
     */
    //@NotNull(message = "排班日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date mdate;

    /**
     * 开始时间
     */
    //@NotBlank(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mtime;

    /**
     * 备注
     */
    //@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 开始站点列表
     */
    //@NotBlank(message = "开始站点列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startSites;

    /**
     * 结束站点列表
     */
    //@NotBlank(message = "结束站点列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endSites;

    /**
     * 扩展1
     */
    //@NotBlank(message = "扩展1不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ext1;

    /**
     * 扩展2
     */
    //@NotBlank(message = "扩展2不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ext2;

    /**
     * 是否自动排班
     */
    private Integer isauto;

    /**
     * 排班类型 2:固定路线(多站点) 1:普通路线
     */
    private Integer type;

    private Integer  pprice;


}
