From e9d6c3598a5b4ad10cb39ed2b3a8e8b7fd8c77ca Mon Sep 17 00:00:00 2001 From: limju Date: Thu, 2 Nov 2023 18:51:34 +0900 Subject: [PATCH] feat: sisul API --- .../xit/biz/sisul/mapper/IBizSisulMapper.java | 2 +- .../biz/sisul/service/BizSisulService.java | 2 +- .../mapper/biz/ens-sisul-mysql-mapper.xml | 33 +++++++++++++++++-- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/mens-api/src/main/java/kr/xit/biz/sisul/mapper/IBizSisulMapper.java b/mens-api/src/main/java/kr/xit/biz/sisul/mapper/IBizSisulMapper.java index 65f2c8f..6b0e6f7 100644 --- a/mens-api/src/main/java/kr/xit/biz/sisul/mapper/IBizSisulMapper.java +++ b/mens-api/src/main/java/kr/xit/biz/sisul/mapper/IBizSisulMapper.java @@ -23,7 +23,7 @@ import org.egovframe.rte.psl.dataaccess.mapper.Mapper; */ @Mapper public interface IBizSisulMapper { - Optional findDeptInfoByTmplId(final String tmplatId); + Optional selectDeptInfoByTmplId(final String tmplatId); int insertCntcSndngMst(CntcDTO.SndngMst dto); int insertCntcSndngDtl(CntcDTO.SndngDtl dto); int insertCi(CmmEnsFileInfDTO.FmcInfExcelRslt dto); diff --git a/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java b/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java index 2d8af96..4f94a94 100644 --- a/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java +++ b/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java @@ -82,7 +82,7 @@ public class BizSisulService extends EgovAbstractServiceImpl implements IBizSisu // 템플릿 정보 조회 final List fmcExcels = parsingFmcExcel(fileReq.getFiles()[0]); - TmplatManage tmpDTO = mapper.findDeptInfoByTmplId( + TmplatManage tmpDTO = mapper.selectDeptInfoByTmplId( fmcExcels.get(0).getTmplatId()) .orElseThrow(() -> BizRuntimeException.create("템플릿 정보를 찾을 수 없습니다.")); diff --git a/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml b/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml index 203dd16..233c4b8 100644 --- a/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml +++ b/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml @@ -2,8 +2,9 @@ - + /** ens-sysul-mysql-mapper|selectDeptInfoByTmplId-템플릿ID로 부서정보 조회|seojh */ SELECT tetm.signgu_code , tetm.ffnlg_code , tetm.try1 @@ -118,4 +119,32 @@ ) + + + + +