유저정보 조회 수정

main
이범준 9 months ago
parent 4444a102bb
commit 3a58c44c03

@ -94,10 +94,7 @@ public class StngController extends ApplicationController {
ModelAndView mav = new ModelAndView("jsonView");
//출력 설정 제목
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME");
@ -140,10 +137,7 @@ public class StngController extends ApplicationController {
boolean saved = false;
if(backgroundFile != null && !backgroundFile.isEmpty() && backgroundFile.getSize() != 0) {
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
String bgPath = "files/background/"+sggCd;
@ -205,10 +199,7 @@ public class StngController extends ApplicationController {
ModelAndView mav = new ModelAndView("jsonView");
//설정 제목
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME");

@ -95,8 +95,7 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
Crdn crdn = new Crdn();
crdn.setCrdnRegSeCd("07");
crdn.setTaskSeCd(taskSeCd);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
crdn.setSggCd(currentUser.getOrgID());
Map<String, Object> dividedInfo = this.divideInformation(linkFileInfoList, fileGroupType);

@ -75,7 +75,7 @@ public class Crdn01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("jsonView");
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
List<DataObject> list = crdnStngService.getLinkFileLayoutMetadataList(query);
@ -92,7 +92,7 @@ public class Crdn01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01020-info");
mav.addObject("pageName", "crdn01020");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);

@ -91,8 +91,7 @@ public class Crdn02Controller extends ApplicationController {
}
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);

@ -73,8 +73,7 @@ public class Crdn03Controller extends ApplicationController {
query.setGridType("tagInformationUndefinedData");
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);

@ -121,8 +121,7 @@ public class Crdn05Controller extends ApplicationController {
query.setGridType("todayInsert");
query.setCurrentUserId(currentUser().getId());
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
@ -157,7 +156,7 @@ public class Crdn05Controller extends ApplicationController {
String institute = currentUser().getInstitute();
String taskSeCd = hReq.getParameter("taskSeCd");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String deptCd = currentUser.getDeptCode();
String sggCd = currentUser.getOrgID();
@ -213,7 +212,7 @@ public class Crdn05Controller extends ApplicationController {
String institute = currentUser().getInstitute();
String taskSeCd = hReq.getParameter("taskSeCd");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String deptCd = currentUser.getDeptCode();
String sggCd = currentUser.getOrgID();
@ -260,7 +259,7 @@ public class Crdn05Controller extends ApplicationController {
String taskSeCd = hReq.getParameter("taskSeCd");
String institute = currentUser().getInstitute();
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String deptCd = currentUser.getDeptCode();
String sggCd = currentUser.getOrgID();
@ -397,8 +396,7 @@ public class Crdn05Controller extends ApplicationController {
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);
List<String> stdgNmList = crdnStngMapper.selectStdgNmList(sggCd);

@ -99,8 +99,7 @@ public class Crdn06Controller extends ApplicationController {
public ModelAndView getCrackdownList(CrdnQuery query) {
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
@ -267,8 +266,7 @@ public class Crdn06Controller extends ApplicationController {
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn06020-info");
// 법정동
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
List<String> stdgNmList = crdnStngMapper.selectStdgNmList(sggCd);
mav.addObject("stdgNmList", stdgNmList);

@ -71,11 +71,10 @@ public class Crdn07Controller extends ApplicationController {
public ModelAndView getTeamList(CrdnQuery query) {
ModelAndView mav = new ModelAndView("jsonView");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnStngService.getTeamList(query),"","");
return setCollectionInfo(mav, crdnStngService.getTeamList(query),"","");
}
/** .<br />
@ -86,12 +85,11 @@ public class Crdn07Controller extends ApplicationController {
public ModelAndView getRemovedTeamList(CrdnQuery query) {
ModelAndView mav = new ModelAndView("jsonView");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnStngService.getRemovedTeamList(query),"","");
return setCollectionInfo(mav, crdnStngService.getRemovedTeamList(query),"","");
}
/** .
@ -127,8 +125,7 @@ public class Crdn07Controller extends ApplicationController {
boolean saved = false;
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
team.setSggCd(sggCd);

@ -71,8 +71,7 @@ public class Crdn08Controller extends ApplicationController {
*/
public ModelAndView getExemptionVehicleList(CrdnQuery query) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
@ -150,8 +149,7 @@ public class Crdn08Controller extends ApplicationController {
public ModelAndView createExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
ModelAndView mav = new ModelAndView("jsonView");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
exmptnVhcl.setSggCd(currentUser.getOrgID());
boolean saved = false;
@ -176,8 +174,7 @@ public class Crdn08Controller extends ApplicationController {
public ModelAndView updateExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
ModelAndView mav = new ModelAndView("jsonView");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
exmptnVhcl.setSggCd(currentUser.getOrgID());
boolean saved = false;

@ -113,8 +113,7 @@ public class Cvlc01Controller extends ApplicationController {
query.setGridType("receiptData");
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);
@ -279,8 +278,7 @@ public class Cvlc01Controller extends ApplicationController {
mav.addObject("openerPageName", hReq.getParameter("openerPageName"));
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
List<String> stdgNmList = crdnStngMapper.selectStdgNmList(sggCd);
mav.addObject("stdgNmList", stdgNmList);
@ -333,8 +331,7 @@ public class Cvlc01Controller extends ApplicationController {
public ModelAndView saveCivilComplaintProcessSection(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn) {
ModelAndView mav = new ModelAndView("jsonView");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
crdn.setSggCd(sggCd);
crdnCvlcpt.setSggCd(sggCd);

@ -90,8 +90,7 @@ public class Cvlc02Controller extends ApplicationController {
query.setGridType("answerTargetData");
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);

@ -76,8 +76,7 @@ public class Cvlc03Controller extends ApplicationController {
public ModelAndView getCivilComplaintList(CrdnQuery query) {
setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd);

@ -67,8 +67,7 @@ public class Cvlc04Controller extends ApplicationController {
* @return jsonView
*/
public ModelAndView getDmndDataList(CrdnQuery query) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
query.setSggCd(currentUser.getOrgID());
setFetchSize(query);
@ -86,8 +85,7 @@ public class Cvlc04Controller extends ApplicationController {
*/
public ModelAndView createDmndDataInfo(CrdnCvlcpt crdnCvlcpt) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
crdnCvlcpt.setSggCd(currentUser.getOrgID());
boolean saved = false;

@ -71,8 +71,7 @@ public class Cvlc05Controller extends ApplicationController {
ModelAndView mav = new ModelAndView();
mav.setViewName("jsonView");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String currentSggCd = currentUser.getOrgID();
crdnQuery.setSggCd(currentSggCd);
Map<String, Object> info = crdnCvlcptService.getCvlcptAnswerWordsInfo(crdnQuery);
@ -108,8 +107,7 @@ public class Cvlc05Controller extends ApplicationController {
public ModelAndView saveCvlcptAnswerWordsInfo(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt) {
boolean saved = false;
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String currentSggCd = currentUser.getOrgID();
crdnCvlcpt.setSggCd(currentSggCd);

@ -60,8 +60,7 @@ public class Cvlc06Controller extends ApplicationController {
* @return fims/cvlc/cvlc06010-info
*/
public ModelAndView getWarningWordsList(CrdnQuery crdnQuery) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String currentSggCd = currentUser.getOrgID();
crdnQuery.setSggCd(currentSggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getWarningWordsList(crdnQuery),"","");
@ -78,8 +77,7 @@ public class Cvlc06Controller extends ApplicationController {
public ModelAndView saveCvlcptAnswerWordsInfo(CrdnCvlcpt crdnCvlcpt) {
boolean saved = false;
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String currentSggCd = currentUser.getOrgID();
crdnCvlcpt.setSggCd(currentSggCd);

@ -138,10 +138,7 @@ public class Sprt01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01010-main");
mav.addObject("pageName", "sprt01010");
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);

@ -60,8 +60,7 @@ public class Stat01Controller extends ApplicationController {
public ModelAndView getStatistics(StatQuery statQuery) {
ModelAndView mav = new ModelAndView("jsonView");
//ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
//String curDeptCode = currentUser.getDeptCode();
//ManagedUser currentUser = (ManagedUser) currentUser().getUser();
//String sggCd = currentUser.getOrgID();
//statQuery.setSggCd(sggCd);
@ -143,8 +142,7 @@ public class Stat01Controller extends ApplicationController {
mav.setViewName("fims/stat/stat01010-main");
mav.addObject("pageName", "stat01010");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd);
@ -168,8 +166,7 @@ public class Stat01Controller extends ApplicationController {
mav.setViewName("fims/stat/stat01020-main");
mav.addObject("pageName", "stat01020");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd);
@ -194,8 +191,7 @@ public class Stat01Controller extends ApplicationController {
mav.setViewName("fims/stat/stat01030-main");
mav.addObject("pageName", "stat01030");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd);
@ -218,8 +214,7 @@ public class Stat01Controller extends ApplicationController {
mav.setViewName("fims/stat/stat01040-main");
mav.addObject("pageName", "stat01040");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd);
@ -242,8 +237,7 @@ public class Stat01Controller extends ApplicationController {
mav.setViewName("fims/stat/stat01050-main");
mav.addObject("pageName", "stat01050");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
ManagedUser currentUser = (ManagedUser) currentUser().getUser();
String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd);

Loading…
Cancel
Save