소스 정리

main
이범준 9 months ago
parent 5db4ec386f
commit 97dd311eb6

@ -102,7 +102,7 @@ public class StngController extends ApplicationController {
String account = currentUser().getAccount(); String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute); ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");
@ -148,7 +148,7 @@ public class StngController extends ApplicationController {
String account = currentUser().getAccount(); String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute); ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
String bgPath = "files/background/"+sggCd; String bgPath = "files/background/"+sggCd;
@ -213,7 +213,7 @@ public class StngController extends ApplicationController {
String account = currentUser().getAccount(); String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute); ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");

@ -20,12 +20,6 @@ public interface GlobalStngMapper extends AbstractMapper {
*/ */
String selectBasicAmt(CrdnQuery query); String selectBasicAmt(CrdnQuery query);
/** .<br />
* @param deptCode
* @return
*/
String selectSggCd(String deptCode);
/** .<br /> /** .<br />
* @param sggCd * @param sggCd
* @return * @return

@ -99,7 +99,7 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
crdn.setTaskSeCd(taskSeCd); crdn.setTaskSeCd(taskSeCd);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
crdn.setSggCd(globalStngMapper.selectSggCd(deptCd)); crdn.setSggCd(currentUser.getOrgID());
Map<String, Object> dividedInfo = this.divideInformation(linkFileInfoList, fileGroupType); Map<String, Object> dividedInfo = this.divideInformation(linkFileInfoList, fileGroupType);
DataObject metaFileInfo = (DataObject) dividedInfo.get("metaInfo"); DataObject metaFileInfo = (DataObject) dividedInfo.get("metaInfo");

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

@ -79,7 +79,7 @@ public class Crdn03Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);

@ -123,7 +123,7 @@ public class Crdn05Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),"",""); return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),"","");
@ -159,7 +159,7 @@ public class Crdn05Controller extends ApplicationController {
String taskSeCd = hReq.getParameter("taskSeCd"); String taskSeCd = hReq.getParameter("taskSeCd");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
List<LayoutDescriptor> layoutDescriptors = crdnStngService.getLinkFileLayoutMetadata(sggCd, taskSeCd, institute, deptCd); List<LayoutDescriptor> layoutDescriptors = crdnStngService.getLinkFileLayoutMetadata(sggCd, taskSeCd, institute, deptCd);
@ -215,7 +215,7 @@ public class Crdn05Controller extends ApplicationController {
String taskSeCd = hReq.getParameter("taskSeCd"); String taskSeCd = hReq.getParameter("taskSeCd");
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
List<LayoutDescriptor> layoutDescriptors = crdnStngService.getLinkFileLayoutMetadata(sggCd, taskSeCd, institute, deptCd); List<LayoutDescriptor> layoutDescriptors = crdnStngService.getLinkFileLayoutMetadata(sggCd, taskSeCd, institute, deptCd);
@ -262,7 +262,7 @@ public class Crdn05Controller extends ApplicationController {
String institute = currentUser().getInstitute(); String institute = currentUser().getInstitute();
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
List<LayoutDescriptor> layoutDescriptors = crdnStngService.getLinkFileLayoutMetadata(sggCd, taskSeCd, institute, deptCd); List<LayoutDescriptor> layoutDescriptors = crdnStngService.getLinkFileLayoutMetadata(sggCd, taskSeCd, institute, deptCd);
@ -399,7 +399,7 @@ public class Crdn05Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
mav.addObject("stdgNmList", globalStngMapper.selectStdgNmList(sggCd)); mav.addObject("stdgNmList", globalStngMapper.selectStdgNmList(sggCd));

@ -101,7 +101,7 @@ public class Crdn06Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
if("xls".equals(query.getDownload())) { if("xls".equals(query.getDownload())) {
@ -269,7 +269,7 @@ public class Crdn06Controller extends ApplicationController {
// 법정동 // 법정동
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("stdgNmList", globalStngMapper.selectStdgNmList(sggCd)); mav.addObject("stdgNmList", globalStngMapper.selectStdgNmList(sggCd));
// 공통코드 - 위반 내역 코드 // 공통코드 - 위반 내역 코드

@ -77,7 +77,7 @@ public class Crdn07Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnStngService.getTeamList(query),"",""); return setCollectionInfo(new ModelAndView("jsonView"), crdnStngService.getTeamList(query),"","");
} }
@ -92,7 +92,7 @@ public class Crdn07Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnStngService.getRemovedTeamList(query),"",""); return setCollectionInfo(new ModelAndView("jsonView"), crdnStngService.getRemovedTeamList(query),"","");
@ -133,7 +133,7 @@ public class Crdn07Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
team.setSggCd(sggCd); team.setSggCd(sggCd);
String rtnMsg = crdnStngService.saveTeamInfo(team); String rtnMsg = crdnStngService.saveTeamInfo(team);

@ -77,7 +77,7 @@ public class Crdn08Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
if("xls".equals(query.getDownload())) { if("xls".equals(query.getDownload())) {
@ -156,7 +156,7 @@ public class Crdn08Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
exmptnVhcl.setSggCd(globalStngMapper.selectSggCd(deptCd)); exmptnVhcl.setSggCd(currentUser.getOrgID());
boolean saved = false; boolean saved = false;
@ -182,7 +182,7 @@ public class Crdn08Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
exmptnVhcl.setSggCd(globalStngMapper.selectSggCd(deptCd)); exmptnVhcl.setSggCd(currentUser.getOrgID());
boolean saved = false; boolean saved = false;

@ -114,7 +114,7 @@ public class Cvlc01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
if("xls".equals(query.getDownload())) { if("xls".equals(query.getDownload())) {
@ -280,7 +280,7 @@ public class Cvlc01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("stdgNmList", globalStngMapper.selectStdgNmList(sggCd)); mav.addObject("stdgNmList", globalStngMapper.selectStdgNmList(sggCd));
String vltnByTask = ""; String vltnByTask = "";
@ -333,7 +333,7 @@ public class Cvlc01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
crdn.setSggCd(sggCd); crdn.setSggCd(sggCd);
crdnCvlcpt.setSggCd(sggCd); crdnCvlcpt.setSggCd(sggCd);

@ -96,7 +96,7 @@ public class Cvlc02Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
if("xls".equals(query.getDownload())) { if("xls".equals(query.getDownload())) {

@ -82,7 +82,7 @@ public class Cvlc03Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
query.setSggCd(sggCd); query.setSggCd(sggCd);
if("xls".equals(query.getDownload())) { if("xls".equals(query.getDownload())) {

@ -73,7 +73,7 @@ public class Cvlc04Controller extends ApplicationController {
public ModelAndView getDmndDataList(CrdnQuery query) { public ModelAndView getDmndDataList(CrdnQuery query) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
query.setSggCd(globalStngMapper.selectSggCd(deptCd)); query.setSggCd(currentUser.getOrgID());
setFetchSize(query); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getDmndDataList(query),"",""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getDmndDataList(query),"","");
@ -92,7 +92,7 @@ public class Cvlc04Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
crdnCvlcpt.setSggCd(globalStngMapper.selectSggCd(deptCd)); crdnCvlcpt.setSggCd(currentUser.getOrgID());
boolean saved = false; boolean saved = false;

@ -77,7 +77,7 @@ public class Cvlc05Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String currentSggCd = globalStngMapper.selectSggCd(deptCd); String currentSggCd = currentUser.getOrgID();
crdnQuery.setSggCd(currentSggCd); crdnQuery.setSggCd(currentSggCd);
Map<String, Object> info = crdnCvlcptService.getCvlcptAnswerWordsInfo(crdnQuery); Map<String, Object> info = crdnCvlcptService.getCvlcptAnswerWordsInfo(crdnQuery);
@ -114,7 +114,7 @@ public class Cvlc05Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String currentSggCd = globalStngMapper.selectSggCd(deptCd); String currentSggCd = currentUser.getOrgID();
crdnCvlcpt.setSggCd(currentSggCd); crdnCvlcpt.setSggCd(currentSggCd);
String saveData = hReq.getParameter("saveData"); String saveData = hReq.getParameter("saveData");

@ -66,7 +66,7 @@ public class Cvlc06Controller extends ApplicationController {
public ModelAndView getWarningWordsList(CrdnQuery crdnQuery) { public ModelAndView getWarningWordsList(CrdnQuery crdnQuery) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String currentSggCd = globalStngMapper.selectSggCd(deptCd); String currentSggCd = currentUser.getOrgID();
crdnQuery.setSggCd(currentSggCd); crdnQuery.setSggCd(currentSggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getWarningWordsList(crdnQuery),"",""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getWarningWordsList(crdnQuery),"","");
} }
@ -84,7 +84,7 @@ public class Cvlc06Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String currentSggCd = globalStngMapper.selectSggCd(deptCd); String currentSggCd = currentUser.getOrgID();
crdnCvlcpt.setSggCd(currentSggCd); crdnCvlcpt.setSggCd(currentSggCd);
String rtnMsg = crdnCvlcptService.saveWarningWordsInfo(crdnCvlcpt); String rtnMsg = crdnCvlcptService.saveWarningWordsInfo(crdnCvlcpt);

@ -55,7 +55,11 @@ public interface FactionMapper extends AbstractMapper {
*/ */
List<DataObject> selectAllSggList(); List<DataObject> selectAllSggList();
/** .<br />
* @param deptCd
* @return
*/
String selectSggCdByDeptCd(String deptCd);
/** . /** .
* @param params * @param params

@ -146,7 +146,7 @@ public class Sprt01Controller extends ApplicationController {
String account = currentUser().getAccount(); String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute); ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010", "FIM026", "FIM054" Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010", "FIM026", "FIM054"

@ -66,7 +66,7 @@ public class Stat01Controller extends ApplicationController {
//ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); //ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
//String curDeptCode = currentUser.getDeptCode(); //String curDeptCode = currentUser.getDeptCode();
//String sggCd = globalStngMapper.selectSggCd(curDeptCode); //String sggCd = currentUser.getOrgID();
//statQuery.setSggCd(sggCd); //statQuery.setSggCd(sggCd);
List<String> codeGroup = new ArrayList<String>(); List<String> codeGroup = new ArrayList<String>();
@ -149,7 +149,7 @@ public class Stat01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");
@ -174,7 +174,7 @@ public class Stat01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");
@ -200,7 +200,7 @@ public class Stat01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");
@ -224,7 +224,7 @@ public class Stat01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");
@ -248,7 +248,7 @@ public class Stat01Controller extends ApplicationController {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode(); String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode); String sggCd = currentUser.getOrgID();
mav.addObject("sggCd", sggCd); mav.addObject("sggCd", sggCd);
DataObject sgg = statMapper.selectSggByCode(sggCd); DataObject sgg = statMapper.selectSggByCode(sggCd);
String sggNm = sgg.string("NAME"); String sggNm = sgg.string("NAME");

@ -2,28 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.crdn.dao.GlobalStngMapper"> <mapper namespace="cokr.xit.fims.crdn.dao.GlobalStngMapper">
<resultMap id="descriptorRow" type="cokr.xit.fims.crdn.receive.eqpmnt.LayoutDescriptor">
<result property="fileLayoutId" column="FILE_LAYOUT_ID" /> <!-- 파일 레이아웃 ID -->
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
<result property="instCd" column="INST_CD" /> <!-- 기관 코드 -->
<result property="deptCd" column="DEPT_CD" /> <!-- 부서 코드 -->
<result property="linkFileLocation" column="LINK_FILE_PATH" /> <!-- 연계 파일 경로 -->
<result property="fileGroup" column="DATA_FILE_SE" /> <!-- 자료 파일 구분 -->
<result property="countPerFileGroup" column="FILE_TNOCS" /> <!-- 파일 총 건수 -->
<result property="sameItemsInFileGroup" column="SAME_ITEMS" /> <!-- 동일 항목 -->
<result property="increaseItemInFileGroup" column="INCREASE_ITEM" /> <!-- 증가 항목 -->
<result property="increaseTypeInFileGroup" column="INCREASE_TYPE" /> <!-- 증가 형식 -->
<result property="fileNameLength" column="FILE_NM_SZ" /> <!-- 파일 명 크기 -->
<result property="fileNameItmes" column="FILE_NM_LAYOUT" /> <!-- 파일 명 형식 -->
<result property="fileNameSeperator" column="FILE_NM_SE_TYPE" /> <!-- 파일 명 구분 유형 -->
<result property="contentItems" column="DATA_LAYOUT1" /> <!-- 자료 형식1 -->
<result property="contentSeperator" column="DATA_SE_TYPE1" /> <!-- 자료 구분 유형1 -->
<result property="contentSecondSeperator" column="DATA_SE_TYPE2" /> <!-- 자료 구분 유형2 -->
<result property="secondSeperatorStarterItems" column="DATA_LAYOUT2" /> <!-- 자료 형식2 -->
<result property="enterpriseName" column="ENT_NM" /> <!-- 레이아웃 업체명 -->
<result property="linkEnterpriseName" column="LINK_ENT_NM" /> <!-- 연계 업체 명 -->
</resultMap>
<select id="selectBasicAmt" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="string"> <select id="selectBasicAmt" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="string">
/* 기본금액 조회(globalStngMapper.selectBasicAmt) */ /* 기본금액 조회(globalStngMapper.selectBasicAmt) */
@ -43,12 +21,6 @@ SELECT AMT
</if> </if>
</select> </select>
<select id="selectSggCd" parameterType="string" resultType="string">
/* 부서에 따른 시군구코드 조회(globalStngMapper.selectSggCd) */
SELECT SGG_CD
FROM TB_DEPT
WHERE DEPT_CD = #{deptCode}
</select>
<select id="selectStdgNmList" parameterType="string" resultType="string"> <select id="selectStdgNmList" parameterType="string" resultType="string">
/* 법정동코드 목록 조회(globalStngMapper.selectStdgNmList) */ /* 법정동코드 목록 조회(globalStngMapper.selectStdgNmList) */
@ -74,6 +46,29 @@ SELECT STDG_CD
AND SUBSTR(STDG_CD,1,5) = #{sggCd} AND SUBSTR(STDG_CD,1,5) = #{sggCd}
</select> </select>
<resultMap id="descriptorRow" type="cokr.xit.fims.crdn.receive.eqpmnt.LayoutDescriptor">
<result property="fileLayoutId" column="FILE_LAYOUT_ID" /> <!-- 파일 레이아웃 ID -->
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
<result property="instCd" column="INST_CD" /> <!-- 기관 코드 -->
<result property="deptCd" column="DEPT_CD" /> <!-- 부서 코드 -->
<result property="linkFileLocation" column="LINK_FILE_PATH" /> <!-- 연계 파일 경로 -->
<result property="fileGroup" column="DATA_FILE_SE" /> <!-- 자료 파일 구분 -->
<result property="countPerFileGroup" column="FILE_TNOCS" /> <!-- 파일 총 건수 -->
<result property="sameItemsInFileGroup" column="SAME_ITEMS" /> <!-- 동일 항목 -->
<result property="increaseItemInFileGroup" column="INCREASE_ITEM" /> <!-- 증가 항목 -->
<result property="increaseTypeInFileGroup" column="INCREASE_TYPE" /> <!-- 증가 형식 -->
<result property="fileNameLength" column="FILE_NM_SZ" /> <!-- 파일 명 크기 -->
<result property="fileNameItmes" column="FILE_NM_LAYOUT" /> <!-- 파일 명 형식 -->
<result property="fileNameSeperator" column="FILE_NM_SE_TYPE" /> <!-- 파일 명 구분 유형 -->
<result property="contentItems" column="DATA_LAYOUT1" /> <!-- 자료 형식1 -->
<result property="contentSeperator" column="DATA_SE_TYPE1" /> <!-- 자료 구분 유형1 -->
<result property="contentSecondSeperator" column="DATA_SE_TYPE2" /> <!-- 자료 구분 유형2 -->
<result property="secondSeperatorStarterItems" column="DATA_LAYOUT2" /> <!-- 자료 형식2 -->
<result property="enterpriseName" column="ENT_NM" /> <!-- 레이아웃 업체명 -->
<result property="linkEnterpriseName" column="LINK_ENT_NM" /> <!-- 연계 업체 명 -->
</resultMap>
<select id="selectLinkFileLayoutMetadata" parameterType="map" resultMap="descriptorRow"> <select id="selectLinkFileLayoutMetadata" parameterType="map" resultMap="descriptorRow">
/* 연계파일 레이아웃 정보 조회(globalStngMapper.selectLinkFileLayoutMetadata) */ /* 연계파일 레이아웃 정보 조회(globalStngMapper.selectLinkFileLayoutMetadata) */
SELECT A.FILE_LAYOUT_ID SELECT A.FILE_LAYOUT_ID

@ -118,7 +118,7 @@ SELECT S.SGG_CD <!-- 시군구 코드 -->
</sql> </sql>
<select id="selectSggs" parameterType="map" resultType="dataobject"> <select id="selectSggs" parameterType="map" resultType="dataobject">
/* 시군구 객체 가져오기(sggMapper.selectSggs) */ /* 시군구 객체 가져오기(factionMapper.selectSggs) */
<include refid="selectSgg" /> <include refid="selectSgg" />
<where> <where>
<if test="sggCd != null"> <if test="sggCd != null">
@ -131,8 +131,15 @@ SELECT S.SGG_CD <!-- 시군구 코드 -->
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
</select> </select>
<select id="selectSggCdByDeptCd" parameterType="string" resultType="string">
/* 부서에 따른 시군구코드 조회(factionMapper.selectSggCdByDeptCd) */
SELECT SGG_CD
FROM TB_DEPT
WHERE DEPT_CD = #{deptCd}
</select>
<update id="updateSgg" parameterType="map"> <update id="updateSgg" parameterType="map">
/* 시군구 설정정보 수정 (sggMapper.updateSgg) */ /* 시군구 설정정보 수정 (factionMapper.updateSgg) */
UPDATE TB_SGG UPDATE TB_SGG
SET MDFCN_DT = <include refid="utility.now" /> SET MDFCN_DT = <include refid="utility.now" />
, MDFR = #{sgg.modifiedBy} , MDFR = #{sgg.modifiedBy}

Loading…
Cancel
Save