fix: 샘플페이지 및 프로그램목록관리 data serialze() 수정

main
Kurt92 2 years ago
parent e16992c14b
commit 5547a22ccd

@ -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")

@ -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<Map<String, Object>> selectRt0100List(Map<String, Object> paraMap, RowBounds rowBounds);
public interface SampleMapper {
List<Map<String, Object>> selectSampleList(Map<String, Object> paraMap, RowBounds rowBounds);
Map<String, Object> selectRt0100();
Map<String, Object> selectSample();
}

@ -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<Map<String, Object>> findSampleList(Map<String, Object> paraMap, RowBounds pagingInfo);
Map<String, Object> findSample();
}

@ -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<Map<String, Object>> findSampleList(Map<String, Object> paraMap, RowBounds rowBounds) {
return mapper.selectSampleList(paraMap, rowBounds);
}
@Override
public Map<String, Object> findSample() {
return mapper.selectSample();
}
}

@ -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<Map<String, Object>> findRt0100List(Map<String, Object> paraMap, RowBounds rowBounds) {
return mapper.selectRt0100List(paraMap, rowBounds);
}
@Override
public Map<String, Object> findRt0100() {
return mapper.selectRt0100();
}
}

@ -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<Map<String, Object>> findRt0100List(Map<String, Object> paraMap, RowBounds pagingInfo);
Map<String, Object> findRt0100();
}

@ -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<String,Object> paraMap){
return ResultResponse.of(service.findRt0100List(paraMap, MybatisUtils.getPagingInfo(paraMap)));
public ModelAndView findSampleList(@RequestParam Map<String,Object> 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());
}
}

@ -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);
}

@ -109,7 +109,7 @@
if(confirm("저장 하시겠습니까?")){
cmmAjax({
url: '<c:url value="/framework/biz/mng/menu/addProgram.do"/>'
,data: document.getElementById("progrmMngVO").serialize()
,data: $('#progrmMngVO').serialize()
,success: () => {
window.opener.callBackSearch();
window.close();
@ -125,7 +125,7 @@
if(confirm("변경 하시겠습니까?")){
cmmAjax({
url: '<c:url value="/framework/biz/mng/menu/modifyProgram.do"/>'
,data: document.getElementById("progrmMngVO").serialize()
,data: $('#progrmMngVO').serialize()
,success: () => {
window.opener.callBackSearch();
window.close();

Loading…
Cancel
Save