diff --git a/src/main/java/kr/xit/fims/biz/rt/mapper/IRt0300Mapper.java b/src/main/java/kr/xit/fims/biz/rt/mapper/IRt0300Mapper.java index 8f2ff36c..c84ee9aa 100644 --- a/src/main/java/kr/xit/fims/biz/rt/mapper/IRt0300Mapper.java +++ b/src/main/java/kr/xit/fims/biz/rt/mapper/IRt0300Mapper.java @@ -7,6 +7,7 @@ import org.apache.ibatis.session.RowBounds; import egovframework.rte.psl.dataaccess.mapper.Mapper; +@SuppressWarnings("MybatisXMapperMethodInspection") @Mapper public interface IRt0300Mapper { List> selectRt0300List(Map paraMap, RowBounds rowBounds); diff --git a/src/main/java/kr/xit/fims/biz/sample/mapper/ISample2Mapper.java b/src/main/java/kr/xit/fims/biz/sample/mapper/ISample2Mapper.java new file mode 100644 index 00000000..fa73060d --- /dev/null +++ b/src/main/java/kr/xit/fims/biz/sample/mapper/ISample2Mapper.java @@ -0,0 +1,15 @@ +package kr.xit.fims.biz.sample.mapper; + +import egovframework.rte.psl.dataaccess.mapper.Mapper; +import org.apache.ibatis.session.RowBounds; + +import java.util.List; +import java.util.Map; + +@Mapper +public interface ISample2Mapper { + + List> selectSampleList(Map paraMap, RowBounds rowBounds); + + +} diff --git a/src/main/java/kr/xit/fims/biz/sample/service/ISample2Service.java b/src/main/java/kr/xit/fims/biz/sample/service/ISample2Service.java new file mode 100644 index 00000000..1f643766 --- /dev/null +++ b/src/main/java/kr/xit/fims/biz/sample/service/ISample2Service.java @@ -0,0 +1,11 @@ +package kr.xit.fims.biz.sample.service; + +import org.apache.ibatis.session.RowBounds; + +import java.util.List; +import java.util.Map; + +public interface ISample2Service { + + List> findSampleList(Map paraMap, RowBounds pagingInfo); +} diff --git a/src/main/java/kr/xit/fims/biz/sample/service/Sample2Service.java b/src/main/java/kr/xit/fims/biz/sample/service/Sample2Service.java new file mode 100644 index 00000000..d0ce553f --- /dev/null +++ b/src/main/java/kr/xit/fims/biz/sample/service/Sample2Service.java @@ -0,0 +1,21 @@ +package kr.xit.fims.biz.sample.service; + +import kr.xit.fims.biz.sample.mapper.ISample2Mapper; +import lombok.AllArgsConstructor; +import org.apache.ibatis.session.RowBounds; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +@Service +@AllArgsConstructor +public class Sample2Service implements ISample2Service{ + + private final ISample2Mapper mapper; + @Override + public List> findSampleList(Map paraMap, RowBounds rowBounds) { + + return mapper.selectSampleList(paraMap, rowBounds); + } +} diff --git a/src/main/java/kr/xit/fims/biz/sample/web/Sample2Controller.java b/src/main/java/kr/xit/fims/biz/sample/web/Sample2Controller.java new file mode 100644 index 00000000..fd128cec --- /dev/null +++ b/src/main/java/kr/xit/fims/biz/sample/web/Sample2Controller.java @@ -0,0 +1,34 @@ +package kr.xit.fims.biz.sample.web; + + +import kr.xit.fims.biz.sample.service.ISample2Service; +import kr.xit.fims.biz.sample.service.ISampleService; +import kr.xit.fims.biz.sample.service.Sample2Service; +import kr.xit.framework.core.model.ResultResponse; +import kr.xit.framework.support.mybatis.MybatisUtils; +import lombok.AllArgsConstructor; +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 java.util.Map; + +@AllArgsConstructor +@Controller +@RequestMapping(value = "/fims/biz/sample") +public class Sample2Controller { + + private final ISample2Service sample2Service; + + @GetMapping(value = "/sampleForm2") + public void sampleForm(){ + } + + @GetMapping(value = "/findSampleList") + public ModelAndView findSampleList(@RequestParam Map paraMap){ + + return ResultResponse.of(sample2Service.findSampleList(paraMap, MybatisUtils.getPagingInfo(paraMap))); + } +} 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 index fa3c0638..bda8c8e1 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 @@ -21,7 +21,6 @@ public class SampleController { @GetMapping(value = "/sampleForm") public void sampleForm(){ - } @GetMapping(value = "/findRt0100List") diff --git a/src/main/resources/sqlmapper/biz/sample/sample2-mysql-mapper.xml b/src/main/resources/sqlmapper/biz/sample/sample2-mysql-mapper.xml new file mode 100644 index 00000000..2fe2320a --- /dev/null +++ b/src/main/resources/sqlmapper/biz/sample/sample2-mysql-mapper.xml @@ -0,0 +1,27 @@ + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/sample/sample.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/sample/sampleForm.jsp similarity index 87% rename from src/main/webapp/WEB-INF/jsp/fims/biz/sample/sample.jsp rename to src/main/webapp/WEB-INF/jsp/fims/biz/sample/sampleForm.jsp index d0df62c3..fd257b61 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/sample/sample.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/sample/sampleForm.jsp @@ -56,24 +56,9 @@
    - - -
  • - - - - - - - - - - - -
전체 ㅣ
@@ -102,11 +87,14 @@
+ - - + + <%-- + +
+
+
    +
  • + +
  • +
+
전체 ㅣ
+
+
+
+ + + + + \ No newline at end of file