...
|
...
|
@@ -10,26 +10,26 @@ type MoneyIncentivesItem struct { |
|
|
|
|
|
//业绩分红列表
|
|
|
type DividendsEstimateDividendItem struct {
|
|
|
CooperationContractNumber string `json:"cooperationContractNumber"` //共创合约编号
|
|
|
CustomerName string `json:"customerName"` //客户名称
|
|
|
DividendsIncentivesAmount int `json:"dividendsIncentivesAmount"` //业绩激励分红金额
|
|
|
OrderOrReturnedOrderNum string `json:"orderOrReturnedOrderNum"` //分红订单号或退货单号
|
|
|
OrderTime int64 `json:"orderTime"` //订单/退货单日期
|
|
|
OriginalOrderNum string `json:"originalOrderNum"` //来源单号,源单号,订单号
|
|
|
RegionName string `json:"regionName"` //区域名称
|
|
|
CooperationContractNumber string `json:"cooperationContractNumber"` //共创合约编号
|
|
|
CustomerName string `json:"customerName"` //客户名称
|
|
|
DividendsIncentivesAmount float64 `json:"dividendsIncentivesAmount"` //业绩激励分红金额
|
|
|
OrderOrReturnedOrderNum string `json:"orderOrReturnedOrderNum"` //分红订单号或退货单号
|
|
|
OrderTime int64 `json:"orderTime"` //订单/退货单日期
|
|
|
OriginalOrderNum string `json:"originalOrderNum"` //来源单号,源单号,订单号
|
|
|
RegionName string `json:"regionName"` //区域名称
|
|
|
}
|
|
|
|
|
|
func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDividendsEstimateSearchDividend) []DividendsEstimateDividendItem {
|
|
|
var listdata []DividendsEstimateDividendItem
|
|
|
for _, v := range param.Grid.List {
|
|
|
for _, v := range param.List {
|
|
|
item := DividendsEstimateDividendItem{
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
CustomerName: v.CustomerName,
|
|
|
DividendsIncentivesAmount: v.DividendsIncentivesAmount,
|
|
|
OrderOrReturnedOrderNum: v.OrderOrReturnedOrderNum,
|
|
|
OrderTime: v.OrderTime.Unix(),
|
|
|
DividendsIncentivesAmount: v.OrderAmount,
|
|
|
OrderOrReturnedOrderNum: v.OrderNumber,
|
|
|
OrderTime: v.OrderDate.UnixNano() / 1e6,
|
|
|
OriginalOrderNum: v.OriginalOrderNum,
|
|
|
RegionName: v.Region.RegionName,
|
|
|
RegionName: v.RegionName,
|
|
|
}
|
|
|
listdata = append(listdata, item)
|
|
|
}
|
...
|
...
|
|