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),