This commit is contained in:
suyl
2021-10-19 09:26:08 +08:00
parent 2a8015f740
commit bba0dc3d16
2 changed files with 4 additions and 1 deletions

View File

@@ -179,9 +179,11 @@ func (c *OrderManager) GetOrderInfo(ctx *jxcontext.Context, vendorOrderID string
sql += ` sql += `
t1.*, t2.status waybill_status, t2.courier_name, t2.courier_mobile, t2.desired_fee, t1.*, t2.status waybill_status, t2.courier_name, t2.courier_mobile, t2.desired_fee,
CAST(t1.consignee_lng AS DECIMAL(15,6))/1000000 float_lng, CAST(t1.consignee_lng AS DECIMAL(15,6))/1000000 float_lng,
CAST(t1.consignee_lat AS DECIMAL(15,6))/1000000 float_lat CAST(t1.consignee_lat AS DECIMAL(15,6))/1000000 float_lat,
ts.brand_id
FROM goods_order t1 FROM goods_order t1
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
LEFT JOIN store ts ON ts.id = IF(t1.jx_store_id = 0, t1.store_id, t1.jx_store_id)
` `
if rorder.VendorUserID != "" { if rorder.VendorUserID != "" {
sql += ` sql += `

View File

@@ -51,6 +51,7 @@ type GoodsOrderExt struct {
BadCommentCount int `json:"badCommentCount"` BadCommentCount int `json:"badCommentCount"`
JxIncome int64 `json:"jxIncome"` //预计收益 JxIncome int64 `json:"jxIncome"` //预计收益
StoreDayOrderCount int `json:"storeDayOrderCount"` //门店当天单量 StoreDayOrderCount int `json:"storeDayOrderCount"` //门店当天单量
BrandID int `orm:"column(brand_id)" json:"brandID"`
FloatLng float64 `json:"floatLng"` FloatLng float64 `json:"floatLng"`
FloatLat float64 `json:"floatLat"` FloatLat float64 `json:"floatLat"`