作者 唐旭辉

orderid 输出 number 转 string

... ... @@ -87,7 +87,7 @@ func (service OrderInfoService) PageListOrderBase(listOrderQuery query.ListOrder
"createTime": orders[i].CreateTime.Local().Format("2006-01-02 15:04:05"),
"updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"),
"buyer": orders[i].Buyer.BuyerName,
"id": orders[i].Id,
"id": fmt.Sprint(orders[i].Id),
"orderId": orders[i].OrderCode,
"shipmentsId": orders[i].DeliveryCode,
"partner": partnerData.Partner.PartnerName,
... ... @@ -873,7 +873,7 @@ func (service OrderInfoService) PageListOrderBonus(listOrderQuery query.ListOrde
"index": listIndex,
"createTime": orders[i].CreateTime.Local().Format("2006-01-02 15:04:05"),
"updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"),
"id": orders[i].Id,
"id": fmt.Sprint(orders[i].Id),
"shipmentsId": orders[i].DeliveryCode,
"partner": orders[i].PartnerInfo.PartnerName,
"dividendsReceivable": fmt.Sprint(orders[i].GetCurrentPartnerBonus()),
... ...
... ... @@ -172,7 +172,7 @@ func (service OrderInfoService) buildOrderBaseInfoData(orderBase *domain.OrderBa
}
//订单描述
order := map[string]interface{}{
"orderId": orderBase.Id,
"orderId": fmt.Sprint(orderBase.Id),
"orderType": orderBase.OrderType,
"orderTypeName": domain.GetOrderBaseTypeName(orderBase.OrderType),
"orderState": "",
... ... @@ -384,7 +384,7 @@ func (service OrderInfoService) buildOrderBestshopInfoData(orderBase *domain.Ord
}
//订单描述
order := map[string]interface{}{
"orderId": orderBase.Id,
"orderId": fmt.Sprint(orderBase.Id),
"orderType": orderBase.OrderType,
"orderTypeName": domain.GetOrderBaseTypeName(orderBase.OrderType),
"orderState": orderBestshop.OrderState,
... ...
... ... @@ -277,7 +277,7 @@ func (c *OrderInfoController) GetOrderReal() {
allGoods := []map[string]interface{}{}
for _, v := range orderinfo.Goods {
m := map[string]interface{}{
"id": v.Id,
"id": fmt.Sprint(v.Id),
"productName": v.GoodName,
"orderNum": v.PlanGoodNumber,
"univalence": v.Price,
... ...