diff --git a/src/main/java/cokr/xit/fims/cvlc/dao/CrdnCvlcptMapper.java b/src/main/java/cokr/xit/fims/cvlc/dao/CrdnCvlcptMapper.java index d655d728..fe937a3c 100644 --- a/src/main/java/cokr/xit/fims/cvlc/dao/CrdnCvlcptMapper.java +++ b/src/main/java/cokr/xit/fims/cvlc/dao/CrdnCvlcptMapper.java @@ -91,4 +91,10 @@ public interface CrdnCvlcptMapper extends AbstractMapper { */ DataObject selectAnswerPreview(CrdnQuery query); + /**지정한 조건에 따라 민원답변문구 대장을 조회하여 반환한다. + * @param params 답변문구 조회 파라미터 + * @return 답변문구 대장 정보 + */ + DataObject selectCvlcptAnsWordsInfo(Map params); + } diff --git a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java index 39aeae94..f66feae2 100644 --- a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java +++ b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java @@ -101,4 +101,17 @@ public class CrdnCvlcptBean extends AbstractComponent { return crdnCvlcptMapper.initCvlcptPrcsRsltCn(crdnCvlcpt) == 1 ? true : false; } + /**지정한 조건에 따라 민원답변문구 대장을 조회하여 반환한다. + * @param taskSeCd 업무구분코드, ansRsnCd 답변 사유 코드 + * @return 답변문구 + */ + DataObject selectCvlcptAnsWordsInfo(String taskSeCd, String ansRsnCd) { + DataObject params = new DataObject(); + + params.set("sggCd", crdn05Mapper.selectSggCdForCurrentUser()); + params.set("taskSeCd", taskSeCd); + params.set("ansRsnCd", ansRsnCd); + + return crdnCvlcptMapper.selectCvlcptAnsWordsInfo(params); + } } diff --git a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java index cbcef7e2..7f0822d0 100644 --- a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java +++ b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java @@ -284,7 +284,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv || crdnInfo.string("CVLCPT_TRSM_CD").equals("02") || crdnInfo.string("CVLCPT_TRSM_CD").equals("03")) { // 민원 답변 문구(TB_CVLCPT_ANS_WORDS) 대장 조회 - DataObject infoCvlcptAnsWords = excl01Bean.selectCvlcptAnsWordsInfo(crdn.getLevyExclRsnCd()); + DataObject infoCvlcptAnsWords = crdnCvlcptBean.selectCvlcptAnsWordsInfo(crdn.getTaskSeCd(), crdn.getLevyExclRsnCd()); // 비부과(서손)사유가 민원 답변대상인가? 민원 답변 문구(TB_CVLCPT_ANS_WORDS) 대장에 답변 사유 코드가 존재한다면.. if (!infoCvlcptAnsWords.string("ANS_WORDS_ID").equals("")) { diff --git a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml index 469277e3..8ee6a30b 100644 --- a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml @@ -394,6 +394,22 @@ SELECT C.CRDN_ID AND DEL_YN = 'N' + + /* 단속정보 수정(crdnCvlcptMapper.updateCrdn) */ UPDATE TB_CRDN