package com.bohuikeji.delivery.backstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableQueryField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import com.bohuikeji.frame.module.admin.entity.web.block.DateBlock;
import com.bohuikeji.frame.module.admin.entity.web.block.FileBlock;
import com.bohuikeji.frame.module.admin.enums.ColumnTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 派送员信息表
 * </p>
 *
 * @author 10552
 * @since 2019-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TCourierCheck对象", description="派送员信息表")
@TableName("t_courier_check")
public class TCourierCheck extends EntityBase<TCourierCheck> {

    @ApiModelProperty(value="派送员id(新增时请留空或null)")
    @TableId(value = "check_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer checkId;

    @ApiModelProperty(value = "派送员Id")
    @TableField("courier_id")
    @TableQueryField(show = false)
    @TableShowField(value = "派送员Id")
    private String courierId;

    @ApiModelProperty(value = "配送员姓名")
    @TableField("courier_name")
    @TableQueryField(show = false)
    @TableShowField(value = "配送员姓名")
    @TableNewField
    private String courierName;

    @ApiModelProperty(value = "抽查图片")
    @TableField("courier_check_url")
    @TableShowField(value = "抽查图片",type = ColumnTypeEnum.IMAGE)
    @TableNewField(block = FileBlock.class)
    private String courierCheckUrl;

    @ApiModelProperty(value = "性别")
    @TableField("courier_gender")
    @TableShowField("性别")
    @TableNewField(options = {"男","女"})
    @TableQueryField(like = false)
    private String courierGender;

    @ApiModelProperty(value = "职位类型(全职、兼职、营销)")
    @TableField("courier_type")
    @TableQueryField
    @TableShowField(value = "职位类型")
    @TableNewField(options = {"全职","兼职","营销"})
    private String courierType="兼职";

    @ApiModelProperty(value = "抽查时间")
    @TableField("courier_create_time")
    @TableShowField("抽查时间")
    @TableNewField(show = false)
    @TableQueryField(like = false,sort = 0)
    private LocalDateTime courierCreateTime=LocalDateTime.now();

    @ApiModelProperty(value = "上传时间")
    @TableField("courier_update_time")
    @TableShowField(value = "上传时间",show = false)
    @TableNewField(block = DateBlock.class)
    private LocalDateTime courierUpdateTime;

    @ApiModelProperty(value = "完成时间")
    @TableField("courier_end_time")
    @TableShowField(value = "完成时间",show = false)
    @TableNewField(block = DateBlock.class)
    private LocalDateTime courierEndTime;

    @ApiModelProperty(value = "时间审核状态")
    @TableField("check_state")
    @TableQueryField(show = false)
    @TableShowField(value = "时间审核状态")
    @TableNewField
    private String checkState;

    @ApiModelProperty(value = "图片审核状态")
    @TableField("picture_state")
    @TableQueryField(show = false)
    @TableShowField(value = "图片审核状态")
    @TableNewField
    private String pictureState;

    @ApiModelProperty(value = "审核用户")
    @TableField("check_user")
    @TableQueryField(show = false)
    @TableShowField(value = "审核用户")
    @TableNewField
    private String checkUser;


}
