package org.jeecg.modules.plan.entity;

import java.io.Serializable;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 计划临时表(用于计划预测)
 * @Author: jeecg-boot
 * @Date:   2025-06-10
 * @Version: V1.0
 */
@Data
@TableName("bu_plan_v")
@Accessors(chain = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_plan_v对象", description="计划临时表(用于计划预测)")
public class PlanV implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**createDept*/
    @TableField("create_dept")
    @ApiModelProperty(value = "createDept")
    private java.lang.String createDept;
	/**createBy*/
    @TableField("create_by")
    @ApiModelProperty(value = "createBy")
    private java.lang.String createBy;
	/**createTime*/
    @TableField("create_time")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private java.util.Date createTime;
	/**updateBy*/
    @TableField("update_by")
    @ApiModelProperty(value = "updateBy")
    private java.lang.String updateBy;
	/**updateTime*/
    @TableField("update_time")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "updateTime")
    private java.util.Date updateTime;
	/**日期*/
    @TableField("cal_day")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "日期")
    private LocalDate calDay;
	/**calWeek*/
    @TableField("cal_week")
    @ApiModelProperty(value = "calWeek")
    private java.lang.Integer calWeek;
	/**设备*/
    @TableField("device_id")
    @ApiModelProperty(value = "设备")
    @Dict(dictTable = "v_bu_device",dicText = "name",dicCode = "id")
    private java.lang.String deviceId;
	/**修程*/
    @TableField("rapair_range")
    @ApiModelProperty(value = "修程")
    @Dict(dicCode = "repair_range")
    private java.lang.Integer rapairRange;
	/**次序*/
    @TableField("order_num")
    @ApiModelProperty(value = "次序")
    private java.lang.Integer orderNum;

    public PlanV(String deviceId, Integer rapairRange, LocalDate calDay, Integer calWeek, Integer orderNum) {
        this.deviceId = deviceId;
        this.rapairRange = rapairRange;
        this.calDay = calDay;
        this.calWeek = calWeek;
        this.orderNum = orderNum;
    }
}
