|
|
@@ -176,8 +176,9 @@ public class task2 extends Controller {
|
|
|
|
|
|
querySQL = SQLFactory.createQuerySQL(this, "sys_hr", "userid", "hrid", "name")
|
|
|
.setTableAlias("t1");
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sys_users", "t2", "t2.userid=t1.userid ","accountno");
|
|
|
querySQL.setSiteid(siteid);
|
|
|
- querySQL.setWhere("status=0 and userid>0");
|
|
|
+ querySQL.setWhere("t1.status=0 and t1.userid>0");
|
|
|
if (userInfo.isSaler()) {
|
|
|
querySQL.setWhere("t1.hrid", hrids);
|
|
|
}
|