package com.pj.project.tb_business_car;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.Date;
import java.util.List;

import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.spring.SpringUtil;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.pj.current.config.PartConfig;
import lombok.EqualsAndHashCode;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

/**
 * Model: tb_business_car --
 *
 * @author qzy
 */
@Data
@Accessors(chain = true)
@TableName(TbBusinessCar.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class TbBusinessCar extends Model<TbBusinessCar> implements Serializable {

    // ---------- 模块常量 ----------
    /**
     * 序列化版本id
     */
    private static final long serialVersionUID = 1L;
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "tb_business_car";
    /**
     * 此模块对应的权限码
     */
    public static final String PERMISSION_CODE = "tb-business-car";
    public static final String PERMISSION_LIST = "tb-business-car-list";
    public static final String PERMISSION_EXPORT = "tb-business-car-export";
    public static final String PERMISSION_ADD = "tb-business-car-add";
    public static final String PERMISSION_EDIT = "tb-business-car-edit";
    public static final String PERMISSION_DEL= "tb-business-car-del";


    // ---------- 表中字段 ----------
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private String id;

    /**
     *
     */
    private String businessId;

    private String customerId;

    /**
     *
     */
    private String carNo;
    private String color;

    /**
     *
     */
    private Date preInTime;

    /**
     *
     */
    private Date preOutTime;

    /**
     *
     */
    private Date realInTime;

    /**
     *
     */
    private Date realOutTime;

    /**
     *
     */
    private BigDecimal money = new BigDecimal("0");

    /**
     *
     */
    private String driverPhone;
    private String driverName;
    private String carCompany;

    private Double carSize;
    /**
     * 是否支付 0 否 1 是
     */
    private Integer pay;
    private Date payTime;
    private BigDecimal basePartMoney;
    private String inChannel;
    private String outChannel;

    @TableField(value = "is_lock")
    private Integer isLock;

    private String inImage;
    private String outImage;

    private String no;

    private Date timeUpdate;

    private Integer businessType=0;




    @TableField(exist = false)
    private String payType;




}
