package com.ruoyi.database.domain;


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.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 停车场账单表(ParkingBillInfo)实体类
 *
 * @author makejava
 * @since 2025-12-01 15:37:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "parking_bill_info")
@ApiModel(value = "ParkingBillInfo", description = "停车场账单表")
public class ParkingBillInfo {

    /**
     * 主键ID
     */
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账单编号
     */
    @ApiModelProperty("账单编号")
    @Excel(name = "账单编号")
    private String billCode;

    /**
     * 停车场编码
     */
    @ApiModelProperty("停车场编码")
    @Excel(name = "停车场编码")
    private String parkCode;

    /**
     * 停车场名称
     */
    @ApiModelProperty("停车场名称")
    @Excel(name = "停车场名称")
    private String parkName;

    /**
     * 车牌号
     */
    @ApiModelProperty("车牌号")
    @Excel(name = "车牌号")
    private String plateNo;

    /**
     * 车牌颜色
     */
    @ApiModelProperty("车牌颜色")
    @Excel(name = "车牌颜色")
    private Integer plateColor;
    @TableField(exist = false)
    private String plateColorCn;

    /**
     * 入场时间戳(毫秒)
     */
    @ApiModelProperty("入场时间戳(毫秒)")
    @Excel(name = "入场时间戳(毫秒)")
    private Long enterTime;
    @TableField(exist = false)
    private String enterTimeCn;

    /**
     * 离场时间戳(毫秒)
     */
    @ApiModelProperty("离场时间戳(毫秒)")
    @Excel(name = "离场时间戳(毫秒)")
    private Long costTime;
    @TableField(exist = false)
    private String costTimeCn;

    /**
     * 停车时长(分钟)
     */
    @ApiModelProperty("停车时长(分钟)")
    @Excel(name = "停车时长(分钟)")
    private Integer parkPeriodTime;

    /**
     * 总费用(分)
     */
    @ApiModelProperty("总费用(分)")
    @Excel(name = "总费用(分)")
    private Integer totalCost;


    /**
     * 总费用(元)
     */
    @ApiModelProperty("总费用(元)")
    @Excel(name = "总费用(元)")
    private BigDecimal totalCostYuan;


    /**
     * 抵扣金额(分)
     */
    @ApiModelProperty("抵扣金额(分)")
    @Excel(name = "抵扣金额(分)")
    private Integer deductMoney;

    /**
     * 抵扣金额(元)
     */
    @ApiModelProperty("抵扣金额(元)")
    @Excel(name = "抵扣金额(元)")
    private BigDecimal deductMoneyYuan;

    /**
     * 实付金额(分)
     */
    @ApiModelProperty("实付金额(分)")
    @Excel(name = "实付金额(分)")
    private Integer payMoney;


    /**
     * 实付金额(元)
     */
    @ApiModelProperty("实付金额(元)")
    @Excel(name = "实付金额(元)")
    private BigDecimal payMoneyYuan;

    /**
     * 入场记录唯一标识
     */
    @ApiModelProperty("入场记录唯一标识")
    @Excel(name = "入场记录唯一标识")
    private String inUnid;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @Excel(name = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;



    @ApiModelProperty("是否支付")
    @Excel(name = "是否支付")
    private Integer isPay;


    @ApiModelProperty("是否通知")
    @Excel(name = "是否通知")
    private Integer isNotify;
}
