package com.bohuikeji.delivery.backstage.entity;

import com.alibaba.fastjson.JSONObject;
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.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="TCallBack对象", description="回调信息表")
@TableName("t_call_back")
public class TCallBack extends EntityBase<TCallBack> {

    @ApiModelProperty(value="回调id")
    @TableId(value = "call_back_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false,required = false)
    private Integer callBackId;


    @ApiModelProperty(value = "回调环境")
    @TableField("call_back_name")
    @TableQueryField(show = false)
    @TableShowField(value = "回调环境")
    @TableNewField
    private String callBackName;

    @ApiModelProperty(value = "系统号")
    @TableField("order_num")
    @TableQueryField(show = false)
    @TableShowField(value = "系统号")
    @TableNewField
    private String orderNum;

    @ApiModelProperty(value = "顺丰订单号")
    @TableField("sf_num")
    @TableQueryField(show = false)
    @TableShowField(value = "顺丰订单号")
    @TableNewField
    private String sfNum;


    @ApiModelProperty(value = "回调信息")
    @TableField("call_back_info")
    @TableShowField(value = "回调信息")
    @TableNewField()
    @TableQueryField(like = false)
    private JSONObject callBackInfo;

    @ApiModelProperty(value = "回调时间")
    @TableField("call_back_time")
    @TableShowField(value = "回调时间",show = false)
    private LocalDateTime callBackTime=LocalDateTime.now();


}
