正在显示
8 个修改的文件
包含
24 行增加
和
24 行删除
@@ -84,7 +84,7 @@ func (dividendsEstimateService *DividendsEstimateService) ListDividendsIncentive | @@ -84,7 +84,7 @@ func (dividendsEstimateService *DividendsEstimateService) ListDividendsIncentive | ||
84 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 84 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
85 | } | 85 | } |
86 | if dividendsOrder == nil { | 86 | if dividendsOrder == nil { |
87 | - return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", orderGood.DividendsOrderNumber)) | 87 | + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("分红订单%s不存在", orderGood.DividendsOrderNumber)) |
88 | } | 88 | } |
89 | if err := dividendsIncentivesEstimateDto.LoadDto(orderGood, dividendsOrder.DividendsOrderNumber, dividendsOrder.DividendsOriginalOrderNum, dividendsOrder.CustomerName, dividendsOrder.Region.RegionName, dividendsOrder.OrderTime); err != nil { | 89 | if err := dividendsIncentivesEstimateDto.LoadDto(orderGood, dividendsOrder.DividendsOrderNumber, dividendsOrder.DividendsOriginalOrderNum, dividendsOrder.CustomerName, dividendsOrder.Region.RegionName, dividendsOrder.OrderTime); err != nil { |
90 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 90 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
@@ -96,7 +96,7 @@ func (dividendsEstimateService *DividendsEstimateService) ListDividendsIncentive | @@ -96,7 +96,7 @@ func (dividendsEstimateService *DividendsEstimateService) ListDividendsIncentive | ||
96 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 96 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
97 | } | 97 | } |
98 | if dividendsReturnedOrder == nil { | 98 | if dividendsReturnedOrder == nil { |
99 | - return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", orderGood.DividendsReturnedOrderNumber)) | 99 | + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("分红退货单%s不存在", orderGood.DividendsReturnedOrderNumber)) |
100 | } | 100 | } |
101 | if err := dividendsIncentivesEstimateDto.LoadDto(orderGood, dividendsReturnedOrder.DividendsReturnedOrderNumber, dividendsReturnedOrder.OriginalOrderNum, dividendsReturnedOrder.DividendsReturnedCustomerName, dividendsReturnedOrder.Region.RegionName, dividendsReturnedOrder.OrderTime); err != nil { | 101 | if err := dividendsIncentivesEstimateDto.LoadDto(orderGood, dividendsReturnedOrder.DividendsReturnedOrderNumber, dividendsReturnedOrder.OriginalOrderNum, dividendsReturnedOrder.DividendsReturnedCustomerName, dividendsReturnedOrder.Region.RegionName, dividendsReturnedOrder.OrderTime); err != nil { |
102 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 102 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
@@ -628,7 +628,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent | @@ -628,7 +628,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent | ||
628 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "分红订单不存在") | 628 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "分红订单不存在") |
629 | } | 629 | } |
630 | if dividendsOrder == nil { | 630 | if dividendsOrder == nil { |
631 | - return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", orderGood.DividendsOrderNumber)) | 631 | + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("分红订单%s不存在", orderGood.DividendsOrderNumber)) |
632 | } | 632 | } |
633 | // 分红订单产品预算 | 633 | // 分红订单产品预算 |
634 | if dividendsEstimateDetails, err := confirmDividendsIncentivesEstimateService.Confirm(orderGoods); err != nil { | 634 | if dividendsEstimateDetails, err := confirmDividendsIncentivesEstimateService.Confirm(orderGoods); err != nil { |
@@ -673,7 +673,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent | @@ -673,7 +673,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent | ||
673 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 673 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
674 | } | 674 | } |
675 | if dividendsReturnedOrder == nil { | 675 | if dividendsReturnedOrder == nil { |
676 | - return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", orderGood.DividendsReturnedOrderNumber)) | 676 | + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("分红退货单%s不存在", orderGood.DividendsReturnedOrderNumber)) |
677 | } | 677 | } |
678 | // 分红退货单产品预算 | 678 | // 分红退货单产品预算 |
679 | if dividendsReturnedEstimateDetails, err := confirmDividendsIncentivesEstimateService.Confirm(orderGoods); err != nil { | 679 | if dividendsReturnedEstimateDetails, err := confirmDividendsIncentivesEstimateService.Confirm(orderGoods); err != nil { |
@@ -18,7 +18,7 @@ type OrderGoods struct { | @@ -18,7 +18,7 @@ type OrderGoods struct { | ||
18 | // 订单产品单价 | 18 | // 订单产品单价 |
19 | OrderGoodPrice float64 `json:"orderGoodPrice"` | 19 | OrderGoodPrice float64 `json:"orderGoodPrice"` |
20 | // 订单产品数量 | 20 | // 订单产品数量 |
21 | - OrderGoodQuantity int64 `json:"orderGoodQuantity"` | 21 | + OrderGoodQuantity float64 `json:"orderGoodQuantity"` |
22 | // 关联分红订单号 | 22 | // 关联分红订单号 |
23 | DividendsOrderNumber string `json:"dividendsOrderNumber"` | 23 | DividendsOrderNumber string `json:"dividendsOrderNumber"` |
24 | // 关联的共创合约编号 | 24 | // 关联的共创合约编号 |
@@ -488,7 +488,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD | @@ -488,7 +488,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD | ||
488 | } | 488 | } |
489 | 489 | ||
490 | // 产品相关:产品名称,产品数量、产品价格、费用 | 490 | // 产品相关:产品名称,产品数量、产品价格、费用 |
491 | - quantity, err := strconv.ParseInt(dividendsOrder.OrderGoodQuantity, 10, 64) | 491 | + quantity, err := strconv.ParseFloat(dividendsOrder.OrderGoodQuantity, 64) |
492 | if err != nil { | 492 | if err != nil { |
493 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) | 493 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) |
494 | } | 494 | } |
@@ -533,7 +533,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD | @@ -533,7 +533,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD | ||
533 | } | 533 | } |
534 | } else { // 聚合同一笔订单产品 | 534 | } else { // 聚合同一笔订单产品 |
535 | // 产品相关:产品名称,产品数量、产品价格、费用 | 535 | // 产品相关:产品名称,产品数量、产品价格、费用 |
536 | - quantity, err := strconv.ParseInt(dividendsOrder.OrderGoodQuantity, 10, 64) | 536 | + quantity, err := strconv.ParseFloat(dividendsOrder.OrderGoodQuantity, 64) |
537 | if err != nil { | 537 | if err != nil { |
538 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) | 538 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) |
539 | } | 539 | } |
@@ -17,7 +17,7 @@ type OrderGoods struct { | @@ -17,7 +17,7 @@ type OrderGoods struct { | ||
17 | // 订单产品单价 | 17 | // 订单产品单价 |
18 | OrderGoodPrice float64 `cname:"订单产品单价" json:"orderGoodPrice"` | 18 | OrderGoodPrice float64 `cname:"订单产品单价" json:"orderGoodPrice"` |
19 | // 订单产品数量 | 19 | // 订单产品数量 |
20 | - OrderGoodQuantity int64 `cname:"订单产品数量" json:"orderGoodQuantity"` | 20 | + OrderGoodQuantity float64 `cname:"订单产品数量" json:"orderGoodQuantity"` |
21 | // 关联分红订单号 | 21 | // 关联分红订单号 |
22 | DividendsOrderNumber string `cname:"关联分红订单号" json:"dividendsOrderNumber"` | 22 | DividendsOrderNumber string `cname:"关联分红订单号" json:"dividendsOrderNumber"` |
23 | // 关联的共创合约编号 | 23 | // 关联的共创合约编号 |
@@ -524,7 +524,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide | @@ -524,7 +524,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide | ||
524 | } | 524 | } |
525 | 525 | ||
526 | // 产品相关:产品名称,退货数量、退货价格 | 526 | // 产品相关:产品名称,退货数量、退货价格 |
527 | - quantity, err := strconv.ParseInt(dividendsReturnedOrder.OrderGoodQuantity, 10, 64) | 527 | + quantity, err := strconv.ParseFloat(dividendsReturnedOrder.OrderGoodQuantity, 64) |
528 | if err != nil { | 528 | if err != nil { |
529 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) | 529 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) |
530 | } | 530 | } |
@@ -562,7 +562,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide | @@ -562,7 +562,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide | ||
562 | } | 562 | } |
563 | } else { // 聚合同一笔订单产品 | 563 | } else { // 聚合同一笔订单产品 |
564 | // 产品相关:产品名称,退货数量、退货价格 | 564 | // 产品相关:产品名称,退货数量、退货价格 |
565 | - quantity, err := strconv.ParseInt(dividendsReturnedOrder.OrderGoodQuantity, 10, 64) | 565 | + quantity, err := strconv.ParseFloat(dividendsReturnedOrder.OrderGoodQuantity, 64) |
566 | if err != nil { | 566 | if err != nil { |
567 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) | 567 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) |
568 | } | 568 | } |
@@ -18,7 +18,7 @@ type OrderGood struct { | @@ -18,7 +18,7 @@ type OrderGood struct { | ||
18 | // 订单产品单价 | 18 | // 订单产品单价 |
19 | OrderGoodPrice float64 `json:"orderGoodPrice"` | 19 | OrderGoodPrice float64 `json:"orderGoodPrice"` |
20 | // 订单产品数量 | 20 | // 订单产品数量 |
21 | - OrderGoodQuantity int64 `json:"orderGoodQuantity,string"` | 21 | + OrderGoodQuantity float64 `json:"orderGoodQuantity,string"` |
22 | // 关联分红订单号 | 22 | // 关联分红订单号 |
23 | DividendsOrderNumber string `json:"dividendsOrderNumber"` | 23 | DividendsOrderNumber string `json:"dividendsOrderNumber"` |
24 | // 关联的分红退货单号 | 24 | // 关联的分红退货单号 |
@@ -66,7 +66,7 @@ func (orderGood *OrderGood) Update(data map[string]interface{}) error { | @@ -66,7 +66,7 @@ func (orderGood *OrderGood) Update(data map[string]interface{}) error { | ||
66 | orderGood.OrderGoodPrice = orderGoodPrice.(float64) | 66 | orderGood.OrderGoodPrice = orderGoodPrice.(float64) |
67 | } | 67 | } |
68 | if orderGoodQuantity, ok := data["orderGoodQuantity"]; ok { | 68 | if orderGoodQuantity, ok := data["orderGoodQuantity"]; ok { |
69 | - orderGood.OrderGoodQuantity = orderGoodQuantity.(int64) | 69 | + orderGood.OrderGoodQuantity = orderGoodQuantity.(float64) |
70 | } | 70 | } |
71 | if cooperationContractNumber, ok := data["cooperationContractNumber"]; ok { | 71 | if cooperationContractNumber, ok := data["cooperationContractNumber"]; ok { |
72 | orderGood.CooperationContractNumber = cooperationContractNumber.(string) | 72 | orderGood.CooperationContractNumber = cooperationContractNumber.(string) |
@@ -47,7 +47,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -47,7 +47,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
47 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "共创合约不存在") | 47 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "共创合约不存在") |
48 | } | 48 | } |
49 | if cooperationContract == nil { | 49 | if cooperationContract == nil { |
50 | - return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", orderGood.CooperationContractNumber)) | 50 | + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("共创合约%s不存在", orderGood.CooperationContractNumber)) |
51 | } | 51 | } |
52 | if orderGood.DividendsOrderNumber != "" { | 52 | if orderGood.DividendsOrderNumber != "" { |
53 | // 获取分红订单 | 53 | // 获取分红订单 |
@@ -60,7 +60,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -60,7 +60,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
60 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "分红订单不存在") | 60 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "分红订单不存在") |
61 | } | 61 | } |
62 | if dividendsOrder == nil { | 62 | if dividendsOrder == nil { |
63 | - return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", orderGood.DividendsOrderNumber)) | 63 | + return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("分红订单%s不存在", orderGood.DividendsOrderNumber)) |
64 | } | 64 | } |
65 | // 匹配分红规则 | 65 | // 匹配分红规则 |
66 | var dividendsIncentivesRuleMatched *domain.DividendsIncentivesRule | 66 | var dividendsIncentivesRuleMatched *domain.DividendsIncentivesRule |
@@ -79,7 +79,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -79,7 +79,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
79 | for _, undertaker := range cooperationContract.Undertakers { | 79 | for _, undertaker := range cooperationContract.Undertakers { |
80 | // 添加承接人分红预算信息详情 | 80 | // 添加承接人分红预算信息详情 |
81 | // TODO 使用decimal提高精度 | 81 | // TODO 使用decimal提高精度 |
82 | - undertakerDividendsAmount := (orderGood.OrderGoodAmount - orderGood.OrderGoodExpense) * dividendsIncentivesRuleMatched.DividendsIncentivesPercentage / 100 | 82 | + undertakerDividendsAmount := orderGood.OrderGoodAmount * dividendsIncentivesRuleMatched.DividendsIncentivesPercentage / 100 |
83 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ | 83 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ |
84 | DividendsUser: &domain.User{ | 84 | DividendsUser: &domain.User{ |
85 | UserId: undertaker.UserId, | 85 | UserId: undertaker.UserId, |
@@ -90,7 +90,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -90,7 +90,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
90 | Roles: undertaker.Roles, | 90 | Roles: undertaker.Roles, |
91 | UserInfo: undertaker.UserInfo, | 91 | UserInfo: undertaker.UserInfo, |
92 | UserType: undertaker.UserType, | 92 | UserType: undertaker.UserType, |
93 | - UserName: undertaker.UserName, | 93 | + UserName: undertaker.UserInfo.UserName, |
94 | UserPhone: undertaker.UserPhone, | 94 | UserPhone: undertaker.UserPhone, |
95 | Status: undertaker.Status, | 95 | Status: undertaker.Status, |
96 | Company: undertaker.Company, | 96 | Company: undertaker.Company, |
@@ -101,7 +101,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -101,7 +101,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
101 | }) | 101 | }) |
102 | // 添加推荐人分红预算信息详情 | 102 | // 添加推荐人分红预算信息详情 |
103 | if undertaker.Referrer != nil { | 103 | if undertaker.Referrer != nil { |
104 | - referrerDividendsAmount := (orderGood.OrderGoodAmount - orderGood.OrderGoodExpense) * dividendsIncentivesRuleMatched.ReferrerPercentage / 100 | 104 | + referrerDividendsAmount := orderGood.OrderGoodAmount * dividendsIncentivesRuleMatched.ReferrerPercentage / 100 |
105 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ | 105 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ |
106 | DividendsUser: &domain.User{ | 106 | DividendsUser: &domain.User{ |
107 | UserId: undertaker.Referrer.UserId, | 107 | UserId: undertaker.Referrer.UserId, |
@@ -112,7 +112,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -112,7 +112,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
112 | Roles: undertaker.Referrer.Roles, | 112 | Roles: undertaker.Referrer.Roles, |
113 | UserInfo: undertaker.Referrer.UserInfo, | 113 | UserInfo: undertaker.Referrer.UserInfo, |
114 | UserType: undertaker.Referrer.UserType, | 114 | UserType: undertaker.Referrer.UserType, |
115 | - UserName: undertaker.Referrer.UserName, | 115 | + UserName: undertaker.Referrer.UserInfo.UserName, |
116 | UserPhone: undertaker.Referrer.UserPhone, | 116 | UserPhone: undertaker.Referrer.UserPhone, |
117 | Company: undertaker.Referrer.Company, | 117 | Company: undertaker.Referrer.Company, |
118 | }, | 118 | }, |
@@ -123,7 +123,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -123,7 +123,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
123 | } | 123 | } |
124 | // 添加关联业务员分红预算信息详情 | 124 | // 添加关联业务员分红预算信息详情 |
125 | if undertaker.Salesman != nil { | 125 | if undertaker.Salesman != nil { |
126 | - salesmanDividendsAmount := (orderGood.OrderGoodAmount - orderGood.OrderGoodExpense) * dividendsIncentivesRuleMatched.SalesmanPercentage / 100 | 126 | + salesmanDividendsAmount := orderGood.OrderGoodAmount * dividendsIncentivesRuleMatched.SalesmanPercentage / 100 |
127 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ | 127 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ |
128 | DividendsUser: &domain.User{ | 128 | DividendsUser: &domain.User{ |
129 | UserId: undertaker.Salesman.UserId, | 129 | UserId: undertaker.Salesman.UserId, |
@@ -134,7 +134,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -134,7 +134,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
134 | Roles: undertaker.Salesman.Roles, | 134 | Roles: undertaker.Salesman.Roles, |
135 | UserInfo: undertaker.Salesman.UserInfo, | 135 | UserInfo: undertaker.Salesman.UserInfo, |
136 | UserType: undertaker.Salesman.UserType, | 136 | UserType: undertaker.Salesman.UserType, |
137 | - UserName: undertaker.Salesman.UserName, | 137 | + UserName: undertaker.Salesman.UserInfo.UserName, |
138 | UserPhone: undertaker.Salesman.UserPhone, | 138 | UserPhone: undertaker.Salesman.UserPhone, |
139 | Company: undertaker.Salesman.Company, | 139 | Company: undertaker.Salesman.Company, |
140 | }, | 140 | }, |
@@ -177,7 +177,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -177,7 +177,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
177 | Roles: undertaker.Roles, | 177 | Roles: undertaker.Roles, |
178 | UserInfo: undertaker.UserInfo, | 178 | UserInfo: undertaker.UserInfo, |
179 | UserType: undertaker.UserType, | 179 | UserType: undertaker.UserType, |
180 | - UserName: undertaker.UserName, | 180 | + UserName: undertaker.UserInfo.UserName, |
181 | UserPhone: undertaker.UserPhone, | 181 | UserPhone: undertaker.UserPhone, |
182 | Status: undertaker.Status, | 182 | Status: undertaker.Status, |
183 | Company: undertaker.Company, | 183 | Company: undertaker.Company, |
@@ -199,7 +199,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -199,7 +199,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
199 | Roles: undertaker.Referrer.Roles, | 199 | Roles: undertaker.Referrer.Roles, |
200 | UserInfo: undertaker.Referrer.UserInfo, | 200 | UserInfo: undertaker.Referrer.UserInfo, |
201 | UserType: undertaker.Referrer.UserType, | 201 | UserType: undertaker.Referrer.UserType, |
202 | - UserName: undertaker.Referrer.UserName, | 202 | + UserName: undertaker.Referrer.UserInfo.UserName, |
203 | UserPhone: undertaker.Referrer.UserPhone, | 203 | UserPhone: undertaker.Referrer.UserPhone, |
204 | Company: undertaker.Referrer.Company, | 204 | Company: undertaker.Referrer.Company, |
205 | }, | 205 | }, |
@@ -221,7 +221,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | @@ -221,7 +221,7 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo | ||
221 | Roles: undertaker.Salesman.Roles, | 221 | Roles: undertaker.Salesman.Roles, |
222 | UserInfo: undertaker.Salesman.UserInfo, | 222 | UserInfo: undertaker.Salesman.UserInfo, |
223 | UserType: undertaker.Salesman.UserType, | 223 | UserType: undertaker.Salesman.UserType, |
224 | - UserName: undertaker.Salesman.UserName, | 224 | + UserName: undertaker.Salesman.UserInfo.UserName, |
225 | UserPhone: undertaker.Salesman.UserPhone, | 225 | UserPhone: undertaker.Salesman.UserPhone, |
226 | Company: undertaker.Salesman.Company, | 226 | Company: undertaker.Salesman.Company, |
227 | }, | 227 | }, |
@@ -13,7 +13,7 @@ type OrderGood struct { | @@ -13,7 +13,7 @@ type OrderGood struct { | ||
13 | // 订单产品单价 | 13 | // 订单产品单价 |
14 | OrderGoodPrice float64 `comment:"订单产品单价"` | 14 | OrderGoodPrice float64 `comment:"订单产品单价"` |
15 | // 订单产品数量 | 15 | // 订单产品数量 |
16 | - OrderGoodQuantity int64 `comment:"订单产品数量"` | 16 | + OrderGoodQuantity float64 `comment:"订单产品数量"` |
17 | // 关联分红订单号 | 17 | // 关联分红订单号 |
18 | DividendsOrderNumber string `comment:"关联分红订单号"` | 18 | DividendsOrderNumber string `comment:"关联分红订单号"` |
19 | // 关联的分红退货单号 | 19 | // 关联的分红退货单号 |
-
请 注册 或 登录 后发表评论