Commit eda68dc2 by 张祺

修改查询顺序

parent 5d91bb6c
...@@ -79,12 +79,18 @@ public class ExcelTempCtrl { ...@@ -79,12 +79,18 @@ public class ExcelTempCtrl {
List<RoleRefUserModel> users = new ArrayList<>(); List<RoleRefUserModel> users = new ArrayList<>();
List<JSONObject> orgs = List<JSONObject> orgs =
systemAuthService.getOrgByNos(objIds); systemAuthService.getOrgByNos(objIds);
for (String oid : objIds) {
for (JSONObject jo : orgs) { for (JSONObject jo : orgs) {
String id = jo.getString("no");
if (oid.equals(id)) {
AuthModel authModel = new AuthModel(); AuthModel authModel = new AuthModel();
authModel.setObjType(Constants.OBJ_TYPE_ORG); authModel.setObjType(Constants.OBJ_TYPE_ORG);
authModel.setName(jo.getString("name")); authModel.setName(jo.getString("name"));
authModel.setId(jo.getString("no")); authModel.setId(id);
list.add(authModel); list.add(authModel);
break;
}
}
} }
break; break;
case 2: case 2:
......
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