jxincomebegin

This commit is contained in:
richboo111
2022-11-17 17:59:23 +08:00
parent e820bd4bde
commit cd430f4d1e
6 changed files with 84 additions and 99 deletions

View File

@@ -2,6 +2,8 @@ package dao
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"reflect"
"regexp"
"strconv"
"time"
@@ -1057,12 +1059,14 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
}
sql += `
) a WHERE 1 = 1`
globals.SugarLogger.Debugf("params 的type= %s,data======%d", reflect.TypeOf(params["jxIncomeBegin"]), utils.MustInterface2Int64(params["jxIncomeBegin"]))
if params["jxIncomeBegin"] != nil {
//if utils.MustInterface2Int64(params["jxIncomeBegin"]) != 0 {
sql += " AND a.jx_income >= ?"
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["jxIncomeBegin"]))
//}
}
utils.MustInterface2Int64(params["jxIncomeBegin"])
if params["jxIncomeEnd"] != nil {
//if utils.MustInterface2Int64(params["jxIncomeEnd"]) != 0 {
sql += " AND a.jx_income <= ?"