package com.xunhong.erp.turbo.biz.domain.entity;

import com.alibaba.cola.domain.Entity;
import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.enums.RebateCalcMethodEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author shenyifei
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class DealerRebateCustomer extends DTO {

	/**
	 * 客户ID
	 */
	private Long customerId;

	/**
	 * 经销商ID
	 */
	private Long dealerId;

	/**
	 * 客户名称
	 */
	private String name;

	/**
	 * 状态：1_启用；0_禁用；
	 */
	private Boolean status;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建时间
	 */
	private LocalDateTime createdAt;

	/**
	 * 返点计算方式：1_按净重计算；2_固定金额；3_不固定
	 */
	private RebateCalcMethodEnum calcMethod;

	/**
	 * 返点单价
	 */
	private BigDecimal unitPrice;

	/**
	 * 返点金额
	 */
	private BigDecimal amount;

	private Dealer dealer;

}

