|
@@ -77,9 +77,11 @@ public class RoleOptionLimit extends Controller {
|
|
|
|
|
|
@API(title = "角色选项权限-列表", apiversion = R.ID20231201145502.v1.class)
|
|
|
public String list() throws YosException {
|
|
|
+ Long roleid = content.getLongValue("roleid");
|
|
|
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "角色选项限制查询列表", pageSize, pageNumber, pageSorting);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
+ sqlFactory.addParameter("roleid", roleid);
|
|
|
Rows rows = sqlFactory.runSqlQuery(dbConnect);
|
|
|
|
|
|
String sql = "SELECT distinct optiontypeid,value from sys_optiontypemx WHERE optiontypeid in " + rows.toArrayList("optiontypeid");
|
|
@@ -88,7 +90,6 @@ public class RoleOptionLimit extends Controller {
|
|
|
for (Row row : rows) {
|
|
|
row.put("optiontypemx", optiontypemxMap.getOrDefault(row.getString("optiontypeid"), new Rows()).toArray("value"));
|
|
|
Long optiontypeid = row.getLong("optiontypeid");
|
|
|
- Long roleid = row.getLong("roleid");
|
|
|
Rows valuerows = dbConnect.runSqlQuery("SELECT `value` from sys_role_optionlimit WHERE roleid=" + roleid + " and optiontypeid=" + optiontypeid);
|
|
|
row.put("values", valuerows.toArray("value"));
|
|
|
}
|