package com.yuchen.saas.parking.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

/**
 * 缴费规则配置表
 *
 * @author 黄辉
 * @version 1.0
 * @date 2021-05-08 17:57:48
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "缴费规则配置表", description = "缴费规则配置表")
@TableName("pmg_bat_car_payment_rule")
public class PmgBatCarPaymentRule extends TenantEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 超时时间
	 */
	@ApiModelProperty(name = "timeout",value = "超时时间")
	private Long timeout;
	/**
	 * 单次扣款的最大金额
	 */
	@ApiModelProperty(name = "feeMax",value = "单次扣款的最大金额")
	private Long feeMax;
	/**
	 * 余额提醒
	 */
	@ApiModelProperty(name = "balanceToRemind",value = "余额提醒")
	private Long  balanceToRemind;
	/**
	 * 计费模式
	 */
	@ApiModelProperty(name = "pricingModel",value = "计费模式 1后进收费 2先出收费")
	private Long pricingModel;
	/**
	 * 停车场id
	 */
	@ApiModelProperty(name = "parkingId", value = "停车场id")
	private Long parkingId;


	/**
	 * 未付款是否进制入场（0：否，1：是）
	 */
	@ApiModelProperty(name = "unpaidEnableEnter", value = "未付款是否进制入场（0：否，1：是）")
	private String unpaidEnableEnter;

	/**
	 * 进场是否关闭未支付账单（0：否，1：是）
	 */
	@ApiModelProperty(name = "unpaidEnableCloseBill", value = "进场是否关闭未支付账单（0：否，1：是）")
	private String unpaidEnableCloseBill;



	/**
	 * 单次扣款的最大金额 元
	 */
	@TableField(exist = false)
	private Double feeMaxDouble;
	/**
	 * 余额提醒 元
	 */
	@TableField(exist = false)
	private Double  balanceToRemindDouble;
//
//	/**
//	 * 禁止进入(0:否 1:是)
//	 */
//	@ApiModelProperty(name = "noEntryIfUnsettled",value = "禁止进入(0:否 1:是)")
//	private Boolean noEntryIfUnsettled;
//	/**
//	 * 进入自动关闭之前账单(0:否 1:是)
//	 */
//	@ApiModelProperty(name = "autoClosedEntry",value = "进入自动关闭之前账单(0:否 1:是)")
//	private Boolean autoClosedEntry;
}
