|
@@ -51,7 +51,7 @@ func (m *CustomerDAO) CustWithWXList(phone, username, recommendname, begindate,
|
51
|
51
|
}
|
52
|
52
|
|
53
|
53
|
if username != "" {
|
54
|
|
- query += " and t.customer_name like '%" + username + "%'"
|
|
54
|
+ query += " and t.name like '%" + username + "%'"
|
55
|
55
|
}
|
56
|
56
|
|
57
|
57
|
if recommendname != "" {
|
|
@@ -65,6 +65,7 @@ func (m *CustomerDAO) CustWithWXList(phone, username, recommendname, begindate,
|
65
|
65
|
if enddate != "" {
|
66
|
66
|
query = query + ` AND t.create_date<'` + begindate + `'`
|
67
|
67
|
}
|
|
68
|
+ query = query + ` AND t.customer_name <> ''`
|
68
|
69
|
|
69
|
70
|
query = query + ` ORDER BY
|
70
|
71
|
t.create_date DESC limit ` + strconv.Itoa((page-1)*pageSize) + `, ` + strconv.Itoa(pageSize)
|