getOrderInfo字段修改
This commit is contained in:
@@ -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
|
LEFT JOIN waybill t2 ON t1.vendor_waybill_id = t2.vendor_waybill_id AND t1.waybill_vendor_id = t2.waybill_vendor_id
|
||||||
JOIN (
|
JOIN (
|
||||||
SELECT count(a.vendor_order_id) count,SUM(a.shop_price) -
|
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
|
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 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
|
LEFT JOIN jx_bad_comments d ON d.order_id = a.vendor_order_id AND d.order_flag = a.vendor_id
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ type GoodsOrderExt struct {
|
|||||||
ShortSkuInfo `json:"-"`
|
ShortSkuInfo `json:"-"`
|
||||||
SkuList []*ShortSkuInfo `json:"skuList,omitempty"`
|
SkuList []*ShortSkuInfo `json:"skuList,omitempty"`
|
||||||
Count int `json:"count"`
|
Count int `json:"count"`
|
||||||
ShopPrice int64 `json:"shopPrice"`
|
ShopSumPrice int64 `json:"shopSumPrice"`
|
||||||
AvgPrice int64 `json:"avgPrice"`
|
AvgPrice int64 `json:"avgPrice"`
|
||||||
BadCommentCount int `json:"badCommentCount"`
|
BadCommentCount int `json:"badCommentCount"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user