refactor: sevice method transaction annotation 방식으로 적용

main
Jonguk. Lim 2 years ago
parent f6a16de715
commit e18f2d6f12

@ -1,4 +1,4 @@
package kr.xit.fims.biz.cmm; package kr.xit.fims.biz;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;

@ -1,53 +0,0 @@
package kr.xit.fims.biz.cmm;
import java.sql.SQLException;
import java.util.List;
import org.apache.ibatis.session.RowBounds;
public interface FimsMapperStrategy<T, P> {
/**
* <pre> : </pre>
* @param searchVO
* @return
* @throws SQLException List<T>
* @author:
* @date: 2022. 9. 14.
*/
List<T> findList(P param, RowBounds rowBounds);
/**
* <pre> : </pre>
* @param searchVO
* @return
* @throws SQLException T
* @author:
* @date: 2022. 9. 14.
*/
T findView(T vo);
/**
* <pre> : </pre>
* @param vo void
* @author:
* @date: 2022. 9. 14.
*/
void addProc(T vo);
/**
* <pre> : </pre>
* @param vo void
* @author:
* @date: 2022. 9. 14.
*/
void modifyProc(T vo);
/**
* <pre> : </pre>
* @param vo void
* @author:
* @date: 2022. 9. 14.
*/
void removeProc(T vo);
}

@ -1,19 +0,0 @@
package kr.xit.fims.biz.cmm;
import java.sql.SQLException;
import java.util.List;
import org.apache.ibatis.session.RowBounds;
public interface FimsServiceStrategy<T, P> {
List<T> findList(P searchVO, RowBounds rowBounds) throws SQLException;
T findView(T vo);
void addProc(T vo);
void modifyProc(T vo);
void removeProc(T vo);
}

@ -1,10 +1,7 @@
package kr.xit.fims.biz.cmm.fimsTotalPopup.mapper; package kr.xit.fims.biz.cmm.fimsTotalPopup.mapper;
import egovframework.rte.psl.dataaccess.mapper.Mapper; import egovframework.rte.psl.dataaccess.mapper.Mapper;
import kr.xit.fims.biz.cmm.FimsMapperStrategy;
import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupSearchVO;
import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO; import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO;
import org.apache.ibatis.session.RowBounds;
@Mapper @Mapper
public interface FimsTotalPopupMapper { public interface FimsTotalPopupMapper {

@ -13,14 +13,17 @@ public class FimsTotalPopupService implements IFimsTotalPopupService {
private final FimsTotalPopupMapper fimsTotalPopupMapper; private final FimsTotalPopupMapper fimsTotalPopupMapper;
@Override @Override
@Transactional(readOnly = true)
public FimsTotalPopupVO findTotalView(FimsTotalPopupVO vo) { public FimsTotalPopupVO findTotalView(FimsTotalPopupVO vo) {
return fimsTotalPopupMapper.findTotalView(vo); return fimsTotalPopupMapper.findTotalView(vo);
} }
@Override @Override
@Transactional
public void addProc(FimsTotalPopupVO vo){ public void addProc(FimsTotalPopupVO vo){
fimsTotalPopupMapper.addProc(vo); fimsTotalPopupMapper.addProc(vo);
} }
@Override @Override
@Transactional
public void modifyProc(FimsTotalPopupVO vo) { public void modifyProc(FimsTotalPopupVO vo) {
@ -39,6 +42,7 @@ public class FimsTotalPopupService implements IFimsTotalPopupService {
@Override @Override
@Transactional
public void removeProc(FimsTotalPopupVO vo) { public void removeProc(FimsTotalPopupVO vo) {
//단속정보 삭제 //단속정보 삭제

@ -1,6 +1,6 @@
package kr.xit.fims.biz.cmm.fimsTotalPopup.web; package kr.xit.fims.biz.cmm.fimsTotalPopup.web;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.FimsConst;
import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO; import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO;
import kr.xit.fims.biz.cmm.fimsTotalPopup.service.IFimsTotalPopupService; import kr.xit.fims.biz.cmm.fimsTotalPopup.service.IFimsTotalPopupService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
@ -11,7 +11,6 @@ import kr.xit.framework.support.util.constants.MessageKey;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;

@ -17,7 +17,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.FimsConst;
import kr.xit.fims.biz.ec.mapper.IEcCtznSttemntMapper; import kr.xit.fims.biz.ec.mapper.IEcCtznSttemntMapper;
import kr.xit.fims.biz.ec.mapper.IEcNatlNewspaperMapper; import kr.xit.fims.biz.ec.mapper.IEcNatlNewspaperMapper;
import kr.xit.fims.biz.ec.model.CtznSttemntDTO; import kr.xit.fims.biz.ec.model.CtznSttemntDTO;

@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.FimsConst;
import kr.xit.fims.biz.ec.service.IEc0100Service; import kr.xit.fims.biz.ec.service.IEc0100Service;
import kr.xit.framework.biz.mng.menu.model.ProgramMngVO; import kr.xit.framework.biz.mng.menu.model.ProgramMngVO;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
@ -18,7 +18,6 @@ import kr.xit.framework.support.mybatis.MybatisUtils;
import kr.xit.framework.support.util.AjaxMessageMapRenderer; import kr.xit.framework.support.util.AjaxMessageMapRenderer;
import kr.xit.framework.support.util.Checks; import kr.xit.framework.support.util.Checks;
import kr.xit.framework.support.util.constants.MessageKey; import kr.xit.framework.support.util.constants.MessageKey;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor @RequiredArgsConstructor

@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.FimsConst;
import kr.xit.fims.biz.ec.model.EcNatlNewspaperRcvReqDTO; import kr.xit.fims.biz.ec.model.EcNatlNewspaperRcvReqDTO;
import kr.xit.fims.biz.ec.service.IEcNatlNewspaperService; import kr.xit.fims.biz.ec.service.IEcNatlNewspaperService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;

@ -1,9 +1,8 @@
package kr.xit.fims.biz.rt.web; package kr.xit.fims.biz.rt.web;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.FimsConst;
import kr.xit.fims.biz.rt.service.IRt100MgtService; import kr.xit.fims.biz.rt.service.IRt100MgtService;
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO; import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
import kr.xit.framework.biz.mng.code.service.ICodeCfnMgtService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.model.ResultResponse; import kr.xit.framework.core.model.ResultResponse;
import kr.xit.framework.support.mybatis.MybatisUtils; import kr.xit.framework.support.mybatis.MybatisUtils;

@ -13,7 +13,7 @@ import org.springframework.util.Assert;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import kr.xit.fims.biz.cmm.FimsConst; import kr.xit.fims.biz.FimsConst;
import kr.xit.framework.biz.cmm.mapper.ICmmFileMapper; import kr.xit.framework.biz.cmm.mapper.ICmmFileMapper;
import kr.xit.framework.biz.cmm.model.CmmFileDtlDTO; import kr.xit.framework.biz.cmm.model.CmmFileDtlDTO;
import kr.xit.framework.biz.cmm.model.CmmFileMstDTO; import kr.xit.framework.biz.cmm.model.CmmFileMstDTO;

Loading…
Cancel
Save