This commit is contained in:
suyl
2021-06-04 17:15:45 +08:00
parent a103a0cf56
commit b53c570a39

View File

@@ -990,13 +990,13 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
) a WHERE 1 = 1`
if params["jxIncomeBegin"] != nil {
if utils.MustInterface2Int64(params["jxIncomeBegin"]) != 0 {
sqlWhere += " AND jx_income >= ?"
sqlWhere += " AND a.jx_income >= ?"
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["jxIncomeBegin"]))
}
}
if params["jxIncomeEnd"] != nil {
if utils.MustInterface2Int64(params["jxIncomeEnd"]) != 0 {
sqlWhere += " AND jx_income <= ?"
sqlWhere += " AND a.jx_income <= ?"
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["jxIncomeEnd"]))
}
}