作者 tangxuhui

数据格式调整

@@ -37,8 +37,12 @@ type DividendsReturnedOrderInfo struct { @@ -37,8 +37,12 @@ type DividendsReturnedOrderInfo struct {
37 } 37 }
38 38
39 func ToDividendsReturnedOrderInfo(param *allied_creation_cooperation.DividendsReturnedOrder) *DividendsReturnedOrderInfo { 39 func ToDividendsReturnedOrderInfo(param *allied_creation_cooperation.DividendsReturnedOrder) *DividendsReturnedOrderInfo {
  40 + goods := param.Goods
  41 + if len(param.Goods) == 0 {
  42 + goods = []allied_creation_cooperation.DividendsReturnedOrderGoods{}
  43 + }
40 data := DividendsReturnedOrderInfo{ 44 data := DividendsReturnedOrderInfo{
41 - Goods: param.Goods, 45 + Goods: goods,
42 Org: param.Org, 46 Org: param.Org,
43 Region: param.Region, 47 Region: param.Region,
44 Company: param.Company, 48 Company: param.Company,
@@ -128,7 +128,7 @@ type ( @@ -128,7 +128,7 @@ type (
128 DividendsReturnedOrderIDs []string `json:"dividendsReturnedOrderIds"` //分红退货单记录id 128 DividendsReturnedOrderIDs []string `json:"dividendsReturnedOrderIds"` //分红退货单记录id
129 } 129 }
130 130
131 - DataDividendsReturnedOrderBatchRemove struct { 131 + DataDividendsReturnedOrderBatchRemove []struct {
132 } 132 }
133 ) 133 )
134 134