From 6ff593ca83ca206a24cde918a1eac0c99e590def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 16 Jan 2020 09:17:50 +0800 Subject: [PATCH] =?UTF-8?q?getOrderInfo=E5=AD=97=E6=AE=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/orderman_ext.go | 2 +- business/model/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 4dea5277f..789d062cf 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -141,7 +141,7 @@ func (c *OrderManager) GetOrderInfo(ctx *jxcontext.Context, vendorOrderID string LEFT JOIN waybill t2 ON t1.vendor_waybill_id = t2.vendor_waybill_id AND t1.waybill_vendor_id = t2.waybill_vendor_id JOIN ( SELECT count(a.vendor_order_id) count,SUM(a.shop_price) - - IFNULL(SUM(c.sku_user_money+c.freight_user_money+c.afs_freight_money+c.box_money+c.tongcheng_freight_money+c.sku_box_money),0) shop_price,a.vendor_user_id,count(d.score < 3 or NULL) bad_comment_count + IFNULL(SUM(c.sku_user_money+c.freight_user_money+c.afs_freight_money+c.box_money+c.tongcheng_freight_money+c.sku_box_money),0) shop_sum_price,a.vendor_user_id,count(d.score < 3 or NULL) bad_comment_count FROM goods_order a LEFT JOIN afs_order c ON a.vendor_order_id = c.vendor_order_id AND c.vendor_id = a.vendor_id LEFT JOIN jx_bad_comments d ON d.order_id = a.vendor_order_id AND d.order_flag = a.vendor_id diff --git a/business/model/api.go b/business/model/api.go index 7335631ae..3f83409dd 100644 --- a/business/model/api.go +++ b/business/model/api.go @@ -43,7 +43,7 @@ type GoodsOrderExt struct { ShortSkuInfo `json:"-"` SkuList []*ShortSkuInfo `json:"skuList,omitempty"` Count int `json:"count"` - ShopPrice int64 `json:"shopPrice"` + ShopSumPrice int64 `json:"shopSumPrice"` AvgPrice int64 `json:"avgPrice"` BadCommentCount int `json:"badCommentCount"` }