package com.pj.tb_item_rules;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;

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

/**
 * Model: tb_item_rules -- 费项因子
 * @author lbl 
 */
@Data
@Accessors(chain = true)
@TableName(TbItemRules.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class TbItemRules extends Model<TbItemRules> implements Serializable {

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "tb_item_rules";	
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "tb-item-rules";
	public static final String PERMISSION_CODE_ADD = "tb-item-rules-add";
	public static final String PERMISSION_CODE_EDIT = "tb-item-rules-edit";
	public static final String PERMISSION_CODE_DEL = "tb-item-rules-del";




	// ---------- 表中字段 ----------
	/**
	 * 主键 
	 */
	@TableId(type = IdType.AUTO)
	private Long id;

	private Long itemId;

	/**
	 * 指定的商品 
	 */
	private String goodsCodes;	


	/**
	 * 类型(1=按交易额收取,2=按次收取,3=按顿收费)
	 */
	private String feeType;

	/**
	 * 百分比fee_type=1或3时生效
	 */
	private Double percent;

	/**
	 * 收费金额 fee_type=2时生效 
	 */
	private BigDecimal feeMoney;


	@TableField(exist = false)
	private String goodsCodeStr;





}
