package com.yuchen.saas.park.api.entity.property;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
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 lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 费用项目
 * </p>
 *
 * @author cxj
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("property_fee_item")
@ApiModel(value="PropertyFeeItem对象", description="费用项目")
public class PropertyFeeItem extends TenantEntity {


    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;

    /**
     * 费用项目名称
     */
    @ApiModelProperty(name = "feeItemName", value = "费用项目名称")
    private String feeItemName;
    /**
     * 归属收费科目:1:0001主营业务收入,2:0002营业外收入,3:0003保证金,4:004代收费,5:0005预存款
     */
    @ApiModelProperty(name = "feeSubject", value = "归属收费科目:1:0001主营业务收入,2:0002营业外收入,3:0003保证金,4:004代收费,5:0005预存款")
    private Integer feeSubject;
    /**
     * 费用项目编码
     */
    @ApiModelProperty(name = "feeItemCode", value = "费用项目编码")
    private String feeItemCode;
    /**
     * 税收分类ID
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "taxCategoryId", value = "税收分类ID")
    private Long taxCategoryId;
    /**
     * 是否含税0不含税,1含税
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "isTaxInclusive", value = "是否含税0不含税,1含税")
    private Integer isTaxInclusive;
    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    @ApiModelProperty(name = "enableStatus", value = "启停状态(0:未启用 1:已启用)")
    private Integer enableStatus;
    /**
     * 是否设置充值条件0未设置,1设置
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "isSetCondition", value = "是否设置充值条件0未设置,1设置")
    private Integer isSetCondition;
    /**
     * 设置充值条件的收费项目id
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "conditionFeeItemId", value = "设置充值条件的收费项目id")
    private Long conditionFeeItemId;
    /**
     * 欠费(设置条件类型1金额,2时长)
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "conditionType", value = "欠费(设置条件类型1金额,2时长)")
    private Integer conditionType;
    /**
     * 大于条件数值:分或月
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "conditionNum", value = "大于条件数值:分或月")
    private Long conditionNum;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "maxAmount", value = "充值金额")
    private Long maxAmount;
    /**
     * 用于冲抵的项目1所有项目,2指定项目
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "balanceType", value = "用于冲抵的项目1所有项目,2指定项目")
    private Integer balanceType;


    @ApiModelProperty(name = "customerId", value = "客户id")
    private Long customerId;
}
