|
|
@ -104,10 +104,15 @@ public class UserController<U extends User> extends AbstractController {
|
|
|
|
boolean json = !isEmpty(userID) && jsonResponse();
|
|
|
|
boolean json = !isEmpty(userID) && jsonResponse();
|
|
|
|
String
|
|
|
|
String
|
|
|
|
viewName = json ? "jsonView" : "base/user/user-info",
|
|
|
|
viewName = json ? "jsonView" : "base/user/user-info",
|
|
|
|
|
|
|
|
orgID = currentUser().getOrgID(),
|
|
|
|
institute = currentUser().getInstitute();
|
|
|
|
institute = currentUser().getInstitute();
|
|
|
|
List<DataObject>
|
|
|
|
List<DataObject>
|
|
|
|
sggs = sggDeptService.getSigunguList(new SigunguQuery()),
|
|
|
|
sggs = sggDeptService.getSigunguList(new SigunguQuery()),
|
|
|
|
depts = sggDeptService.getDepartmentList(new DepartmentQuery().setInstCode(institute));
|
|
|
|
depts = sggDeptService.getDepartmentList(
|
|
|
|
|
|
|
|
new DepartmentQuery()
|
|
|
|
|
|
|
|
.setSggID(orgID)
|
|
|
|
|
|
|
|
.setInstCode(institute)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (!isEmpty(userID)) {
|
|
|
|
if (!isEmpty(userID)) {
|
|
|
|
DataObject userInfo = userService.getUserInfo(userID);
|
|
|
|
DataObject userInfo = userService.getUserInfo(userID);
|
|
|
@ -115,11 +120,13 @@ public class UserController<U extends User> extends AbstractController {
|
|
|
|
.addObject("userInfo", json ? userInfo : toJson(userInfo))
|
|
|
|
.addObject("userInfo", json ? userInfo : toJson(userInfo))
|
|
|
|
.addObject("sggs", json ? sggs : toJson(sggs))
|
|
|
|
.addObject("sggs", json ? sggs : toJson(sggs))
|
|
|
|
.addObject("depts", json ? depts : toJson(depts))
|
|
|
|
.addObject("depts", json ? depts : toJson(depts))
|
|
|
|
|
|
|
|
.addObject("orgID", orgID)
|
|
|
|
.addObject("institute", institute);
|
|
|
|
.addObject("institute", institute);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return new ModelAndView("base/user/user-info")
|
|
|
|
return new ModelAndView("base/user/user-info")
|
|
|
|
.addObject("sggs", toJson(sggs))
|
|
|
|
.addObject("sggs", toJson(sggs))
|
|
|
|
.addObject("depts", toJson(depts))
|
|
|
|
.addObject("depts", toJson(depts))
|
|
|
|
|
|
|
|
.addObject("orgID", orgID)
|
|
|
|
.addObject("institute", institute);
|
|
|
|
.addObject("institute", institute);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|