Commit f2e6cae8 by 王昆

gbs

parent cf5353aa
......@@ -59,7 +59,6 @@ class UserDao extends Dao {
sql.push("SELECT");
sql.push("count(1) as num");
sql.push("FROM uc_user t1");
sql.push("INNER JOIN uc_user_info t2 ON t1.id = t2.id");
sql.push("WHERE t1.deleted_at IS NULL");
this.setCondition(sql, params);
......@@ -77,10 +76,8 @@ class UserDao extends Dao {
var sql = [];
sql.push("SELECT");
sql.push("t1.*,");
sql.push("t2.mobile, t2.realName");
sql.push("t1.*");
sql.push("FROM uc_user t1");
sql.push("INNER JOIN uc_user_info t2 ON t1.id = t2.id");
sql.push("WHERE t1.deleted_at IS NULL");
this.setCondition(sql, params);
......@@ -111,11 +108,11 @@ class UserDao extends Dao {
}
if (params.mobile) {
sql.push("AND t2.mobile LIKE :mobile");
sql.push("AND t1.mobile LIKE :mobile");
}
if (params.realName) {
sql.push("AND t2.realName LIKE :realName");
sql.push("AND t1.realName LIKE :realName");
}
if (params.uctype) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment