package com.sptg.estate.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lianghanqiang
 * @since 2021-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("estate_bills_item")
public class BillsItem extends Model<BillsItem> {

    private static final long serialVersionUID = 1L;

    /**
     * 缴费项id
     */
    @TableId("id")
    private Long id;

    /**
     * 缴费项名称
     */
    @TableField("item_name")
    private String itemName;
    /**
     * 缴费金额
     */
    @TableField("item_fee")
    private Double itemFee;
    /**
     * 备注
     */
    @TableField("item_desc")
    private String itemDesc;

    /**
     * 账单id
     */
    @TableField("pid")
    private Long pid;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
