This commit is contained in:
suyl
2021-06-23 17:02:03 +08:00
parent 256dc9a102
commit a2025bf705

View File

@@ -313,8 +313,7 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
var ( var (
db = dao.GetDB() db = dao.GetDB()
isJxIncomeArea = params["jxIncomeBegin"] != nil || params["jxIncomeEnd"] != nil isJxIncomeArea = params["jxIncomeBegin"] != nil || params["jxIncomeEnd"] != nil
begin = utils.MustInterface2Int64(params["jxIncomeBegin"]) begin, end int64
end = utils.MustInterface2Int64(params["jxIncomeEnd"])
) )
//权限 //权限
if permission.IsRoled(ctx) { if permission.IsRoled(ctx) {
@@ -343,6 +342,8 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
} }
} }
if isJxIncomeArea { if isJxIncomeArea {
begin = utils.MustInterface2Int64(params["jxIncomeBegin"])
end = utils.MustInterface2Int64(params["jxIncomeEnd"])
//begin := utils.MustInterface2Int64(params["jxIncomeBegin"]) //begin := utils.MustInterface2Int64(params["jxIncomeBegin"])
//end := utils.MustInterface2Int64(params["jxIncomeEnd"]) //end := utils.MustInterface2Int64(params["jxIncomeEnd"])
pageSize = math.MaxInt64 pageSize = math.MaxInt64