...
|
...
|
@@ -15,28 +15,29 @@ type DividendsEstimateDividendItem struct { |
|
|
OrderTime int64 `json:"orderTime"` //订单/退货单日期
|
|
|
OriginalOrderNum string `json:"originalOrderNum"` //来源单号,源单号,订单号
|
|
|
RegionName string `json:"regionName"` //区域名称
|
|
|
AuthFlag bool `json:"authFlag"`
|
|
|
}
|
|
|
|
|
|
func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDividendsEstimateSearchDividend) []DividendsEstimateDividendItem {
|
|
|
listdata := []DividendsEstimateDividendItem{}
|
|
|
for _, v := range param.List {
|
|
|
item := DividendsEstimateDividendItem{
|
|
|
OrderGoodId: v.OrderGoodId,
|
|
|
OrderGoodName: v.OrderGoodName,
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
CustomerName: v.CustomerName,
|
|
|
DividendsIncentivesAmount: v.OrderAmount,
|
|
|
OrderOrReturnedOrderNum: v.OrderNumber,
|
|
|
// func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDividendsEstimateSearchDividend) []DividendsEstimateDividendItem {
|
|
|
// listdata := []DividendsEstimateDividendItem{}
|
|
|
// for _, v := range param.List {
|
|
|
// item := DividendsEstimateDividendItem{
|
|
|
// OrderGoodId: v.OrderGoodId,
|
|
|
// OrderGoodName: v.OrderGoodName,
|
|
|
// CooperationContractNumber: v.CooperationContractNumber,
|
|
|
// CustomerName: v.CustomerName,
|
|
|
// DividendsIncentivesAmount: v.OrderAmount,
|
|
|
// OrderOrReturnedOrderNum: v.OrderNumber,
|
|
|
|
|
|
OriginalOrderNum: v.OriginalOrderNum,
|
|
|
RegionName: v.RegionName,
|
|
|
}
|
|
|
item.OrderTime = v.OrderDate.UnixNano() / 1e6
|
|
|
listdata = append(listdata, item)
|
|
|
}
|
|
|
// OriginalOrderNum: v.OriginalOrderNum,
|
|
|
// RegionName: v.RegionName,
|
|
|
// }
|
|
|
// item.OrderTime = v.OrderDate.UnixNano() / 1e6
|
|
|
// listdata = append(listdata, item)
|
|
|
// }
|
|
|
|
|
|
return listdata
|
|
|
}
|
|
|
// return listdata
|
|
|
// }
|
|
|
|
|
|
//金额激励列表
|
|
|
type DividendsEstimateMoneyItem struct {
|
...
|
...
|
@@ -108,4 +109,5 @@ type DividendsEstimateItem struct { |
|
|
OrgId int `json:"orgId,string,"` // 组织机构ID
|
|
|
OrgName string `json:"orgName"` // 组织名称
|
|
|
} `json:"org"` // 数据所属组织机构
|
|
|
AuthFlag bool `json:"authFlag"`
|
|
|
} |
...
|
...
|
|