/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.guosen.bonusgroupstrategy.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 分润业务场景实体类
 *
 * @author BladeX
 * @since 2021-11-13
 */
@Data
@TableName("cyzh_bonus_group_strategy")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BonusGroupStrategy对象", description = "分润业务场景")
public class BonusGroupStrategy extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 分润组策略名称
	*/
		@ApiModelProperty(value = "分润组策略名称")
		private String strategyName;
	/**
	 * 业务场景ID
	 */
	@ApiModelProperty(value = "业务场景ID")
	private Long bonusSceneId;
	/**
	* 分润组ID
	*/
		@ApiModelProperty(value = "分润组ID")
		private Long bonusGroupId;
	/**
	* 分成比例（单位百分比），以采购商服务费率为基准，比如，采购商的服务费率是2.8%，如果这里组的分成比例设置成1。那么表示，服务费率2.8%里面，有1%属于该组利润的费率。后续基于这个采购商的其他组，分成比例不能大于1.8%
	*/
		@ApiModelProperty(value = "分成比例（单位百分比），以采购商服务费率为基准，比如，采购商的服务费率是2.8%，如果这里组的分成比例设置成1。那么表示，服务费率2.8%里面，有1%属于该组利润的费率。后续基于这个采购商的其他组，分成比例不能大于1.8%")
		private BigDecimal rate;
	/**
	* 策略描述
	*/
		@ApiModelProperty(value = "策略描述")
		private String strategyDesc;
	/**
	* 是否是默认策略，0否，1是
	*/
		@ApiModelProperty(value = "是否是默认策略，0否，1是")
		private Integer isDefault;

	/**
	 * 1:平台分润策略
	 * 2：商户分润策略
	 * 3：其他分润策略
	 */
	@ApiModelProperty(value = "分润策略类型")
		private Integer strategyType;


}
