package com.yuchen.saas.park.api.entity.smartDelivery;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.mp.base.BaseEntity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 智慧配送任务表
 * </p>
 *
 * @author 洪铭铭
 * @since 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("saas_smart_delivery_job")
@ApiModel(value="SaasSmartDeliveryJob对象", description="智慧配送任务表")
public class SaasSmartDeliveryJob extends BaseEntity {


    @ApiModelProperty(value = "配送订单ID")
    @TableField("delivery_order_id")
    private Long deliveryOrderId;

    @ApiModelProperty(value = "任务状态")
    @TableField("job_status")
    private String jobStatus;

    @ApiModelProperty(value = "配送货品")
    @TableField("goods")
    private String goods;

    @ApiModelProperty(value = "配送机器人ID")
    @TableField("delivery_robot_id")
    private Long deliveryRobotId;

    @ApiModelProperty(value = "发货地点ID")
    @TableField("start_location_id")
    private Long startLocationId;

    @ApiModelProperty(value = "配送地点ID")
    @TableField("destination_location_id")
    private Long destinationLocationId;

    @ApiModelProperty(value = "收货人")
    @TableField("recipient")
    private String recipient;

    @ApiModelProperty(value = "收货人手机号")
    @TableField("recipient_phone")
    private String recipientPhone;

    @ApiModelProperty(value = "取货码")
    @TableField("receive_code")
    private String receiveCode;

    @ApiModelProperty(value = "预计到达时间")
    @TableField("est_arrival_time")
    private LocalDateTime estArrivalTime;

    @ApiModelProperty(value = "开始配送时间")
    @TableField("start_delivery_time")
    private LocalDateTime startDeliveryTime;

    @ApiModelProperty(value = "完成时间")
    @TableField("complete_time")
    private LocalDateTime completeTime;

    @ApiModelProperty(value = "项目ID")
    @TableField("park_id")
    private Long parkId;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private Long createUser;

    @ApiModelProperty(value = "创建部门")
    @TableField("create_dept")
    private Long createDept;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user")
    private Long updateUser;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "是否已删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "备注信息")
    @TableField("remark")
    private String remark;


}
