|
|
|
@ -33,6 +33,7 @@ type queryOrderListResponse struct {
|
|
|
|
|
TotalGoodsCount uint `json:"totalGoodsCount"`
|
|
|
|
|
GoodsList []order.GoodsDetail `json:"goodsList"`
|
|
|
|
|
OrderType string `json:"orderType"` // 订单类型,线上订单(配送) or 门店订单(自提)
|
|
|
|
|
CanPay bool `json:"can_pay"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var TypeMap = map[uint]string{
|
|
|
|
@ -108,6 +109,7 @@ func QueryAllOrders(c *gin.Context) {
|
|
|
|
|
TotalGoodsCount: totalGoodsCount,
|
|
|
|
|
GoodsList: goodsList,
|
|
|
|
|
OrderType: TypeMap[orderInfoList[i1].ShippingMethod],
|
|
|
|
|
CanPay: v1.CanPay,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
back.Suc(c, "", list)
|
|
|
|
@ -417,6 +419,7 @@ type queryOrderDetailResponse struct {
|
|
|
|
|
StatusList []goodsStatus `json:"status_list"`
|
|
|
|
|
MakeUpText string `json:"make_up_text"`
|
|
|
|
|
MakeUpAmount decimal.Decimal `json:"make_up_amount"`
|
|
|
|
|
CanPay bool `json:"can_pay"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type goodsStatus struct {
|
|
|
|
@ -636,6 +639,7 @@ func QueryOrderDetail(c *gin.Context) {
|
|
|
|
|
StatusList: statusList,
|
|
|
|
|
MakeUpText: o.Reason,
|
|
|
|
|
MakeUpAmount: o.Amount,
|
|
|
|
|
CanPay: temp.CanPay,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|