dividends_incentives_rule.go 1.6 KB
package models

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
	"time"
)

type DividendsIncentivesRule struct {
	tableName string `comment:"金额激励规则实体" pg:"dividends_incentives_rules,alias:dividends_incentives_rule"`
	// 分红规则ID
	DividendsIncentivesRuleId int64 `comment:"分红规则ID" pg:",pk:dividends_incentives_rule_id"`
	// 关联的项目合约编号
	CooperationContractNumber string `comment:"关联的项目合约编号"`
	// 推荐人抽成比例
	ReferrerPercentage float64 `comment:"推荐人抽成比例"`
	// 业务员抽成比例
	SalesmanPercentage float64 `comment:"业务员抽成比例"`
	// 分红规则激励百分点
	DividendsIncentivesPercentage float64 `comment:"分红规则激励百分点"`
	// 分红规则激励阶段,阶段返回时需要转换为中文数字
	DividendsIncentivesStage int32 `comment:"分红规则激励阶段,阶段返回时需要转换为中文数字"`
	// 分红规则激励阶段结束
	DividendsIncentivesStageEnd time.Time `comment:"分红规则激励阶段结束"`
	// 分红规则激励阶段开始
	DividendsIncentivesStageStart time.Time `comment:"分红规则激励阶段开始"`
	// 分红激励规则说明
	Remarks string `comment:"分红激励规则说明"`
	// 数据所属组织机构
	Org *domain.Org `comment:"数据所属组织机构"`
	// 公司
	Company *domain.Company `comment:"公司"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
	// 删除时间
	DeletedAt time.Time `comment:"删除时间" pg:",soft_delete"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
}