From 547524cfb97ec13359b2877c7ce90b7461009da9 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 23 Aug 2021 11:04:41 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/orderman_ext.go | 36 ++++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index a9955d1f8..4f389b951 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -388,24 +388,24 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro } } } - count := &struct { - Count int - }{} - sql2 := ` - SELECT COUNT(*) count - FROM goods_order WHERE IF(store_id = 0, jx_store_id ,store_id) = ? - WHERE order_created_at > ? AND order_created_at < ? - ` - storeID := 0 - if order.StoreID == 0 { - storeID = order.JxStoreID - } else { - storeID = order.StoreID - } - sqlParams2 := []interface{}{storeID, time.Now().Format("2006-01-02 00:00:00"), time.Now().Format("2006-01-02 23:59:59")} - if err = dao.GetRow(db, &count, sql2, sqlParams2); err == nil { - order.StoreDayOrderCount = count.Count - } + //count := &struct { + // Count int + //}{} + //sql2 := ` + // SELECT COUNT(*) count + // FROM goods_order WHERE IF(store_id = 0, jx_store_id ,store_id) = ? + // WHERE order_created_at > ? AND order_created_at < ? + //` + //storeID := 0 + //if order.StoreID == 0 { + // storeID = order.JxStoreID + //} else { + // storeID = order.StoreID + //} + //sqlParams2 := []interface{}{storeID, time.Now().Format("2006-01-02 00:00:00"), time.Now().Format("2006-01-02 23:59:59")} + //if err = dao.GetRow(db, &count, sql2, sqlParams2); err == nil { + // order.StoreDayOrderCount = count.Count + //} return retVal, err }, orders) tasksch.HandleTask(task, nil, true).Run()