This commit is contained in:
邹宗楠
2025-02-07 09:17:03 +08:00
parent 998fe1b733
commit 43f2974e25

View File

@@ -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
}