package cn.iocoder.yudao.module.system.dal.dataobject.biz;

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 lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 基本费用设置表
 * </p>
 *
 * @author caizengcan
 * @since 2022-04-07
 */
@Data
@TableName("sys_overhead_charge")
public class OverheadChargeDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 编号
     */
    @TableField("serial_num")
    private String serialNum;

    /**
     * 费项名称
     */
    @TableField("charge_name")
    private String chargeName;

    /**
     * 收费方式
     */
    @TableField("charge_type")
    private String chargeType;

    /**
     * 上级分类
     */
    @TableField("superiors_id")
    private String superiorsId;

    @TableField(exist = false)
    private String categoryName;

    /**
     * 级别
     */
    @TableField("level")
    private String level;

    /**
     * 费项数量
     */
    @TableField("charge_num")
    private Integer chargeNum;

    /**
     * 费用类型
     */
    @TableField("expense_type")
    private String expenseType;

    /**
     * 月费用
     */
    @TableField("mm_expense")
    private double mmExpense;

    /**
     * 排序
     */
    @TableField("sort_num")
    private Integer sortNum;

    /**
     * 日费用
     */
    @TableField("day_expense")
    private double dayExpense;

    /**
     * 启用：0是,1否
     */
    @TableField("start_using")
    private String startUsing;

    /**
     * 状态(0禁用，1启用)
     */
    @TableField("status")
    private String status;

    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField("create_date")
    private LocalDateTime createDate;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 价格
     */
    @TableField("price")
    private double price;

    /**
     * 每小时价格
     */
    @TableField("hourly_price")
    private double hourlyPrice;

    /**
     * 金蝶费项id
     */
    @TableField("kingdee_costid")
    private String kingdeeCostid;


    @TableField("tenant_id")
    private Long tenantId;

    @TableField(exist = false)
    private String superiorsName;

    @TableField(exist = false)
    private String payIns;

    @TableField(exist = false)
    private String orgName;

    @TableField(exist = false)
    private List<Long> channelIdList;

    @TableField(exist = false)
    private List<Long> moveIds;

    @TableField(exist = false)
    private String tenantName;

}
