1
This commit is contained in:
@@ -387,7 +387,6 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
|
||||
}
|
||||
}
|
||||
case model.ServerTypePet:
|
||||
globals.SugarLogger.Debugf("---------orderId1 := %s", "11111111")
|
||||
sql := `
|
||||
SELECT sum(o.sale_price*o.count) - sum(n.price*o.count ) income
|
||||
FROM order_sku o
|
||||
@@ -404,8 +403,6 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
|
||||
var baiHuo = &struct {
|
||||
Income int64 `json:"income"`
|
||||
}{}
|
||||
globals.SugarLogger.Debugf("----sql := %s", sql)
|
||||
globals.SugarLogger.Debugf("----param := %s", utils.Format4Output(incomeParam, false))
|
||||
if err = dao.GetRow(db, baiHuo, sql, incomeParam); err == nil {
|
||||
order.JxIncome = baiHuo.Income
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user