|
@@ -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,
|