From 5547a22ccd1916d74c213cb72c860d0a3753e369 Mon Sep 17 00:00:00 2001 From: Kurt92 Date: Fri, 4 Nov 2022 11:21:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=83=98=ED=94=8C=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=B0=8F=20=ED=94=84=EB=A1=9C=EA=B7=B8=EB=9E=A8?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=EA=B4=80=EB=A6=AC=20data=20serialze()=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/biz/rt/web/Rt0100Controller.java | 2 +- .../{sampleMapper.java => SampleMapper.java} | 8 +++--- .../biz/sample/service/SampleService.java | 11 ++++++++ .../service/impl/SampleServiceImpl.java | 27 +++++++++++++++++++ .../service/impl/sampleServiceImpl.java | 27 ------------------- .../biz/sample/service/sampleService.java | 11 -------- ...eController.java => SampleController.java} | 22 +++++++-------- .../service/impl/ProgramMngServiceImpl.java | 1 + .../biz/mng/menu/mngProgramMgtPopup.jsp | 4 +-- 9 files changed, 57 insertions(+), 56 deletions(-) rename src/main/java/kr/xit/fims/biz/sample/mapper/{sampleMapper.java => SampleMapper.java} (52%) create mode 100644 src/main/java/kr/xit/fims/biz/sample/service/SampleService.java create mode 100644 src/main/java/kr/xit/fims/biz/sample/service/impl/SampleServiceImpl.java delete mode 100644 src/main/java/kr/xit/fims/biz/sample/service/impl/sampleServiceImpl.java delete mode 100644 src/main/java/kr/xit/fims/biz/sample/service/sampleService.java rename src/main/java/kr/xit/fims/biz/sample/web/{sampleController.java => SampleController.java} (52%) diff --git a/src/main/java/kr/xit/fims/biz/rt/web/Rt0100Controller.java b/src/main/java/kr/xit/fims/biz/rt/web/Rt0100Controller.java index eb4bcabe..b68c9aca 100644 --- a/src/main/java/kr/xit/fims/biz/rt/web/Rt0100Controller.java +++ b/src/main/java/kr/xit/fims/biz/rt/web/Rt0100Controller.java @@ -16,7 +16,7 @@ import lombok.AllArgsConstructor; @AllArgsConstructor @Controller @RequestMapping(value = "/fims/biz/rt") -public class Rt0100Controler { +public class Rt0100Controller { private final Rt0100Service service; @GetMapping(value = "/rt0100Form") diff --git a/src/main/java/kr/xit/fims/biz/sample/mapper/sampleMapper.java b/src/main/java/kr/xit/fims/biz/sample/mapper/SampleMapper.java similarity index 52% rename from src/main/java/kr/xit/fims/biz/sample/mapper/sampleMapper.java rename to src/main/java/kr/xit/fims/biz/sample/mapper/SampleMapper.java index f553ea1d..537a0b17 100644 --- a/src/main/java/kr/xit/fims/biz/sample/mapper/sampleMapper.java +++ b/src/main/java/kr/xit/fims/biz/sample/mapper/SampleMapper.java @@ -1,4 +1,4 @@ -package kr.xit.fims.biz.rt.mapper; +package kr.xit.fims.biz.sample.mapper; import java.util.List; import java.util.Map; @@ -8,8 +8,8 @@ import org.apache.ibatis.session.RowBounds; import egovframework.rte.psl.dataaccess.mapper.Mapper; @Mapper -public interface Rt0100Mapper { - List> selectRt0100List(Map paraMap, RowBounds rowBounds); +public interface SampleMapper { + List> selectSampleList(Map paraMap, RowBounds rowBounds); - Map selectRt0100(); + Map selectSample(); } diff --git a/src/main/java/kr/xit/fims/biz/sample/service/SampleService.java b/src/main/java/kr/xit/fims/biz/sample/service/SampleService.java new file mode 100644 index 00000000..4f1dcd3c --- /dev/null +++ b/src/main/java/kr/xit/fims/biz/sample/service/SampleService.java @@ -0,0 +1,11 @@ +package kr.xit.fims.biz.sample.service; + +import java.util.List; +import java.util.Map; + +import org.apache.ibatis.session.RowBounds; + +public interface SampleService { + List> findSampleList(Map paraMap, RowBounds pagingInfo); + Map findSample(); +} diff --git a/src/main/java/kr/xit/fims/biz/sample/service/impl/SampleServiceImpl.java b/src/main/java/kr/xit/fims/biz/sample/service/impl/SampleServiceImpl.java new file mode 100644 index 00000000..f9d51a07 --- /dev/null +++ b/src/main/java/kr/xit/fims/biz/sample/service/impl/SampleServiceImpl.java @@ -0,0 +1,27 @@ +package kr.xit.fims.biz.sample.service.impl; + +import java.util.List; +import java.util.Map; + +import kr.xit.fims.biz.sample.mapper.SampleMapper; +import kr.xit.fims.biz.sample.service.SampleService; +import org.apache.ibatis.session.RowBounds; +import org.springframework.stereotype.Service; + +import lombok.AllArgsConstructor; + +@AllArgsConstructor +@Service +public class SampleServiceImpl implements SampleService { + private final SampleMapper mapper; + + @Override + public List> findSampleList(Map paraMap, RowBounds rowBounds) { + return mapper.selectSampleList(paraMap, rowBounds); + } + + @Override + public Map findSample() { + return mapper.selectSample(); + } +} diff --git a/src/main/java/kr/xit/fims/biz/sample/service/impl/sampleServiceImpl.java b/src/main/java/kr/xit/fims/biz/sample/service/impl/sampleServiceImpl.java deleted file mode 100644 index 6a6964e6..00000000 --- a/src/main/java/kr/xit/fims/biz/sample/service/impl/sampleServiceImpl.java +++ /dev/null @@ -1,27 +0,0 @@ -package kr.xit.fims.biz.rt.service.impl; - -import java.util.List; -import java.util.Map; - -import org.apache.ibatis.session.RowBounds; -import org.springframework.stereotype.Service; - -import kr.xit.fims.biz.rt.mapper.Rt0100Mapper; -import kr.xit.fims.biz.rt.service.Rt0100Service; -import lombok.AllArgsConstructor; - -@AllArgsConstructor -@Service -public class Rt0100ServiceImpl implements Rt0100Service { - private final Rt0100Mapper mapper; - - @Override - public List> findRt0100List(Map paraMap, RowBounds rowBounds) { - return mapper.selectRt0100List(paraMap, rowBounds); - } - - @Override - public Map findRt0100() { - return mapper.selectRt0100(); - } -} diff --git a/src/main/java/kr/xit/fims/biz/sample/service/sampleService.java b/src/main/java/kr/xit/fims/biz/sample/service/sampleService.java deleted file mode 100644 index c7a0123b..00000000 --- a/src/main/java/kr/xit/fims/biz/sample/service/sampleService.java +++ /dev/null @@ -1,11 +0,0 @@ -package kr.xit.fims.biz.rt.service; - -import java.util.List; -import java.util.Map; - -import org.apache.ibatis.session.RowBounds; - -public interface Rt0100Service { - List> findRt0100List(Map paraMap, RowBounds pagingInfo); - Map findRt0100(); -} diff --git a/src/main/java/kr/xit/fims/biz/sample/web/sampleController.java b/src/main/java/kr/xit/fims/biz/sample/web/SampleController.java similarity index 52% rename from src/main/java/kr/xit/fims/biz/sample/web/sampleController.java rename to src/main/java/kr/xit/fims/biz/sample/web/SampleController.java index eb4bcabe..e22a22d9 100644 --- a/src/main/java/kr/xit/fims/biz/sample/web/sampleController.java +++ b/src/main/java/kr/xit/fims/biz/sample/web/SampleController.java @@ -1,36 +1,36 @@ -package kr.xit.fims.biz.rt.web; +package kr.xit.fims.biz.sample.web; import java.util.Map; +import kr.xit.fims.biz.sample.service.SampleService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; -import kr.xit.fims.biz.rt.service.Rt0100Service; import kr.xit.framework.core.model.ResultResponse; import kr.xit.framework.support.mybatis.MybatisUtils; import lombok.AllArgsConstructor; @AllArgsConstructor @Controller -@RequestMapping(value = "/fims/biz/rt") -public class Rt0100Controler { - private final Rt0100Service service; +@RequestMapping(value = "/fims/biz/sample") +public class SampleController { + private final SampleService sampleService; - @GetMapping(value = "/rt0100Form") - public void rt0100Form(){ + @GetMapping(value = "/sampleForm") + public void sampleForm(){ } @GetMapping(value = "/findRt0100List") - public ModelAndView findRt0100List(@RequestParam Map paraMap){ - return ResultResponse.of(service.findRt0100List(paraMap, MybatisUtils.getPagingInfo(paraMap))); + public ModelAndView findSampleList(@RequestParam Map paraMap){ + return ResultResponse.of(sampleService.findSampleList(paraMap, MybatisUtils.getPagingInfo(paraMap))); } @GetMapping(value = "/findRt0100") - public ModelAndView findRt0100(){ - return ResultResponse.of(service.findRt0100()); + public ModelAndView findSample(){ + return ResultResponse.of(sampleService.findSample()); } } diff --git a/src/main/java/kr/xit/framework/biz/mng/menu/service/impl/ProgramMngServiceImpl.java b/src/main/java/kr/xit/framework/biz/mng/menu/service/impl/ProgramMngServiceImpl.java index bc230a23..dfcb8b8d 100644 --- a/src/main/java/kr/xit/framework/biz/mng/menu/service/impl/ProgramMngServiceImpl.java +++ b/src/main/java/kr/xit/framework/biz/mng/menu/service/impl/ProgramMngServiceImpl.java @@ -35,6 +35,7 @@ public class ProgramMngServiceImpl implements ProgramMgtService { @Override public int addProgram(final ProgramMngVO vo) { + log.info("program name check : " + vo.getProgrmFileNm()); return programMngMapper.insertProgram(vo); } diff --git a/src/main/webapp/WEB-INF/jsp/framework/biz/mng/menu/mngProgramMgtPopup.jsp b/src/main/webapp/WEB-INF/jsp/framework/biz/mng/menu/mngProgramMgtPopup.jsp index e5b6fb8a..c19ca723 100644 --- a/src/main/webapp/WEB-INF/jsp/framework/biz/mng/menu/mngProgramMgtPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/framework/biz/mng/menu/mngProgramMgtPopup.jsp @@ -109,7 +109,7 @@ if(confirm("저장 하시겠습니까?")){ cmmAjax({ url: '' - ,data: document.getElementById("progrmMngVO").serialize() + ,data: $('#progrmMngVO').serialize() ,success: () => { window.opener.callBackSearch(); window.close(); @@ -125,7 +125,7 @@ if(confirm("변경 하시겠습니까?")){ cmmAjax({ url: '' - ,data: document.getElementById("progrmMngVO").serialize() + ,data: $('#progrmMngVO').serialize() ,success: () => { window.opener.callBackSearch(); window.close();