|
@@ -248,33 +248,41 @@ func GetViewReportList(mobile, email, startDate, endDate string, startSize, page
|
|
|
|
|
|
var sql1, sql2, sql3 string
|
|
|
var pars []interface{}
|
|
|
+ var pars1, pars2, pars3 []interface{}
|
|
|
if mobile != "" && email != "" {
|
|
|
sql1 += ` and ( uvh.mobile = ? or uvh.email = ? ) `
|
|
|
sql2 += ` and ( rvr.mobile = ? or rvr.email = ? `
|
|
|
sql3 += ` and ( auc.mobile = ? or auc.email = ? `
|
|
|
- pars = append(pars, mobile, email, mobile, email, mobile, email)
|
|
|
+ pars1 = append(pars1, mobile, email)
|
|
|
+ pars2 = append(pars2, mobile, email)
|
|
|
+ pars3 = append(pars3, mobile, email)
|
|
|
} else if mobile != "" {
|
|
|
sql1 += ` and ( uvh.mobile = ? ) `
|
|
|
sql2 += ` and ( rvr.mobile = ? ) `
|
|
|
sql3 += ` and ( auc.mobile = ? ) `
|
|
|
- pars = append(pars, mobile, mobile, mobile)
|
|
|
+ pars1 = append(pars1, mobile)
|
|
|
+ pars2 = append(pars2, mobile)
|
|
|
+ pars3 = append(pars3, mobile)
|
|
|
} else if email != "" {
|
|
|
sql1 += ` and ( uvh.email = ? ) `
|
|
|
sql2 += ` and ( rvr.email = ? ) `
|
|
|
sql3 += ` and ( auc.email = ? ) `
|
|
|
- pars = append(pars, email, email, email)
|
|
|
+ pars1 = append(pars1, email)
|
|
|
+ pars2 = append(pars2, email)
|
|
|
+ pars3 = append(pars3, email)
|
|
|
}
|
|
|
|
|
|
//时间筛选
|
|
|
if startDate != "" && endDate != "" {
|
|
|
sql1 += ` and uvh.created_time >= ? and uvh.created_time <= ? `
|
|
|
- pars = append(pars, startDate, endDate)
|
|
|
+ pars1 = append(pars1, startDate, endDate)
|
|
|
sql2 += ` and rvr.create_time >= ? and rvr.create_time <= ? `
|
|
|
- pars = append(pars, startDate, endDate)
|
|
|
+ pars2 = append(pars2, startDate, endDate)
|
|
|
sql3 += ` and auc.create_time >= ? and auc.create_time <= ? `
|
|
|
- pars = append(pars, startDate, endDate)
|
|
|
+ pars3 = append(pars3, startDate, endDate)
|
|
|
}
|
|
|
|
|
|
+ pars = append(pars, pars1, pars2, pars3)
|
|
|
if utils.RunMode == "debug" {
|
|
|
dataName = "test_v2_hongze_rddp"
|
|
|
} else {
|