...
|
...
|
@@ -4,13 +4,10 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_cooperation"
|
|
|
)
|
|
|
|
|
|
//MoneyIncentivesItem 金额激励分红列表
|
|
|
type MoneyIncentivesItem struct {
|
|
|
}
|
|
|
|
|
|
//业绩分红列表
|
|
|
type DividendsEstimateDividendItem struct {
|
|
|
OrderGoodId int `json:"orderGoodId,string"`
|
|
|
OrderGoodName string `json:"orderGoodName"` //货品名称
|
|
|
CooperationContractNumber string `json:"cooperationContractNumber"` //共创合约编号
|
|
|
CustomerName string `json:"customerName"` //客户名称
|
|
|
DividendsIncentivesAmount float64 `json:"dividendsIncentivesAmount"` //业绩激励分红金额
|
...
|
...
|
@@ -25,6 +22,7 @@ func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDivi |
|
|
for _, v := range param.List {
|
|
|
item := DividendsEstimateDividendItem{
|
|
|
OrderGoodId: v.OrderGoodId,
|
|
|
OrderGoodName: v.OrderGoodName,
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
CustomerName: v.CustomerName,
|
|
|
DividendsIncentivesAmount: v.OrderAmount,
|
...
|
...
|
@@ -83,3 +81,29 @@ type MoneyIncentivesRule struct { |
|
|
MoneyIncentivesStage int //阶段
|
|
|
MoneyIncentivesStageStart int //阶段开始时间
|
|
|
}
|
|
|
|
|
|
//DividendsEstimateItem 分红预算单列表
|
|
|
type DividendsEstimateItem struct {
|
|
|
DividendsEstimateId int `json:"dividendsEstimateId,string,"` // 承接人分红预算记录ID
|
|
|
DividendsAccountStatus int `json:"dividendsAccountStatus"` // 分红结算状态
|
|
|
DividendsAmount float64 `json:"dividendsAmount"` // 分红金额
|
|
|
DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` // 承接人分红预算单号
|
|
|
DividendsEstimateTime int64 `json:"dividendsEstimateTime"` // 分红预算时间
|
|
|
DividendsParticipateType int `json:"dividendsParticipateType"` // 参与分红类型,1承接人,2推荐人,3关联业务员
|
|
|
DividendsType int `json:"dividendsType"` // 分红类型,1订单分红,2退货冲销,3金额激励
|
|
|
OrderOrReturnedOrderNum string `json:"orderOrReturnedOrderNum"` // 分红订单号或退货单号
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"` // 共创项目编号,
|
|
|
DividendsIncentivesStage int `json:"DividendsIncentivesStage"` //分红阶段
|
|
|
IsCanceled bool `json:"isCanceled"` // 取消状态
|
|
|
DividendsUser struct {
|
|
|
UsersId int `json:"usersId,string,"` // 用户ID,
|
|
|
UserBaseId int `json:"userBaseId,string,"` // 用户基本id
|
|
|
UserType int `json:"userType"` // 用户类型
|
|
|
UsersName string `json:"usersName"` // 用户姓名
|
|
|
Phone string `json:"phone"` // 用户手机号
|
|
|
} `json:"dividendsUser"` // 分红用户
|
|
|
Org struct {
|
|
|
OrgId int `json:"orgId,string,"` // 组织机构ID
|
|
|
OrgName string `json:"orgName"` // 组织名称
|
|
|
} `json:"org"` // 数据所属组织机构
|
|
|
} |
...
|
...
|
|