From a06620e34be60d148334ba9f517e4ed17e9dd452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 12 Jan 2021 10:36:45 +0800 Subject: [PATCH] aa --- business/jxstore/cms/job.go | 1 + business/model/dao/dao_order.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 913e19d9b..87efe51b5 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -1198,6 +1198,7 @@ func RefreshJdDelivery(ctx *jxcontext.Context) (err error) { ) if ctx.GetUserName() == "jxadmin" { userID = "" + userIDs = nil } else { userID = ctx.GetUserID() userIDs = append(userIDs, userID) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 18c1eef62..c8e97d969 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -1,6 +1,7 @@ package dao import ( + "fmt" "time" "git.rosy.net.cn/baseapi/utils" @@ -76,6 +77,8 @@ func GetDeliveryOrders(db *DaoDB, userIDs []string, statuss []int, fromTime, toT sqlParams = append(sqlParams, pageSize, offset) Begin(db) defer Commit(db) + fmt.Println(sql) + fmt.Println(sqlParams) if err = GetRows(db, &dOrders, sql, sqlParams...); err == nil { pagedInfo = &model.PagedInfo{ TotalCount: GetLastTotalRowCount(db),