refactor: caseMap 적용

main
Jonguk. Lim 2 years ago
parent e217da557e
commit e607970015

@ -16,10 +16,10 @@ import org.apache.ibatis.session.RowBounds;
public interface Rt0200Mapper {
// 목록조회
public List<Rt0200VO> findList(Map<String, Object> map);
public List<Map<String,Object>> findList(Map<String, Object> map);
// 목록조회 (페이징)
public List<Rt0200VO> findList(Map<String, Object> map, RowBounds rowBounds);
public List<Map<String,Object>> findList(Map<String, Object> map, RowBounds rowBounds);
public List<Rt0200VO> findSndngProcessSttus();
}

@ -4,14 +4,13 @@ package kr.xit.fims.biz.rt.rt0200.service;
import kr.xit.fims.biz.cmm.FimsServiceStrategy;
import kr.xit.fims.biz.rt.rt0200.model.Rt0200VO;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
public interface Rt0200Service extends FimsServiceStrategy<Rt0200VO, Map<String,Object>> {
public List<Rt0200VO> findList(Map<String, Object> paramMap, RowBounds rowBounds);
public interface Rt0200Service {
public List<Map<String,Object>> findList(Map<String, Object> paramMap, RowBounds rowBounds);
public List<Rt0200VO> findSndngProcessSttus();
}

@ -8,8 +8,6 @@ import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Service;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -20,32 +18,27 @@ public class Rt0200ServiceImpl implements Rt0200Service {
private final Rt0200Mapper rt0200Mapper;
@Override
public List<Rt0200VO> findList(Map<String, Object> paramMap, RowBounds rowBounds) {
public List<Map<String,Object>> findList(Map<String, Object> paramMap, RowBounds rowBounds) {
return rt0200Mapper.findList(paramMap, rowBounds);
}
@Override
public Rt0200VO findView(Rt0200VO vo) {
return null;
}
@Override
public void addProc(Rt0200VO vo) {
}
@Override
public void modifyProc(Rt0200VO vo) {
}
@Override
public void removeProc(Rt0200VO vo) {
}
@Override
public List<Rt0200VO> findSndngProcessSttus() {
return null;
}

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.fims.biz.rt.rt0200.mapper.Rt0200Mapper">
<select id="findList" parameterType="map" resultType="kr.xit.fims.biz.rt.rt0200.model.Rt0200VO">
<select id="findList" parameterType="map" resultType="caseMap">
/* Rt0200-mysql-mapper|findList-단속자료현황 조회|julim */
SELECT TR.vhcle_no
, TON.owner_nm
@ -81,24 +80,7 @@
<insert id="addProc">
/** SendRqstMngMapper.addProc */
/** 예약관리 등록 조회 */
</insert>
<update id="modifyProc">
/** SendRqstMngMapper.modifyProc */
/** 예약관리 수정 조회 */
</update>
<delete id="removeProc">
/** SendRqstMngMapper.removeProc */
/** 예약관리 삭제 조회 */
</delete>
<select id="findSndngProcessSttus" resultType="kr.xit.fims.biz.rt.rt0200.model.Rt0200VO">
SELECT CODE AS SEARCH_CODE

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.mapper.ProgramMngMapper">
<sql id="findList_SELECT">

Loading…
Cancel
Save