fix: 샘플페이지 및 프로그램목록관리 data serialze() 수정
parent
e16992c14b
commit
5547a22ccd
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue