|
@@ -95,7 +95,7 @@ public class PhoneBook2 extends Controller {
|
|
|
|
|
|
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sys_phonebook"
|
|
|
- ,"sys_phonebookid","name","qq","wechatnum","phonenumber","remarks").setTableAlias("t1");
|
|
|
+ , "sys_phonebookid", "name", "qq", "wechatnum", "phonenumber", "remarks").setTableAlias("t1");
|
|
|
querySQL.addJoinTable(JOINTYPE.inner, "sys_phonebookgroup", "t2", "t2.sys_phonebookgroupid=t1.sys_phonebookgroupid and t2.siteid=t1.siteid", "groupname");
|
|
|
querySQL.setWhere("t2.classid", 1);
|
|
|
querySQL.setSiteid(siteid);
|
|
@@ -112,4 +112,23 @@ public class PhoneBook2 extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|
|
|
+ @API(title = "通讯录分组列表", apiversion = R.ID20240516150902.v1.class)
|
|
|
+ public String phonebookgrouplist() throws YosException {
|
|
|
+
|
|
|
+ if (pageSorting.equals("''")) {
|
|
|
+ pageSorting = "t1.sequence";
|
|
|
+ }
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sys_phonebookgroup").setTableAlias("t1");
|
|
|
+ querySQL.setWhere("classid", 1);
|
|
|
+ querySQL.setWhere("isenable", 1);
|
|
|
+ querySQL.setSiteid(siteid);
|
|
|
+ querySQL.setOrderBy(pageSorting);
|
|
|
+ Rows rows = querySQL.query();
|
|
|
+
|
|
|
+
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|