1
This commit is contained in:
@@ -391,7 +391,7 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
|
||||
}
|
||||
case model.ServerTypePet:
|
||||
sql := `
|
||||
SELECT sum(o.sale_price*o.count) - sum(n.price*o.count ) income
|
||||
SELECT sum(n.price*o.count ) income
|
||||
FROM order_sku o
|
||||
INNER JOIN sku s on s.id = o.sku_id
|
||||
INNER JOIN sku_name n ON n.id = s.name_id
|
||||
@@ -407,7 +407,7 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
|
||||
Income int64 `json:"income"`
|
||||
}{}
|
||||
if err = dao.GetRow(db, baiHuo, sql, incomeParam); err == nil {
|
||||
order.JxIncome = baiHuo.Income
|
||||
order.JxIncome = order.TotalShopMoney - baiHuo.Income
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user