作者 yangfu

分红详情修改

1 package service 1 package service
2 2
3 import ( 3 import (
  4 + "fmt"
4 "github.com/linmadan/egglib-go/core/application" 5 "github.com/linmadan/egglib-go/core/application"
5 "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/application/factory" 6 "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/application/factory"
6 "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/application/order_payment/command" 7 "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/application/order_payment/command"
@@ -177,6 +178,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym @@ -177,6 +178,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym
177 } 178 }
178 179
179 type DividendOrderItem struct { 180 type DividendOrderItem struct {
  181 + OrderId string `json:"id"` //订单编号
180 OrderNumber string `json:"orderNumber"` //订单号 182 OrderNumber string `json:"orderNumber"` //订单号
181 OrderState int `json:"orderState"` //订单状态 183 OrderState int `json:"orderState"` //订单状态
182 StateOfPayment string `json:"stateOfPayment"` //支付状态 184 StateOfPayment string `json:"stateOfPayment"` //支付状态
@@ -192,6 +194,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym @@ -192,6 +194,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym
192 for i := range orders { 194 for i := range orders {
193 order := orders[i] 195 order := orders[i]
194 item := DividendOrderItem{ 196 item := DividendOrderItem{
  197 + OrderId: fmt.Sprintf("%v", order.Id),
195 OrderNumber: order.OrderCode, 198 OrderNumber: order.OrderCode,
196 OrderState: order.OrderStatus, 199 OrderState: order.OrderStatus,
197 StateOfPayment: "", 200 StateOfPayment: "",