getstores新参数
This commit is contained in:
@@ -359,6 +359,15 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
|
||||
sqlWhereParams = append(sqlWhereParams, "%"+params["tel"].(string)+"%")
|
||||
sqlWhereParams = append(sqlWhereParams, "%"+params["tel"].(string)+"%")
|
||||
}
|
||||
if params["earningType"] != nil {
|
||||
if params["earningType"].(int) != 0 {
|
||||
if params["earningType"].(int) == 1 {
|
||||
sqlWhere += " AND t1.pay_percentage = 100"
|
||||
} else {
|
||||
sqlWhere += " AND t1.pay_percentage < 50"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if params["statuss"] != nil {
|
||||
var statuss []int
|
||||
@@ -370,7 +379,14 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
|
||||
sqlWhereParams = append(sqlWhereParams, statuss)
|
||||
}
|
||||
}
|
||||
|
||||
if params["marketManPhones"] != nil {
|
||||
var phones []string
|
||||
if err = utils.UnmarshalUseNumber([]byte(params["marketManPhones"].(string)), &phones); err != nil {
|
||||
return "", nil, "", nil, err
|
||||
}
|
||||
sqlWhere += " AND t1.market_man_phone IN (" + dao.GenQuestionMarks(len(phones)) + ")"
|
||||
sqlWhereParams = append(sqlWhereParams, phones)
|
||||
}
|
||||
if params["storeLevels"] != nil {
|
||||
var storeLevels []string
|
||||
if err = jxutils.Strings2Objs(utils.Interface2String(params["storeLevels"]), &storeLevels); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user