package com.bohuikeji.delivery.backstage.entity;

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

/**
 * <p>
 * 加盟商对派送员结算派
 * </p>
 *
 * @author 10552
 * @since 2019-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TFranCourier对象", description="加盟商对派送员结算派")
@TableName("t_fran_courier")
public class TFranCourier extends EntityBase<TFranCourier> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "加盟商对派送员结算id")
    @TableId(value = "fran_courier_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer franCourierId;

    @ApiModelProperty(value = "结算开始时间")
    @TableField("order_json")
    @TableShowField("结算开始时间")
    @TableNewField
    private String orderJson;

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

    @ApiModelProperty(value = "结算单量")
    @TableField("sett_order_num")
    @TableShowField("结算单量")
    @TableNewField
    private Integer settOrderNum;

    @ApiModelProperty(value = "订单支付总额")
    @TableField("order_pay_amount")
    @TableShowField("订单支付总额")
    @TableNewField
    private String orderPayAmount;

    @ApiModelProperty(value = "结算方式")
    @TableField("sett_method")
    @TableShowField("结算方式")
    @TableNewField
    private String settMethod;

    @ApiModelProperty(value = "本期结算额")
    @TableField("current_pay_amount")
    @TableShowField("本期结算额")
    @TableNewField
    private String currentPayAmount;

    @ApiModelProperty(value = "本期盈利额")
    @TableField("current_surplus_amount")
    @TableShowField("本期盈利额")
    @TableNewField
    private String currentSurplusAmount;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    @TableShowField("备注")
    @TableNewField
    private String remarks;

    @ApiModelProperty(value = "结算发起人")
    @TableField("sett_initiator")
    @TableQueryField
    @TableShowField(value = "结算发起人")
    @TableNewField
    private String settInitiator;

    @ApiModelProperty(value = "结算审核人")
    @TableField("sett_auditor")
    @TableQueryField
    @TableShowField(value = "结算审核人")
    @TableNewField
    private String settAuditor;

    @ApiModelProperty(value = "结算发起时间")
    @TableField("sett_launch_time")
    @TableShowField("结算发起时间")
    @TableNewField
    private LocalDateTime settLaunchTime;

    @ApiModelProperty(value = "结算审核时间")
    @TableField("sett_examine_time")
    @TableShowField("结算审核时间")
    @TableNewField
    private LocalDateTime settExamineTime;

    @ApiModelProperty(value = "结算到账时间")
    @TableField("sett_arrival_time")
    @TableShowField("结算到账时间")
    @TableNewField
    private LocalDateTime settArrivalTime;

    @ApiModelProperty(value = "流水单号")
    @TableField("flow_num")
    @TableShowField("流水单号")
    @TableNewField
    @TableQueryField
    private String flowNum;

    @ApiModelProperty(value = "结算附件")
    @TableField("sett_enclosure")
    @TableShowField(value = "结算附件",type = ColumnTypeEnum.FILE)
    @TableNewField
    private String settEnclosure;

    @ApiModelProperty(value = "结算状态")
    @TableField("sett_status")
    @TableShowField("结算状态")
    @TableNewField
    @TableQueryField
    private String settStatus;


}
