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.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 com.bohuikeji.frame.module.admin.entity.web.block.SelectBlock;
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="TCompanyThird对象", description="总公司对第三方结算单")
@TableName("t_company_third")
public class TCompanyThird extends EntityBase<TCompanyThird> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "总公司对第三方结算id")
    @TableId(value = "company_third_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer companyThirdId;

    @ApiModelProperty(value = "结算开始时间")
    @TableField("sett_start_time")
    @TableShowField("结算开始时间")
    @TableNewField
    private LocalDateTime settStartTime;

    @ApiModelProperty(value = "结算结束时间")
    @TableField("sett_end_time")
    @TableShowField("结算结束时间")
    @TableNewField
    private LocalDateTime settEndTime;

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

    @ApiModelProperty(value = "结算加盟商数量")
    @TableField("sett_fran_num")
    @TableShowField("结算加盟商数量")
    @TableNewField
    private Integer settFranNum;

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

    @ApiModelProperty(value = "第三方结算盈余总额(扣除手续费)")
    @TableField("third_surplus_amount")
    @TableShowField("第三方结算盈余总额(扣除手续费)")
    @TableNewField
    private String thirdSurplusAmount;

    @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("current_fran_amount")
    @TableShowField("本期加盟商结余额")
    @TableNewField
    private String currentFranAmount;

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

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

    @ApiModelProperty(value = "结算审核人")
    @TableField("sett_auditor")
    @TableQueryField
    @TableShowField(value = "结算审核人")
    @TableNewField(block = SelectBlock.class)
    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("sett_status")
    @TableQueryField
    @TableShowField(value = "结算状态")
    @TableNewField
    private String settStatus;


}
