diff --git a/pom.xml b/pom.xml index ffa7faff..4d3f6447 100644 --- a/pom.xml +++ b/pom.xml @@ -34,6 +34,23 @@ xit-base-starter 23.04.01-SNAPSHOT + + + cokr.xit.interfaces + xit-lvis + 0.0.1-SNAPSHOT + + + cokr.xit.interfaces + xit-smg + 23.04.01-SNAPSHOT + + + cokr.xit.interfaces + xit-epost + 23.04.01-SNAPSHOT + + org.mariadb.jdbc mariadb-java-client diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index c40490a3..76fc4ada 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -1,12 +1,14 @@ package cokr.xit.fims; import org.springframework.boot.SpringApplication; + import cokr.xit.base.boot.XitBaseApplication; +//@ImportResource("classpath:spring/context-*.xml") public class FimsApplication extends XitBaseApplication { public static void main(String[] args) { SpringApplication.run(FimsApplication.class, args); } - -} + +} \ No newline at end of file diff --git a/src/main/java/cokr/xit/fims/base/FileController.java b/src/main/java/cokr/xit/fims/base/FileController.java index b305c9f1..c8282513 100644 --- a/src/main/java/cokr/xit/fims/base/FileController.java +++ b/src/main/java/cokr/xit/fims/base/FileController.java @@ -45,18 +45,11 @@ public class FileController extends cokr.xit.base.file.web.FileController { public void modifySvg(HttpServletRequest request, HttpServletResponse response) throws URISyntaxException, IOException, ParserConfigurationException, SAXException { String requestURI = request.getRequestURI().toString(); - String filepath = requestURI.replace("/file/modifySvg","/resources/image"); - System.out.println("log : "+filepath); + String filepath = requestURI.split("modifySvg")[1]; filepath = URLDecoder.decode(filepath); - System.out.println("log : "+filepath); - filepath = request.getSession().getServletContext().getRealPath(filepath); - System.out.println("log : "+filepath); filepath = filepath.replace("\\","/"); - System.out.println("log : "+filepath); - String contextPath = request.getSession().getServletContext().getContextPath(); - filepath = filepath.replace("webapp"+contextPath+"/resources", "webapp/resources"); - System.out.println("log : "+filepath); - filepath = "file:///"+filepath; + String svgRootPath = ("classpath:svg"); + filepath = svgRootPath + filepath; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder = factory.newDocumentBuilder(); diff --git a/src/main/java/cokr/xit/fims/crdn/Crdn.java b/src/main/java/cokr/xit/fims/crdn/Crdn.java index dfd3ea32..a3e6093d 100644 --- a/src/main/java/cokr/xit/fims/crdn/Crdn.java +++ b/src/main/java/cokr/xit/fims/crdn/Crdn.java @@ -12,6 +12,21 @@ import lombok.Setter; public class Crdn extends AbstractEntity { public static String INF_TYPE = "100"; + /** + * 수정할 파일키 목록 + */ + private String[] modifyFileKeyList; + + /** + * 삭제할 파일키 목록 + */ + private String[] deleteFileKeyList; + + /** + * 파일 변경 건수 + */ + private int fileChgCnt; + /** * 수정 처리할 정보 */ diff --git a/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java b/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java index a30198f3..5bc7a1e5 100644 --- a/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java +++ b/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java @@ -16,40 +16,49 @@ public class CrdnQuery extends CmmnQuery { private static final long serialVersionUID = 1L; - + //조회유형 private String view; private String grid; + private String inspectionDataType; + //현재정보 private String currentUserId; private String currentInstitute; - private String inspectionDataType; + + //ID private String crdnId; private String[] crdnIDs; + private String amtDcsnCdGroupId; + private String dtlAmtDcsnCdGroupId; - - private String vhrno; - - private String cvlcptPrcsPicNm; + //날짜 + private String aplcnYmd; private String schCvlcptRcptYmdFrom; private String schCvlcptRcptYmdTo; private String schRductYmdFrom; private String schRductYmdTo; private String schCrdnYmdFrom; private String schCrdnYmdTo; + + //from, to private Integer schCrdnCntFrom; private Integer schCrdnCntTo; + + //코드 + private String amtDcsnCd; + private String dtlAmtDcsnCd; + private String crdnInptSeCd; + private String cvlcptPrcsCd; + + //포함, 제외, 특정 자료 private String schOnlySamePlace; private String schOnlyUnpay; private String schExclEnd; private String schExclTimeout; - private String crdnInptSeCd; - private String cvlcptPrcsCd; - private String aplcnYmd; - private String amtDcsnCdGroupId; - private String amtDcsnCd; - private String dtlAmtDcsnCdGroupId; - private String dtlAmtDcsnCd; + //기타 + private String vhrno; + private String cvlcptPrcsPicNm; public String getView() { return ifEmpty(view, () -> null); diff --git a/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java b/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java index b9369a1b..c27b3161 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java @@ -69,4 +69,10 @@ public interface Crdn01Mapper extends AbstractMapper { */ DataObject selectCivilComplaintReceiptInitialDataInfo(CrdnQuery req); + /** 민원접수 초기자료를 수정한다. TODO : mybatis작성 + * @param crdn 민원정보 + * @return 저장된 정보 수 + */ + int saveCivilComplaint(Crdn crdn); + } diff --git a/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java b/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java index 55cf9e03..f0090458 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java @@ -66,5 +66,12 @@ public interface Crdn06Mapper extends AbstractMapper { List selectCrackdowns(CrdnQuery req); + /**단속정보를 변경한다.
+ * {@link cokr.xit.fims.crdn.service.bean.Crdn06Bean#update(Crdn)} 참고 + * @param crdn 단속정보 + * @return 저장된 정보수 + */ + int update(Crdn crdn); + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index a1638a0b..9f0bcb4a 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -5,14 +5,19 @@ import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; +import java.util.stream.Collectors; import javax.annotation.Resource; +import org.assertj.core.util.Arrays; import org.springframework.stereotype.Service; +import org.springframework.util.ResourceUtils; import org.springframework.web.servlet.ModelAndView; +import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.service.FileQuery; import cokr.xit.base.file.service.FileService; +import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile; import cokr.xit.fims.cmmn.hwp.InsertingImageCell; @@ -20,6 +25,7 @@ import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.dao.Crdn01Mapper; import cokr.xit.fims.crdn.service.CrdnService; +import cokr.xit.fims.sprt.Sprt; import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.data.DataObject; import kr.dogfoot.hwplib.object.HWPFile; @@ -39,10 +45,16 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic @Resource(name="crdn01Mapper") protected Crdn01Mapper crdn01Mapper; + @Resource(name="fileBean") + private FileBean fileBean; + /** 민원관리 Bean */ @Resource(name="crdn01Bean") protected Crdn01Bean crdn01Bean; + @Resource(name="crdn06Bean") + protected Crdn06Bean crdn06Bean; + @Override public List getCrackdownList(CrdnQuery req) { @@ -65,7 +77,10 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic return crdn01Bean.removeCivilComplaint(crdnIDs); } - public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, String baseFormatFilePath, String attachFormatFilePath) { + public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) { + + String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp"); + String attachFormatFilePath = ("classpath:format/cvlcptOrgnl_photo.hwp"); crdnQuery.setView("hwp"); DataObject dataObject = crdn01Bean.getCivilComplaintOriginalInfo(crdnQuery); @@ -74,7 +89,10 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic SimpleDateFormat ymdHypenFormat = new SimpleDateFormat("yyyy-MM-dd"); try { - HWPFile baseFormatFile = HWPReader.fromFile(baseFormatFilePath); + + File file = ResourceUtils.getFile(baseFormatFilePath); + + HWPFile baseFormatFile = HWPReader.fromFile(file); ArrayList strings = new ArrayList(); strings.add(dataObject.string("CVLCPT_APLCNT_NM")); @@ -131,12 +149,17 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic List fileInfoList = fileService.getFileList(fileQuery); + fileInfoList = fileInfoList.stream() + .filter(fileInfo -> fileInfo.string("MIME_TYPE").startsWith("image")) + .collect(Collectors.toList()); + if(fileInfoList != null && fileInfoList.size() > 0) { int photoCnt = fileInfoList.size(); int PHOTO_COUNT_PER_PAGE = 4; for(int i=0; i < photoCnt; i += PHOTO_COUNT_PER_PAGE) { - HWPFile attachFormatFile = HWPReader.fromFile(attachFormatFilePath); + file = ResourceUtils.getFile(attachFormatFilePath); + HWPFile attachFormatFile = HWPReader.fromFile(file); InsertingImageCell.IMPL_InsertPicture(attachFormatFile, "왼쪽위사진", fileInfoList.get(i).string("URL")); if(i+1 < photoCnt) InsertingImageCell.IMPL_InsertPicture(attachFormatFile, "오른쪽위사진", fileInfoList.get(i+1).string("URL")); @@ -169,29 +192,72 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic } public DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req) { + + //민원조회 DataObject dataObject = crdn01Mapper.selectCivilComplaintReceiptInitialDataInfo(req); + //첨부파일 조회 FileQuery fileQuery = new FileQuery(); - fileQuery.setInfoKeys(dataObject.string("CRDN_ID")); - fileQuery.setInfoType("190"); + fileQuery.setInfoType(Crdn.INF_TYPE); + fileQuery.setInfoKeys(req.getCrdnId()); List fileList = fileService.getFileList(fileQuery); if(fileList != null && !fileList.isEmpty()) { - dataObject.set("videoExist", "Y"); - } else { - dataObject.set("videoExist", "N"); + dataObject.set("fileList", fileList); } + //동영상 존재 여부 확인 + dataObject.set("videoExist", "N"); + String linkTblNm = dataObject.string("LINK_TBL_NM"); + if(!linkTblNm.equals("")) { + + if(linkTblNm.equals("TB_ESB_INTERFACE")) { + fileQuery.setInfoType("010"); + } else if(linkTblNm.equals("TB_SAEOL")) { + fileQuery.setInfoType("020"); + } else { + throw new RuntimeException("파일 조회 중 오류가 발생하였습니다."); + } - fileQuery.setInfoType(Crdn.INF_TYPE); - fileList = fileService.getFileList(fileQuery); - - if(fileList != null && !fileList.isEmpty()) { - dataObject.set("fileList", fileList); + fileQuery.setInfoKeys(dataObject.string("LINK_ID")); + List linkFileList = fileService.getFileList(fileQuery); + if(linkFileList != null && !linkFileList.isEmpty()) { + for(int i=0; i < linkFileList.size(); i++) { + String mimeType = linkFileList.get(i).string("MIME_TYPE"); + if(Arrays.asList(Sprt.VIDEO_MIME_TYPE).contains(mimeType)) { + dataObject.set("videoExist", "Y"); + } + } + } } return dataObject; } + public boolean saveCivilComplaint(Crdn crdn, List newFileInfoList) { + + int fileInsertEffected = 0; + int fileDeleteEffected = 0; + + if(newFileInfoList != null && !newFileInfoList.isEmpty()) { + fileInsertEffected = fileBean.create(newFileInfoList); + } + + if(crdn.getDeleteFileKeyList() != null) { + fileDeleteEffected = fileBean.remove(crdn.getDeleteFileKeyList()); + } + + crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected); + + return saveCivilComplaint(crdn); + + } + + public boolean saveCivilComplaint(Crdn crdn) { + //TODO : crdn01Mapper.saveCivilComplaint(crdn); + + return crdn06Bean.update(crdn); + } + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05ServiceBean.java index f37ed824..2fdaec15 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05ServiceBean.java @@ -136,7 +136,7 @@ public class Crdn05ServiceBean extends AbstractServiceBean implements CrdnServic excl01.setLevyExclRsnCd("192"); excl01.setEtcCn(""); - result = excl01Bean.createLevyExclusion(excl01); + result = excl01Bean.create(excl01); if (!result) { return false; } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java index 8a1b8ebb..699de2b1 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java @@ -29,7 +29,7 @@ public class Crdn06Bean extends AbstractComponent { case "tagInformationUndefinedData": return crdn06Mapper.updateTagInformation(crdn) == 1 ? true : false; default: - return false; //crdn06Mapper.update(crdn); + return crdn06Mapper.update(crdn) == 1 ? true : false; } } diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java index 06d80884..988dd5ea 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java @@ -1,15 +1,21 @@ package cokr.xit.fims.crdn.web; +import java.util.ArrayList; import java.util.List; import java.util.Map; +import java.util.stream.Stream; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.code.CommonCode; +import cokr.xit.base.file.FileInfo; +import cokr.xit.base.file.FileInfo.Relation; +import cokr.xit.base.file.web.FileInfoFactory; import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.CrdnQuery; @@ -129,6 +135,8 @@ public class Crdn01Controller extends ApplicationController { DataObject info = crdn01Service.getCivilComplaintReceiptInitialDataInfo(req); mav.addObject("crdnInfo", json ? info : toJson(info)); + + mav.addObject("openerPageName", request.getParameter("openerPageName")); return mav; } @@ -183,16 +191,58 @@ public class Crdn01Controller extends ApplicationController { .addObject("saved", saved); } + /**지정한 민원자료를 저장한다. + * @param crdnId 단속대장 아이디 + * @return jsonView + *
 {
+	 *     "affected": 저장된 정보수
+	 *     "saved": 저장되었으면 true, 그렇지 않으면 false
+	 * }
+ */ + @RequestMapping(name="민원자료 저장", value="/020/save.do") + public ModelAndView saveCivilComplaint(Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) { + + boolean saved = false; + + List newFileInfoList = new ArrayList(); + if(newFileList != null || modifyFileList != null) { + + Relation relation = new Relation(); + relation.setInfoType(crdn.INF_TYPE); + relation.setInfoKey(crdn.getCrdnId()); + + if(newFileList != null) { + newFileInfoList = new FileInfoFactory().makeFileInfos(relation, newFileList); + } + if(modifyFileList != null) { + newFileInfoList.addAll(new FileInfoFactory().makeFileInfos(relation, modifyFileList)); + + if(crdn.getDeleteFileKeyList() == null) { + crdn.setDeleteFileKeyList(crdn.getModifyFileKeyList()); + } else { + String[] arr1 = crdn.getDeleteFileKeyList(); + String[] arr2 = crdn.getModifyFileKeyList(); + String[] sumArr = Stream.of(arr1, arr2).flatMap(Stream::of).toArray(String[]::new); + crdn.setDeleteFileKeyList(sumArr); + } + } + } + + saved = crdn01Service.saveCivilComplaint(crdn, newFileInfoList); + + return new ModelAndView("jsonView") + .addObject("saved", saved); + } + /** 민원내역 원본을 한글 파일로 작성한다. * @return hwp파일 */ @RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do") public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, HttpServletRequest request) { - String baseFormatFilePath = request.getServletContext().getRealPath("resources/format/cvlcptOrgnl_text.hwp"); - String attachFormatFilePath = request.getServletContext().getRealPath("resources/format/cvlcptOrgnl_photo.hwp"); - return crdn01Service.makeFileFromHwpFormat(crdnQuery, baseFormatFilePath, attachFormatFilePath); + + return crdn01Service.makeFileFromHwpFormat(crdnQuery); } /** 민원답변내용 미리보기 화면을 연다. diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java index 180bbc25..75269d3a 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -121,14 +121,14 @@ public class Crdn05Controller extends ApplicationController { * } */ @PostMapping(name="단속자료 수기 등록", value="/030/create.do") - public ModelAndView createCrdnDataByManual(Crdn crdn, MultipartFile[] uploadFileList) { + public ModelAndView createCrdnDataByManual(Crdn crdn, MultipartFile[] newFileList) { boolean saved = false; crdn.setCrdnRegSeCd("01"); crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분 - if(uploadFileList != null) { - List fileInfoList = new FileInfoFactory().makeFileInfos(null, uploadFileList); + if(newFileList != null) { + List fileInfoList = new FileInfoFactory().makeFileInfos(null, newFileList); saved = crdn05Service.create(crdn, fileInfoList); } else { saved = crdn05Service.create(crdn); diff --git a/src/main/java/cokr/xit/fims/excl/Excl01Query.java b/src/main/java/cokr/xit/fims/excl/Excl01Query.java index b9b19614..04cf37f5 100644 --- a/src/main/java/cokr/xit/fims/excl/Excl01Query.java +++ b/src/main/java/cokr/xit/fims/excl/Excl01Query.java @@ -21,6 +21,7 @@ public class Excl01Query extends QueryRequest { private String taskSeCd; // 업무 구분 코드 private String delYn; // 삭제 여부 // ID + private String levyExclIDs; // 부과 제외 ID private String levyExclId; // 부과 제외 ID private String crdnId; // 단속 ID // 공통 조건 @@ -79,6 +80,16 @@ public class Excl01Query extends QueryRequest { return self(); } + public String getLevyExclIDs() { + return ifEmpty(levyExclIDs, () -> null); + } + + public T setLevyExclIDs(String levyExclIDs) { + this.levyExclIDs = levyExclIDs; + + return self(); + } + public String getLevyExclId() { return ifEmpty(levyExclId, () -> null); } diff --git a/src/main/java/cokr/xit/fims/excl/Excl02Query.java b/src/main/java/cokr/xit/fims/excl/Excl02Query.java index 6c2adf75..22ee2e66 100644 --- a/src/main/java/cokr/xit/fims/excl/Excl02Query.java +++ b/src/main/java/cokr/xit/fims/excl/Excl02Query.java @@ -21,6 +21,7 @@ public class Excl02Query extends QueryRequest { private String taskSeCd; // 업무 구분 코드 private String delYn; // 삭제 여부 // ID + private String opnnIDs; // 의견 제출 ID private String opnnId; // 의견 제출 ID private String crdnId; // 단속 ID // 공통 조건 @@ -74,6 +75,17 @@ public class Excl02Query extends QueryRequest { return self(); } + public String getOpnnIDs() { + return ifEmpty(opnnIDs, () -> null); + } + + public T setOpnnIDs(String opnnIDs) { + this.opnnIDs = opnnIDs; + + return self(); + } + + public String getOpnnId() { return ifEmpty(opnnId, () -> null); } diff --git a/src/main/java/cokr/xit/fims/excl/dao/Excl01Mapper.java b/src/main/java/cokr/xit/fims/excl/dao/Excl01Mapper.java index 1333983a..08b7bd9c 100644 --- a/src/main/java/cokr/xit/fims/excl/dao/Excl01Mapper.java +++ b/src/main/java/cokr/xit/fims/excl/dao/Excl01Mapper.java @@ -39,12 +39,24 @@ public interface Excl01Mapper extends AbstractMapper { * @param levyExclId 부과제외 ID * @return 부과제외 대장 객체 */ - default DataObject selectLevyExclInfo(String levyExclId) { - List levyExcl = selectLevyExcls(new Excl01Query().setLevyExclId(levyExclId).setOrderBy("LEVY_EXCL_ID")); + default DataObject selectInfo(String levyExclId) { + List levyExcl = selectLevyExcls(new Excl01Query().setLevyExclId(levyExclId)); return !levyExcl.isEmpty() ? levyExcl.get(0) : null; } + /**지정한 단속 ID의 단속, 부과제외 정보를 반환한다. + * @param crdnId 단속 ID + * @return 단속, 부과제외 정보 + */ + DataObject selectCrdn(Excl01Query req); + + default DataObject selectCrdnInfo(String crdnId) { + DataObject crdnInfo = selectCrdn(new Excl01Query().setCrdnId(crdnId)); + + return crdnInfo; + } + /**부과제외 대장 정보를 등록한다. * @param params 파라미터 *
  • "excl01" - 부과 제외 대장
  • @@ -88,18 +100,6 @@ public interface Excl01Mapper extends AbstractMapper { return excl01 != null && deleteLevyExcl(params().set("excl01", excl01)) >= 1; } - /**지정한 단속 ID의 단속, 부과제외 정보를 반환한다. - * @param crdnId 단속 ID - * @return 단속, 부과제외 정보 - */ - DataObject selectCrdnLevyExcl(Excl01Query req); - - default DataObject selectCrdnLevyExcl(String crdnId) { - DataObject crdnLevyExclInfo = selectCrdnLevyExcl(new Excl01Query().setCrdnId(crdnId)); - - return crdnLevyExclInfo; - } - /**단속(TB_CRDN) 대장의 단속 상태 코드를 수정한다. * @param params 파라미터 *
    • "excl01" - 부과 제외 대장
    • diff --git a/src/main/java/cokr/xit/fims/excl/dao/Excl02Mapper.java b/src/main/java/cokr/xit/fims/excl/dao/Excl02Mapper.java index 72a90b09..37e57617 100644 --- a/src/main/java/cokr/xit/fims/excl/dao/Excl02Mapper.java +++ b/src/main/java/cokr/xit/fims/excl/dao/Excl02Mapper.java @@ -39,12 +39,24 @@ public interface Excl02Mapper extends AbstractMapper { * @param opnnId 의견제출 ID * @return 의견제출 대장 객체 */ - default DataObject selectOpnnSbmsnInfo(String opnnId) { - List opnnSbmsn = selectOpnnSbmsns(new Excl02Query().setOpnnId(opnnId).setOrderBy("OPNN_ID")); + default DataObject selectInfo(String opnnId) { + List opnnSbmsn = selectOpnnSbmsns(new Excl02Query().setOpnnId(opnnId)); return !opnnSbmsn.isEmpty() ? opnnSbmsn.get(0) : null; } + /**지정한 단속 ID의 단속, 부과제외 정보를 반환한다. + * @param crdnId 단속 ID + * @return 단속, 부과제외 정보 + */ + DataObject selectCrdn(Excl02Query req); + + default DataObject selectCrdnInfo(String crdnId) { + DataObject crdnInfo = selectCrdn(new Excl02Query().setCrdnId(crdnId)); + + return crdnInfo; + } + /**의견제출 대장 정보를 등록한다. * @param params 파라미터 *
      • "opnnSbmsn" - 의견제출 대장
      • @@ -61,7 +73,7 @@ public interface Excl02Mapper extends AbstractMapper { *
      • 그렇지 않으면 false
      • *
      */ - default boolean insertOpnnSbmsn(Excl02 excl02) { + default boolean insert(Excl02 excl02) { return excl02 != null && insertOpnnSbmsn(params().set("excl02", excl02)) == 1; } @@ -81,7 +93,7 @@ public interface Excl02Mapper extends AbstractMapper { *
    • 그렇지 않으면 false
    • *
    */ - default boolean updateOpnnSbmsn(Excl02 excl02) { + default boolean update(Excl02 excl02) { return excl02 != null && updateOpnnSbmsn(params().set("excl02", excl02)) == 1; } @@ -101,7 +113,7 @@ public interface Excl02Mapper extends AbstractMapper { *
  • 그렇지 않으면 false
  • *
*/ - default boolean deleteOpnnSbmsn(Excl02 excl02) { + default boolean delete(Excl02 excl02) { return excl02 != null && deleteOpnnSbmsn(params().set("excl02", excl02)) == 1; } diff --git a/src/main/java/cokr/xit/fims/excl/dao/Excl03Mapper.java b/src/main/java/cokr/xit/fims/excl/dao/Excl03Mapper.java index 807ae8dd..cb935b70 100644 --- a/src/main/java/cokr/xit/fims/excl/dao/Excl03Mapper.java +++ b/src/main/java/cokr/xit/fims/excl/dao/Excl03Mapper.java @@ -5,7 +5,6 @@ import java.util.Map; import org.egovframe.rte.psl.dataaccess.mapper.Mapper; -import cokr.xit.fims.excl.Excl01Query; import cokr.xit.fims.excl.Excl03; import cokr.xit.fims.excl.Excl03Query; import cokr.xit.foundation.component.AbstractMapper; @@ -36,16 +35,6 @@ public interface Excl03Mapper extends AbstractMapper { */ List selectCrdnReRegs(Excl03Query req); - /**지정한 ID의 단속 재등록 정보를 반환한다. - * @param levyExclId 단속 재등록 ID - * @return 단속 재등록 정보 - */ - default DataObject selectCrdnReRegInfo(String reRegId) { - List crdnReRegInfo = selectCrdnReRegs(new Excl03Query().setReRegId(reRegId).setOrderBy("RE_REG_ID")); - - return !crdnReRegInfo.isEmpty() ? crdnReRegInfo.get(0) : null; - } - /**단속 재등록 정보를 등록한다. * @param params 파라미터 *
  • "crdnReReg" - 단속 재등록
  • @@ -86,33 +75,10 @@ public interface Excl03Mapper extends AbstractMapper { return excl03 != null && deleteCrdnReReg(params().set("excl03", excl03)) == 1; } - - - /**지정한 단속ID의 단속 대장 정보를 반환한다. * @param crdnId 단속ID * @return 단속 대장 정보 */ DataObject selectCrdnInfo(String crdnId); - /**단속 재등록 정보를 등록한다. - * @param params 파라미터 - *
    • "excl03" - 단속 재등록
    • - *
    • "currentUser" - 현재 접속한 사용자
    • - *
    - * @return 저장된 정보수 - */ - int insertCopyCrdn(Map params); - - /**단속 재등록 정보를 등록한다. - * @param excl03 단속 재등록 - * @return 저장 여부 - *
    • 저장됐으면 true
    • - *
    • 그렇지 않으면 false
    • - *
    - */ - default boolean insertCopyCrdn(Excl03 excl03) { - return excl03 != null && insertCopyCrdn(params().set("excl03", excl03)) == 1; - } - } diff --git a/src/main/java/cokr/xit/fims/excl/service/Excl01Service.java b/src/main/java/cokr/xit/fims/excl/service/Excl01Service.java index 79c09c70..82e0e903 100644 --- a/src/main/java/cokr/xit/fims/excl/service/Excl01Service.java +++ b/src/main/java/cokr/xit/fims/excl/service/Excl01Service.java @@ -29,7 +29,7 @@ public interface Excl01Service { * @param levyExclId 부과 제외 ID * @return 부과제외 정보 */ - DataObject getLevyExclusionInfo(Excl01Query req); + DataObject getInfo(Excl01Query req); /**부과제외 대장 정보를 등록한다. * @param excl 부과제외 대장 @@ -38,7 +38,7 @@ public interface Excl01Service { *
  • 그렇지 않으면 false
  • *
*/ - Map createLevyExclusion(Excl01 excl01); + Map create(Excl01 excl01); /**부과제외 대장 정보를 수정한다. * @param excl 부과제외 대장 @@ -47,7 +47,7 @@ public interface Excl01Service { *
  • 그렇지 않으면 false
  • * */ - Map updateLevyExclusion(Excl01 excl01); + Map update(Excl01 excl01); /**부과제외 대장 정보를 삭제한다. * @param excl 부과제외 대장 @@ -56,7 +56,7 @@ public interface Excl01Service { *
  • 그렇지 않으면 false
  • * */ - boolean removeLevyExclusion(Excl01 excl01); + boolean remove(Excl01 excl01); /**부과제외 대장 정보를 삭제한다. * @param excl 부과제외 대장 @@ -65,6 +65,6 @@ public interface Excl01Service { *
  • 그렇지 않으면 false
  • * */ - boolean removeLevyExclusionList(Excl01 excl01); + boolean removeList(Excl01 excl01); } diff --git a/src/main/java/cokr/xit/fims/excl/service/Excl02Service.java b/src/main/java/cokr/xit/fims/excl/service/Excl02Service.java index a62e6214..a57b5c39 100644 --- a/src/main/java/cokr/xit/fims/excl/service/Excl02Service.java +++ b/src/main/java/cokr/xit/fims/excl/service/Excl02Service.java @@ -34,7 +34,7 @@ public interface Excl02Service { * @param opnnId 의견제출 ID * @return 의견제출 정보 */ - DataObject getOpinionSubmissionInfo(String opnnId); + DataObject getInfo(Excl02Query req); /**의견제출 대장 정보를 등록한다. * @param opnnSbmsn 의견제출 대장 @@ -43,7 +43,7 @@ public interface Excl02Service { *
  • 그렇지 않으면 false
  • * */ - boolean createOpinionSubmission(Excl02 excl02); + boolean create(Excl02 excl02); /**의견제출 대장 정보를 수정한다. * @param opnnSbmsn 의견제출 대장 @@ -52,7 +52,7 @@ public interface Excl02Service { *
  • 그렇지 않으면 false
  • * */ - boolean updateOpinionSubmission(Excl02 excl02); + boolean update(Excl02 excl02); /**의견제출 대장 정보를 삭제한다. * @param opnnSbmsn 의견제출 대장 @@ -61,6 +61,6 @@ public interface Excl02Service { *
  • 그렇지 않으면 false
  • * */ - boolean removeOpinionSubmission(Excl02 excl02); + boolean remove(Excl02 excl02); } diff --git a/src/main/java/cokr/xit/fims/excl/service/Excl03Service.java b/src/main/java/cokr/xit/fims/excl/service/Excl03Service.java index 8d1365dc..0d4abb90 100644 --- a/src/main/java/cokr/xit/fims/excl/service/Excl03Service.java +++ b/src/main/java/cokr/xit/fims/excl/service/Excl03Service.java @@ -30,12 +30,6 @@ public interface Excl03Service { */ List getCrackdownReRegistrations(Excl03Query req); - /**지정한 ID의 단속 재등록 정보를 반환한다.
    - * @param reRegId 단속 재등록 ID - * @return 단속 재등록 정보 - */ - DataObject getCrackdownReRegistrationInfo(String reRegId); - /**단속 재등록 정보를 등록한다. * @param excl03 단속 재등록 * @return 저장 여부 @@ -43,7 +37,7 @@ public interface Excl03Service { *
  • 그렇지 않으면 false
  • * */ - boolean createCrackdownReRegistration(Excl03 excl03); + boolean create(Excl03 excl03); /**단속 재등록 정보를 삭제한다. * @param excl03 단속 재등록 @@ -52,5 +46,5 @@ public interface Excl03Service { *
  • 그렇지 않으면 false
  • * */ - boolean removeCrackdownReRegistration(Excl03 excl03); + boolean remove(Excl03 excl03); } diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/Excl01Bean.java b/src/main/java/cokr/xit/fims/excl/service/bean/Excl01Bean.java index 635e32e9..2d1d772e 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/Excl01Bean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/Excl01Bean.java @@ -34,6 +34,8 @@ public class Excl01Bean extends AbstractComponent { * @return 부과제외 대장 목록 */ public List getLevyExclusionList(Excl01Query req) { + req.setOrderBy("LEVY_EXCL_ID"); // 정렬 + return excl01Mapper.selectLevyExclList(req); } @@ -41,11 +43,11 @@ public class Excl01Bean extends AbstractComponent { * @param levyExclId 부과제외 ID * @return 부과제외 정보 */ - public DataObject getLevyExclusionInfo(Excl01Query req) { + public DataObject getInfo(Excl01Query req) { if (req.getLevyExclId() != null) { - return excl01Mapper.selectLevyExclInfo(req.getLevyExclId()); // 수정(부과제외 조회) + return excl01Mapper.selectInfo(req.getLevyExclId()); // 수정(부과제외 조회) } else { - DataObject dataCrdn = excl01Mapper.selectCrdnLevyExcl(req); // 등록(단속 조회) + DataObject dataCrdn = excl01Mapper.selectCrdn(req); // 등록(단속 조회) // 초기 데이터 설정 dataCrdn.set("LEVY_EXCL_YMD", dataCrdn.get("TODAY")); // 부과 제외 일자 @@ -62,7 +64,7 @@ public class Excl01Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean createLevyExclusion(Excl01 excl01) { + public boolean create(Excl01 excl01) { return excl01Mapper.insert(excl01); } @@ -73,7 +75,7 @@ public class Excl01Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean updateLevyExclusion(Excl01 excl01) { + public boolean update(Excl01 excl01) { return excl01Mapper.update(excl01); } @@ -84,7 +86,7 @@ public class Excl01Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean removeLevyExclusion(Excl01 excl01) { + public boolean remove(Excl01 excl01) { return excl01Mapper.delete(excl01); } @@ -93,7 +95,7 @@ public class Excl01Bean extends AbstractComponent { * @return 부과제외 대장 목록 */ public DataObject getCrdnLevyExclusion(String crdnId) { - return excl01Mapper.selectCrdnLevyExcl(crdnId); + return excl01Mapper.selectCrdnInfo(crdnId); } /**단속 대장 정보를 수정한다. diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/Excl01ServiceBean.java b/src/main/java/cokr/xit/fims/excl/service/bean/Excl01ServiceBean.java index b9669f8f..c5be9402 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/Excl01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/Excl01ServiceBean.java @@ -43,12 +43,12 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv } @Override - public DataObject getLevyExclusionInfo(Excl01Query req) { - return excl01Bean.getLevyExclusionInfo(req); + public DataObject getInfo(Excl01Query req) { + return excl01Bean.getInfo(req); } @Override - public Map createLevyExclusion(Excl01 excl01) { + public Map create(Excl01 excl01) { // 변수 선언 boolean retSuccess = false; // DB 처리 결과 Map retMap = new HashMap(); // 결과 return @@ -90,7 +90,7 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv } // 부과제외(TB_LEVY_EXCL) 대장 등록 - retSuccess = excl01Bean.createLevyExclusion(excl01); + retSuccess = excl01Bean.create(excl01); // 1건이 등록 되지 않았다면.. if (!retSuccess) { retMap.put("retSaved", "false"); @@ -137,12 +137,12 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv } @Override - public Map updateLevyExclusion(Excl01 excl01) { + public Map update(Excl01 excl01) { // 변수 선언 boolean retSuccess = false; // DB 처리 결과 Map retMap = new HashMap(); // 결과 return - retSuccess = excl01Bean.updateLevyExclusion(excl01); + retSuccess = excl01Bean.update(excl01); if (!retSuccess) { retMap.put("retSaved", "false"); retMap.put("retMessage", "부과제외 대장 수정에 실패하였습니다."); @@ -159,35 +159,7 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv } @Override - public boolean removeLevyExclusionList(Excl01 excl01) { - // 변수 선언 - boolean retSuccess = false; // DB 처리 결과 - Excl01 infoLevyExcl = new Excl01(); // 부과제외(TB_LEVY_EXCL) 조회 - - // 부과제외ID 건수를 확인하여 1건이하면.. 종료 - if (excl01.getLevyExclIDs().length < 1 ) { - return retSuccess; - } - - // 부과제외ID 만큼 반복.. - for (int iLoop = 0; iLoop < excl01.getLevyExclIDs().length; iLoop++) { - infoLevyExcl.setLevyExclId(excl01.getLevyExclIDs()[iLoop]); // 부과제외 ID - infoLevyExcl.setDelRsn(excl01.getDelRsn()); // 삭제 사유 - - retSuccess = removeLevyExclusion(infoLevyExcl); - if (!retSuccess) { - return retSuccess; - } - } - - // 처리 성공 - retSuccess = true; - - return retSuccess; - } - - @Override - public boolean removeLevyExclusion(Excl01 excl01) { + public boolean remove(Excl01 excl01) { // 변수 선언 boolean retSuccess = false; // DB 처리 결과 String retMessage = "삭제 처리 중 "; @@ -199,7 +171,7 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv CrdnSttsHstry deltCrdnSttsHstry = new CrdnSttsHstry(); // 단속상태이력(TB_CRDN_STTS_HSTRY) 삭제 // 부과제외(TB_LEVY_EXCL) + 단속(TB_CRDN) 자료 조회 - infoCrdnSttsCd = excl01Bean.getLevyExclusionInfo(new Excl01Query().setLevyExclId(excl01.getLevyExclId())); + infoCrdnSttsCd = excl01Bean.getInfo(new Excl01Query().setLevyExclId(excl01.getLevyExclId())); // 단속 상태 이력(TB_CRDN_STTS_HSTRY) 대장에서 부과제외 자료 조회 infoCrdnSttsHstry = crdnSttsHstryBean.getCrdnSttsHstryInfo(infoCrdnSttsCd.string("CRDN_ID")); @@ -213,7 +185,7 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv } // 부과제외(TB_LEVY_EXCL) 삭제 - retSuccess = excl01Bean.removeLevyExclusion(excl01); + retSuccess = excl01Bean.remove(excl01); if (!retSuccess) { retMessage = retMessage + "부과제외 자료 삭제에서 오류가 발생 되었습니다."; @@ -339,4 +311,36 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv return retSuccess; } + @Override + public boolean removeList(Excl01 excl01) { + // 변수 선언 + boolean retSuccess = false; // DB 처리 결과 + int dataCount = 0; // 선택한 자료 건수 + Excl01 infoLevyExcl = new Excl01(); // 부과제외(TB_LEVY_EXCL) 조회 + + // 변수 셋팅 + dataCount = excl01.getLevyExclIDs().length; // ID 건수 + + // 부과제외ID 건수를 확인하여 1건이하면.. 종료 + if (dataCount < 1 ) { + return retSuccess; + } + + // 부과제외ID 만큼 반복.. + for (int iLoop = 0; iLoop < dataCount; iLoop++) { + infoLevyExcl.setLevyExclId(excl01.getLevyExclIDs()[iLoop]); // 부과제외 ID + infoLevyExcl.setDelRsn(excl01.getDelRsn()); // 삭제 사유 + + retSuccess = remove(infoLevyExcl); + if (!retSuccess) { + return retSuccess; + } + } + + // 처리 성공 + retSuccess = true; + + return retSuccess; + } + } diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/Excl02Bean.java b/src/main/java/cokr/xit/fims/excl/service/bean/Excl02Bean.java index e55d4687..33072d47 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/Excl02Bean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/Excl02Bean.java @@ -34,6 +34,8 @@ public class Excl02Bean extends AbstractComponent { * @return 의견제출 대장 목록 */ public List getOpinionSubmissionList(Excl02Query req) { + req.setOrderBy("OPNN_ID"); // 정렬 + return excl02Mapper.selectOpnnSbmsnList(req); } @@ -49,8 +51,17 @@ public class Excl02Bean extends AbstractComponent { * @param opnnId 의견제출 ID * @return 의견제출 정보 */ - public DataObject getOpinionSubmissionInfo(String opnnId) { - return excl02Mapper.selectOpnnSbmsnInfo(opnnId); + public DataObject getInfo(Excl02Query req) { + if (req.getOpnnId() != null) { + return excl02Mapper.selectInfo(req.getOpnnId()); // 수정(의견제출 조회) + } else { + DataObject dataCrdn = excl02Mapper.selectCrdn(req); // 등록(단속 조회) + + // 초기 데이터 설정 + dataCrdn.set("RCPT_YMD", dataCrdn.get("TODAY")); // 접수 일자 + + return dataCrdn; + } } /**의견제출 대장 정보를 등록한다. @@ -60,8 +71,8 @@ public class Excl02Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean createOpinionSubmission(Excl02 excl02) { - return excl02Mapper.insertOpnnSbmsn(excl02); + public boolean create(Excl02 excl02) { + return excl02Mapper.insert(excl02); } /**의견제출 대장 정보를 수정한다. @@ -71,8 +82,8 @@ public class Excl02Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean updateOpinionSubmission(Excl02 excl02) { - return excl02Mapper.updateOpnnSbmsn(excl02); + public boolean update(Excl02 excl02) { + return excl02Mapper.update(excl02); } /**의견제출 대장 정보를 삭제한다. @@ -82,8 +93,8 @@ public class Excl02Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean removeOpinionSubmission(Excl02 excl02) { - return excl02Mapper.deleteOpnnSbmsn(excl02); + public boolean remove(Excl02 excl02) { + return excl02Mapper.delete(excl02); } } diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/Excl02ServiceBean.java b/src/main/java/cokr/xit/fims/excl/service/bean/Excl02ServiceBean.java index 990770bc..1038221d 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/Excl02ServiceBean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/Excl02ServiceBean.java @@ -40,23 +40,23 @@ public class Excl02ServiceBean extends AbstractServiceBean implements Excl02Serv } @Override - public DataObject getOpinionSubmissionInfo(String opnnId) { - return excl02Bean.getOpinionSubmissionInfo(opnnId); + public DataObject getInfo(Excl02Query req) { + return excl02Bean.getInfo(req); } @Override - public boolean createOpinionSubmission(Excl02 excl02) { - return excl02Bean.createOpinionSubmission(excl02); + public boolean create(Excl02 excl02) { + return excl02Bean.create(excl02); } @Override - public boolean updateOpinionSubmission(Excl02 excl02) { - return excl02Bean.updateOpinionSubmission(excl02); + public boolean update(Excl02 excl02) { + return excl02Bean.update(excl02); } @Override - public boolean removeOpinionSubmission(Excl02 excl02) { - return excl02Bean.removeOpinionSubmission(excl02); + public boolean remove(Excl02 excl02) { + return excl02Bean.remove(excl02); } } diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/Excl03Bean.java b/src/main/java/cokr/xit/fims/excl/service/bean/Excl03Bean.java index 4d66e37a..496ba0d9 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/Excl03Bean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/Excl03Bean.java @@ -34,6 +34,8 @@ public class Excl03Bean extends AbstractComponent { * @return 단속 재등록 목록 */ public List getCrackdownReRegistrationList(Excl03Query req) { + req.setOrderBy("RE_REG_ID"); // 정렬 + return excl03Mapper.selectCrdnReRegList(req); } @@ -45,14 +47,6 @@ public class Excl03Bean extends AbstractComponent { return excl03Mapper.selectCrdnReRegs(req); } - /**지정한 ID의 단속 재등록 정보를 반환한다.
    - * @param opnnId 단속 재등록 ID - * @return 단속 재등록 정보 - */ - public DataObject getCrackdownReRegistrationInfo(String opnnId) { - return excl03Mapper.selectCrdnReRegInfo(opnnId); - } - /**단속 재등록 정보를 등록한다. * @param excl03 단속 재등록 * @return 저장 여부 @@ -60,7 +54,7 @@ public class Excl03Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean createCrackdownReRegistration(Excl03 excl03) { + public boolean create(Excl03 excl03) { return excl03Mapper.insert(excl03); } @@ -71,7 +65,7 @@ public class Excl03Bean extends AbstractComponent { *
  • 그렇지 않으면 false
  • * */ - public boolean removeCrackdownReRegistration(Excl03 excl03) { + public boolean remove(Excl03 excl03) { return excl03Mapper.delete(excl03); } @@ -83,15 +77,4 @@ public class Excl03Bean extends AbstractComponent { return excl03Mapper.selectCrdnInfo(crdnId); } - /**단속 정보를 복사하여 신규 단속 정보를 등록한다. - * @param excl03 단속 재등록 - * @return 저장 여부 - *
    • 저장됐으면 true
    • - *
    • 그렇지 않으면 false
    • - *
    - */ - public boolean createCopyCrackdown(Excl03 excl03) { - return excl03Mapper.insertCopyCrdn(excl03); - } - } diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/Excl03ServiceBean.java b/src/main/java/cokr/xit/fims/excl/service/bean/Excl03ServiceBean.java index 7f079bcc..ca3bbcad 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/Excl03ServiceBean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/Excl03ServiceBean.java @@ -8,13 +8,11 @@ import org.springframework.stereotype.Service; import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.data.DataObject; -import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean; import cokr.xit.fims.excl.Excl03; import cokr.xit.fims.excl.Excl03Query; import cokr.xit.fims.excl.service.Excl03Service; -import cokr.xit.fims.task.service.TaskService; /**단속 재등록 서비스 구현체. * @@ -47,12 +45,7 @@ public class Excl03ServiceBean extends AbstractServiceBean implements Excl03Serv } @Override - public DataObject getCrackdownReRegistrationInfo(String reRegId) { - return excl03Bean.getCrackdownReRegistrationInfo(reRegId); - } - - @Override - public boolean createCrackdownReRegistration(Excl03 excl03) { + public boolean create(Excl03 excl03) { // 변수 선언 boolean retSuccess = false; // DB 처리 결과 String retMessage = "등록 처리 중 "; @@ -62,91 +55,89 @@ public class Excl03ServiceBean extends AbstractServiceBean implements Excl03Serv Crdn crdn = new Crdn(); - crdn.setSggCd(infoCrdn.string("SGG_CD")); - crdn.setTaskSeCd(infoCrdn.string("TASK_SE_CD")); -// crdn.setCrdnRegSeCd(infoCrdn.string("CRDN_REG_SE_CD")); -// crdn.setCrdnInptSeCd(infoCrdn.string("CRDN_INPT_SE_CD")); -// crdn.setLinkTblNm(infoCrdn.string("LINK_TBL_NM")); -// crdn.setLinkId(infoCrdn.string("LINK_ID")); -// crdn.setRtpyrId(infoCrdn.string("RTPYR_ID")); -// crdn.setCrdnSeCd(infoCrdn.string("CRDN_SE_CD")); -// crdn.setCrdnYmd(infoCrdn.string("CRDN_YMD")); -// crdn.setCrdnTm(infoCrdn.string("CRDN_TM")); -// crdn.setVhrno(infoCrdn.string("VHRNO")); -// crdn.setCrdnStdgNm(infoCrdn.string("CRDN_STDG_NM")); -// crdn.setCrdnRoadNm(infoCrdn.string("CRDN_ROAD_NM")); -// crdn.setCrdnPlc(infoCrdn.string("CRDN_PLC")); -// crdn.setDtlCrdnPlc(infoCrdn.string("DTL_CRDN_PLC")); -// crdn.setTeamId(infoCrdn.string("TEAM_ID")); -// crdn.setVltnId(infoCrdn.string("VLTN_ID")); -// crdn.setCrdnSpareaCd(infoCrdn.string("CRDN_SPAREA_CD")); -// crdn.setCrdnBgngTm(infoCrdn.string("CRDN_BGNG_TM")); -// crdn.setCrdnEndHr(infoCrdn.string("CRDN_END_HR")); -// crdn.setCrdnSn(infoCrdn.string("CRDN_SN")); -// crdn.setGpsX(infoCrdn.string("GPS_X")); -// crdn.setGpsY(infoCrdn.string("GPS_Y")); -// crdn.setMoscX(infoCrdn.string("MOSC_X")); -// crdn.setMoscY(infoCrdn.string("MOSC_Y")); -// crdn.setTowngYn(infoCrdn.string("TOWNG_YN")); -// crdn.setAtchFileCnt(infoCrdn.string("ATCH_FILE_CNT")); -// crdn.setVin(infoCrdn.string("VIN")); -// crdn.setVhclNm(infoCrdn.string("VHCL_NM")); -// crdn.setVhclColor(infoCrdn.string("VHCL_COLOR")); -// crdn.setUseFuelCd(infoCrdn.string("USE_FUEL_CD")); -// crdn.setUsgSeCd(infoCrdn.string("USG_SE_CD")); -// crdn.setMxmmLoadQy(infoCrdn.string("MXMM_LOAD_QY")); -// crdn.setTkcarPsncpaCnt(infoCrdn.string("TKCAR_PSNCPA_CNT")); -// crdn.setCarmdlAsortNm(infoCrdn.string("CARMDL_ASORT_NM")); -// crdn.setCarmdlTypeNm(infoCrdn.string("CARMDL_TYPE_NM")); -// crdn.setCarmdlClsfNm(infoCrdn.string("CARMDL_CLSF_NM")); -// crdn.setErsrYmd(infoCrdn.string("ERSR_YMD")); -// crdn.setFfnlgCarmdlCd(infoCrdn.string("FFNLG_CARMDL_CD")); -// crdn.setParkngPsbltyRsltCd(infoCrdn.string("PARKNG_PSBLTY_RSLT_CD")); -// crdn.setVltnNmtm(infoCrdn.string("VLTN_NMTM")); -// crdn.setOvtimeYn(infoCrdn.string("OVTIME_YN")); -// crdn.setRvwSeCd(infoCrdn.string("RVW_SE_CD")); -// crdn.setRvwPrcsScrnNm(infoCrdn.string("RVW_PRCS_SCRN_NM")); -// crdn.setRvwDt(infoCrdn.string("RVW_DT")); -// crdn.setRvwr(infoCrdn.string("RVWR")); -// crdn.setFfnlgAmt(infoCrdn.string("FFNLG_AMT")); -// crdn.setFfnlgRductRt(infoCrdn.string("FFNLG_RDUCT_RT")); -// crdn.setLevyAmt(infoCrdn.string("LEVY_AMT")); -// crdn.setAdvntceBgngYmd(infoCrdn.string("ADVNTCE_BGNG_YMD")); -// crdn.setAdvntceDudtYmd(infoCrdn.string("ADVNTCE_DUDT_YMD")); -// crdn.setAdvntceLevyAmt(infoCrdn.string("ADVNTCE_LEVY_AMT")); -// crdn.setOpnnSbmsnYn(infoCrdn.string("OPNN_SBMSN_YN")); -// crdn.setEtcCn(infoCrdn.string("ETC_CN")); -// crdn.setLevyId(""); -// crdn.setCrdnSttsCd("01"); -// crdn.setCrdnSttsChgDt(""); -// crdn.setAdtnAmt(infoCrdn.string("0")); -// crdn.setMinusAmt(infoCrdn.string("0")); -// crdn.setRcvmtAmt(infoCrdn.string("0")); - crdn.setBfrCrdnId(infoCrdn.string("CRDN_ID")); + crdn.setSggCd(infoCrdn.string("SGG_CD")); // 시군구 코드 + crdn.setTaskSeCd(infoCrdn.string("TASK_SE_CD")); // 업무 구분 코드 + crdn.setCrdnRegSeCd("03"); // 단속 등록 구분 코드(FIM026) - 재 등록 + crdn.setCrdnInptSeCd(infoCrdn.string("CRDN_INPT_SE_CD")); // 단속 입력 구분 코드 + crdn.setLinkTblNm(infoCrdn.string("LINK_TBL_NM")); // 연계 테이블 명 + crdn.setLinkId(infoCrdn.string("LINK_ID")); // 연계 ID + crdn.setRtpyrId(infoCrdn.string("RTPYR_ID")); // 납부자 ID + crdn.setCrdnSeCd(infoCrdn.string("CRDN_SE_CD")); // 단속 구분 코드 + crdn.setCrdnYmd(infoCrdn.string("CRDN_YMD")); // 단속 일자 + crdn.setCrdnTm(infoCrdn.string("CRDN_TM")); // 단속 시각 + crdn.setVhrno(infoCrdn.string("VHRNO")); // 차량번호 + crdn.setCrdnStdgNm(infoCrdn.string("CRDN_STDG_NM")); // 단속 법정동 명 + crdn.setCrdnRoadNm(infoCrdn.string("CRDN_ROAD_NM")); // 단속 도로 명 + crdn.setCrdnPlc(infoCrdn.string("CRDN_PLC")); // 단속 장소 + crdn.setDtlCrdnPlc(infoCrdn.string("DTL_CRDN_PLC")); // 상세 단속 장소 + crdn.setTeamId(infoCrdn.string("TEAM_ID")); // 조 ID + crdn.setVltnId(infoCrdn.string("VLTN_ID")); // 위반 ID + crdn.setVltnCd(infoCrdn.string("VLTN_CD")); // 위반 코드 + crdn.setCrdnSpareaCd(infoCrdn.string("CRDN_SPAREA_CD")); // 단속 특별구역 코드 + crdn.setCrdnBgngTm(infoCrdn.string("CRDN_BGNG_TM")); // 단속 시작 시각 + crdn.setCrdnEndHr(infoCrdn.string("CRDN_END_HR")); // 단속 종료 시각 + crdn.setCrdnSn(infoCrdn.string("CRDN_SN")); // 단속 일련번호 + crdn.setGpsX(infoCrdn.string("GPS_X")); // GPS X + crdn.setGpsY(infoCrdn.string("GPS_Y")); // GPS Y + crdn.setMoscX(infoCrdn.string("MOSC_X")); // 모자이크 X + crdn.setMoscY(infoCrdn.string("MOSC_Y")); // 모자이크 Y + crdn.setTowngYn(infoCrdn.string("TOWNG_YN")); // 견인 여부 + crdn.setAtchFileCnt(Integer.parseInt(infoCrdn.string("ATCH_FILE_CNT"))); // 첨부 파일 수 + crdn.setVin(infoCrdn.string("VIN")); // 차대번호 + crdn.setVhclNm(infoCrdn.string("VHCL_NM")); // 차량 명 + crdn.setVhclColor(infoCrdn.string("VHCL_COLOR")); // 차량 색상 + crdn.setUseFuelCd(infoCrdn.string("USE_FUEL_CD")); // 사용 연료 코드 + crdn.setUsgSeCd(infoCrdn.string("USG_SE_CD")); // 용도 구분 코드 + crdn.setMxmmLoadQy(infoCrdn.string("MXMM_LOAD_QY")); // 최대 적재 량 + crdn.setTkcarPsncpaCnt(infoCrdn.string("TKCAR_PSNCPA_CNT")); // 승차 정원 수 + crdn.setCarmdlAsortNm(infoCrdn.string("CARMDL_ASORT_NM")); // 차종 종별 명 + crdn.setCarmdlTypeNm(infoCrdn.string("CARMDL_TYPE_NM")); // 차종 유형 명 + crdn.setCarmdlClsfNm(infoCrdn.string("CARMDL_CLSF_NM")); // 차종 분류 명 + crdn.setErsrYmd(infoCrdn.string("ERSR_YMD")); // 말소 일자 + crdn.setFfnlgCarmdlCd(infoCrdn.string("FFNLG_CARMDL_CD")); // 과태료 차종 코드 + crdn.setParkngPsbltyRsltCd(infoCrdn.string("PARKNG_PSBLTY_RSLT_CD")); // 주차 가능 결과 코드 + crdn.setVltnNmtm(infoCrdn.string("VLTN_NMTM")); // 위반 횟수 + crdn.setOvtimeYn(infoCrdn.string("OVTIME_YN")); // 시간외 여부 + crdn.setRvwSeCd(infoCrdn.string("RVW_SE_CD")); // 검토 구분 코드 + crdn.setRvwPrcsScrnNm(infoCrdn.string("RVW_PRCS_SCRN_NM")); // 검토 처리 화면 명 + crdn.setRvwDt(infoCrdn.string("RVW_DT")); // 검토 일시 + crdn.setRvwr(infoCrdn.string("RVWR")); // 검토자 + crdn.setFfnlgAmt(0); // 과태료 금액 - 초기 값 + crdn.setFfnlgRductRt(infoCrdn.string("FFNLG_RDUCT_RT")); // 과태료 감경 율 + crdn.setLevyAmt(0); // 부과 금액 - 초기 값 +// crdn.setAdvntceBgngYmd(""); // 사전통지 시작 일자 +// crdn.setAdvntceDudtYmd(""); // 사전통지 납기 일자 + crdn.setAdvntceLevyAmt(0); // 사전통지 부과 금액 - 초기 값 + crdn.setOpnnSbmsnYn("N"); // 의견 제출 여부 + crdn.setEtcCn(infoCrdn.string("ETC_CN")); // 기타 내용 +// crdn.setLevyId(""); // 부과 ID + crdn.setCrdnSttsCd("01"); // 단속 상태 코드 + crdn.setCrdnSttsChgDt(""); // 단속 상태 변경 일시 + crdn.setAdtnAmt(0); // 가산 금액 + crdn.setMinusAmt(0); // 감경 금액 + crdn.setRcvmtAmt(0); // 수납 금액 + crdn.setBfrCrdnId(infoCrdn.string("CRDN_ID")); // 이전 단속 ID crdn.setDelYn("N"); // 단속 대장 입력 + crdn.setDoGuidance(""); + retSuccess = crdn05Service.create(crdn); if (!retSuccess) { retMessage = "단속 대장 등록에 실패하였습니다."; // 예외를 발생시켜서 오류메세지를 보내고 Database 롤백.. throw new RuntimeException(retMessage); - } - -// // 단속 대장 자료 복사 -// retSuccess = excl03Bean.createCopyCrackdown(excl03); -// if (!retSuccess) { -// retMessage = "재부과 대장에 실패하였습니다."; -// -// // 예외를 발생시켜서 오류메세지를 보내고 Database 롤백.. -// throw new RuntimeException(retMessage); -// } + } // 단속 대장 사진 복사 + // 재부과 대장 등록 - retSuccess = excl03Bean.createCrackdownReRegistration(excl03); + excl03.setCrdnId(crdn.getCrdnId()); + excl03.setCrdnRegSeCd("03"); + + retSuccess = excl03Bean.create(excl03); if (!retSuccess) { retMessage = "재부과 대장 등록에 실패하였습니다."; @@ -161,8 +152,8 @@ public class Excl03ServiceBean extends AbstractServiceBean implements Excl03Serv } @Override - public boolean removeCrackdownReRegistration(Excl03 excl03) { - return excl03Bean.removeCrackdownReRegistration(excl03); + public boolean remove(Excl03 excl03) { + return excl03Bean.remove(excl03); } } diff --git a/src/main/java/cokr/xit/fims/excl/web/Excl01Controller.java b/src/main/java/cokr/xit/fims/excl/web/Excl01Controller.java index c8759d08..6c091b16 100644 --- a/src/main/java/cokr/xit/fims/excl/web/Excl01Controller.java +++ b/src/main/java/cokr/xit/fims/excl/web/Excl01Controller.java @@ -78,8 +78,8 @@ public class Excl01Controller extends ApplicationController { * } */ @RequestMapping(name = "부과제외 정보 조회", value = "/020/info.do") - public ModelAndView getLevyExclusioninfo(Excl01Query req) { - DataObject levyExclusionInfo = excl01Service.getLevyExclusionInfo(req); + public ModelAndView getInfo(Excl01Query req) { + DataObject levyExclusionInfo = excl01Service.getInfo(req); boolean json = jsonResponse(); @@ -107,8 +107,8 @@ public class Excl01Controller extends ApplicationController { * } */ @PostMapping(name = "부과제외 대장 등록", value = "/020/create.do") - public ModelAndView createLevyExclusion(Excl01 excl01) { - Map retMap = excl01Service.createLevyExclusion(excl01); + public ModelAndView create(Excl01 excl01) { + Map retMap = excl01Service.create(excl01); return new ModelAndView("jsonView") .addObject("retSaved", retMap.get("retSaved")) @@ -123,8 +123,8 @@ public class Excl01Controller extends ApplicationController { * } */ @PostMapping(name = "부과제외 대장 수정", value = "/020/update.do") - public ModelAndView updateLevyExclusion(Excl01 excl01) { - Map retMap = excl01Service.updateLevyExclusion(excl01); + public ModelAndView update(Excl01 excl01) { + Map retMap = excl01Service.update(excl01); return new ModelAndView("jsonView") .addObject("retSaved", retMap.get("retSaved")) @@ -140,8 +140,8 @@ public class Excl01Controller extends ApplicationController { * } */ @PostMapping(name = "부과제외 대장 제거", value = "/010/remove.do") - public ModelAndView removeLevyExclusion(Excl01 excl01) { - boolean saved = excl01Service.removeLevyExclusion(excl01); + public ModelAndView remove(Excl01 excl01) { + boolean saved = excl01Service.remove(excl01); return new ModelAndView("jsonView") .addObject("saved", saved); @@ -156,8 +156,8 @@ public class Excl01Controller extends ApplicationController { * } */ @PostMapping(name = "부과제외 대장 제거", value = "/010/removes.do") - public ModelAndView removeLevyExclusionList(Excl01 excl01) { - boolean saved = excl01Service.removeLevyExclusionList(excl01); + public ModelAndView removeList(Excl01 excl01) { + boolean saved = excl01Service.removeList(excl01); return new ModelAndView("jsonView") .addObject("saved", saved); diff --git a/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java b/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java index 9201910d..13acb1f1 100644 --- a/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java +++ b/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java @@ -7,6 +7,7 @@ import javax.annotation.Resource; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.code.CommonCode; @@ -78,17 +79,25 @@ public class Excl02Controller extends ApplicationController { * } */ @RequestMapping(name = "의견제출 정보 조회", value = "/020/info.do") - public ModelAndView getOpinionSubmissionInfo(String opnnId) { - if (!isEmpty(opnnId)) { - DataObject opinionSubmissionInfo = excl02Service.getOpinionSubmissionInfo(opnnId); + public ModelAndView getInfo(Excl02Query req) { + DataObject opnnSbmsnInfo = excl02Service.getInfo(req); - boolean json = jsonResponse(); + boolean json = jsonResponse(); - return new ModelAndView(json ? "jsonView" : "fims/excl/excl02020-info") - .addObject("opinionSubmissionInfo", json ? opinionSubmissionInfo : toJson(opinionSubmissionInfo)); - } else { - return new ModelAndView("fims/excl/excl02020-info"); - } + ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl02020-info"); + + // View(jsp)에서 사용할 공통코드를 조회 + Map> commonCodes = getCodesOf("FIM029", "FIM030", "FIM031", "FIM032", "FIM033", "FIM054"); + + return mav + .addObject("pageName", "excl02020") + .addObject("FIM029List", commonCodes.get("FIM029")) // 접수 구분 코드(RCPT_SE_CD) + .addObject("FIM030List", commonCodes.get("FIM030")) // 통보 구분 코드(NTFCTN_SE_CD) + .addObject("FIM032List", commonCodes.get("FIM032")) // 소유주 관계 구분 코드(OWNR_REL_CD) + .addObject("FIM033List", commonCodes.get("FIM033")) // 의견 제출 구분 코드(OPNN_SBMSN_SE_CD) + .addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD) + .addObject("opnnSbmsnInfo", json ? opnnSbmsnInfo : toJson(opnnSbmsnInfo)) + ; } /**의견제출 대장를 등록한다. @@ -98,9 +107,9 @@ public class Excl02Controller extends ApplicationController { * "saved": 등록되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name="의견제출 대장 등록", value="/010/create.do") - public ModelAndView createOpinionSubmission(Excl02 excl02) { - boolean saved = excl02Service.createOpinionSubmission(excl02); + @PostMapping(name="의견제출 대장 등록", value="/020/create.do") + public ModelAndView create(Excl02 excl02) { + boolean saved = excl02Service.create(excl02); return new ModelAndView("jsonView") .addObject("saved", saved); @@ -113,9 +122,9 @@ public class Excl02Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name="의견제출 대장 수정", value="/010/update.do") - public ModelAndView updateOpinionSubmission(Excl02 excl02) { - boolean saved = excl02Service.updateOpinionSubmission(excl02); + @PostMapping(name="의견제출 대장 수정", value="/020/update.do") + public ModelAndView update(Excl02 excl02, MultipartFile[] uploadFileList) { + boolean saved = excl02Service.update(excl02); return new ModelAndView("jsonView") .addObject("saved", saved); @@ -130,8 +139,8 @@ public class Excl02Controller extends ApplicationController { * } */ @PostMapping(name="의견제출 대장 제거", value="/010/remove.do") - public ModelAndView removeOpinionSubmission(Excl02 excl02) { - boolean saved = excl02Service.removeOpinionSubmission(excl02); + public ModelAndView remove(Excl02 excl02) { + boolean saved = excl02Service.remove(excl02); return new ModelAndView("jsonView") .addObject("saved", saved); diff --git a/src/main/java/cokr/xit/fims/excl/web/Excl03Controller.java b/src/main/java/cokr/xit/fims/excl/web/Excl03Controller.java index 9ea2e669..a46f38b0 100644 --- a/src/main/java/cokr/xit/fims/excl/web/Excl03Controller.java +++ b/src/main/java/cokr/xit/fims/excl/web/Excl03Controller.java @@ -14,7 +14,6 @@ import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.excl.Excl03; import cokr.xit.fims.excl.Excl03Query; import cokr.xit.fims.excl.service.Excl03Service; -import cokr.xit.foundation.data.DataObject; /**단속 재등록 서비스의 웹 컨트롤러 * @@ -68,27 +67,6 @@ public class Excl03Controller extends ApplicationController { return setCollectionInfo(new ModelAndView("jsonView"), result, "crdnReReg"); } - /**지정한 ID의 단속 재등록 정보를 반환한다. - * @param reRegId 단속 재등록 ID - * @return fims/excl/excl03020-info 또는 jsonView - *
    {
    -	 *     "opnnSbmsnInfo": 단속 재등록 정보
    -	 * }
    - */ - @RequestMapping(name="단속 재등록 정보 조회", value="/020/info.do") - public ModelAndView getCrackdownReRegistrationInfo(String reRegId) { - if (!isEmpty(reRegId)) { - DataObject crackdownReRegistrationInfo = excl03Service.getCrackdownReRegistrationInfo(reRegId); - - boolean json = jsonResponse(); - - return new ModelAndView(json ? "jsonView" : "fims/excl/excl03020-info") - .addObject("crackdownReRegistrationInfo", json ? crackdownReRegistrationInfo : toJson(crackdownReRegistrationInfo)); - } else { - return new ModelAndView("fims/excl/excl03020-info"); - } - } - /**단속 재등록를 등록한다. * @param excl03 단속 재등록 정보 * @return jsonView @@ -97,8 +75,8 @@ public class Excl03Controller extends ApplicationController { * } */ @PostMapping(name = "단속 재등록 등록", value = "/010/create.do") - public ModelAndView createCrackdownReRegistration(Excl03 excl03) { - boolean saved = excl03Service.createCrackdownReRegistration(excl03); + public ModelAndView create(Excl03 excl03) { + boolean saved = excl03Service.create(excl03); return new ModelAndView("jsonView") .addObject("saved", saved); @@ -113,8 +91,8 @@ public class Excl03Controller extends ApplicationController { * } */ @PostMapping(name = "단속 재등록 제거", value = "/010/remove.do") - public ModelAndView removeCrackdownReRegistration(Excl03 excl03) { - boolean saved = excl03Service.removeCrackdownReRegistration(excl03); + public ModelAndView remove(Excl03 excl03) { + boolean saved = excl03Service.remove(excl03); return new ModelAndView("jsonView") .addObject("saved", saved); diff --git a/src/main/java/cokr/xit/fims/sprt/Sprt.java b/src/main/java/cokr/xit/fims/sprt/Sprt.java index 851c9315..289a4665 100644 --- a/src/main/java/cokr/xit/fims/sprt/Sprt.java +++ b/src/main/java/cokr/xit/fims/sprt/Sprt.java @@ -11,4 +11,8 @@ import lombok.Setter; @Setter public class Sprt extends AbstractEntity { + public static String[] VIDEO_MIME_TYPE = { + "video/mp4", "video/webm", "video/ogg" + }; + } diff --git a/src/main/java/cokr/xit/fims/sprt/service/Sprt03Service.java b/src/main/java/cokr/xit/fims/sprt/service/Sprt03Service.java new file mode 100644 index 00000000..d870f173 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/service/Sprt03Service.java @@ -0,0 +1,18 @@ +package cokr.xit.fims.sprt.service; + +import cokr.xit.foundation.data.DataObject; + +/**미디어 업무지원 서비스를 제공한다. + *
    • {@link #getVideoInfo(SprtQuery) 동영상 정보 조회}
    • + *
    + * @author leebj + */ +public interface Sprt03Service { + + /**지정하는 단속아이디의 동영상 정보를 반환한다. + * @param crdnId 단속 아이디 + * @return 동영상 정보 + */ + DataObject getVideoInfo(String crdnId); + +} diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java new file mode 100644 index 00000000..1fb08c41 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java @@ -0,0 +1,67 @@ +package cokr.xit.fims.sprt.service.bean; + +import java.util.List; + +import javax.annotation.Resource; + +import org.assertj.core.util.Arrays; +import org.springframework.stereotype.Service; + +import cokr.xit.base.file.service.FileQuery; +import cokr.xit.base.file.service.FileService; +import cokr.xit.fims.crdn.CrdnQuery; +import cokr.xit.fims.crdn.dao.Crdn01Mapper; +import cokr.xit.fims.sprt.Sprt; +import cokr.xit.fims.sprt.service.Sprt03Service; +import cokr.xit.foundation.component.AbstractServiceBean; +import cokr.xit.foundation.data.DataObject; + +/**미디어 업무지원 서비스 인터페이스의 구현체 + * @author leebj + */ +@Service("sprt03Service") +public class Sprt03ServiceBean extends AbstractServiceBean implements Sprt03Service { + + @Resource(name = "crdn01Mapper") + private Crdn01Mapper crdn01Mapper; + + @Resource(name="fileService") + FileService fileService; + + @Override + public DataObject getVideoInfo(String crdnId) { + DataObject fileInfo = new DataObject(); + + CrdnQuery crdnQuery = new CrdnQuery(); + crdnQuery.setCrdnId(crdnId); + DataObject cvlcptInfo = crdn01Mapper.selectCivilComplaintReceiptInitialDataInfo(crdnQuery); + String linkTblNm = cvlcptInfo.string("LINK_TBL_NM"); + if(!linkTblNm.equals("")) { + FileQuery fileQuery = new FileQuery(); + + if(linkTblNm.equals("TB_ESB_INTERFACE")) { + fileQuery.setInfoType("010"); + } else if(linkTblNm.equals("TB_SAEOL")) { + fileQuery.setInfoType("020"); + } else { + throw new RuntimeException("파일 조회 중 오류가 발생하였습니다."); + } + fileQuery.setInfoKeys(cvlcptInfo.string("LINK_ID")); + + List fileList = fileService.getFileList(fileQuery); + if(fileList != null && !fileList.isEmpty()) { + for(int i=0; i < fileList.size() ;i++) { + DataObject file = fileList.get(i); + String mimeType = file.string("MIME_TYPE"); + if(Arrays.asList(Sprt.VIDEO_MIME_TYPE).contains(mimeType)){ + fileInfo = file; + break; + } + } + } + } + + return fileInfo; + } + +} diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java index dcf8e851..025cfc15 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java @@ -4,12 +4,12 @@ import java.util.List; import javax.annotation.Resource; -import org.assertj.core.util.Arrays; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.file.service.FileQuery; import cokr.xit.base.file.service.FileService; import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.sprt.service.Sprt03Service; import cokr.xit.foundation.data.DataObject; public class Sprt03Controller extends ApplicationController { @@ -17,10 +17,8 @@ public class Sprt03Controller extends ApplicationController { @Resource(name="fileService") FileService fileService; - public String VIDEO_INF_TYPE = "190"; - public String[] VIDEO_MIME_TYPE = { - "video/mp4", "video/webm", "video/ogg" - }; + @Resource(name="sprt03Service") + Sprt03Service sprt03Service; /** 동영상 재생 메인화면을 연다. * @return fims/sprt/sprt03010-main @@ -33,20 +31,9 @@ public class Sprt03Controller extends ApplicationController { if(crdnId != null && !crdnId.equals("")) { mav.addObject("crdnId", crdnId); - - FileQuery fileQuery = new FileQuery(); - fileQuery.setInfoKeys(crdnId); - fileQuery.setInfoType(VIDEO_INF_TYPE); - List fileList = fileService.getFileList(fileQuery); - if(fileList != null && !fileList.isEmpty()) { - for(int i=0; i < fileList.size() ;i++) { - DataObject file = fileList.get(i); - String mimeType = file.string("MIME_TYPE"); - if(Arrays.asList(VIDEO_MIME_TYPE).contains(mimeType)){ - mav.addObject("fileInfo", toJson(file)); - break; - } - } + DataObject file = sprt03Service.getVideoInfo(crdnId); + if(!file.isEmpty()) { + mav.addObject("fileInfo", toJson(file)); } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 37046249..dedae6e1 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -51,9 +51,6 @@ propertyService: - tempDir: C:\temp - pageUnit: 10 - pageSize: 10 -# extFileName: -# - encoding: UTF-8 -# filename: classpath*:properties/your-file-01.properties -# - encoding: UTF-8 -# filename: classpath*:properties/your-file-02.properties - + extFileName: + - encoding: UTF-8 + filename: classpath*:intf-conf/xit-lvis.properties diff --git a/src/main/webapp/resources/format/cvlcptOrgnl_photo.hwp b/src/main/resources/format/cvlcptOrgnl_photo.hwp similarity index 100% rename from src/main/webapp/resources/format/cvlcptOrgnl_photo.hwp rename to src/main/resources/format/cvlcptOrgnl_photo.hwp diff --git a/src/main/webapp/resources/format/cvlcptOrgnl_text.hwp b/src/main/resources/format/cvlcptOrgnl_text.hwp similarity index 100% rename from src/main/webapp/resources/format/cvlcptOrgnl_text.hwp rename to src/main/resources/format/cvlcptOrgnl_text.hwp diff --git a/src/main/resources/intf-conf/file-job.conf b/src/main/resources/intf-conf/file-job.conf new file mode 100644 index 00000000..65338bfc --- /dev/null +++ b/src/main/resources/intf-conf/file-job.conf @@ -0,0 +1,54 @@ +{ + "dirs": { + "receive": "files/ESB_AGENT/RCV", /* 수신 파일 최상위 디렉토리 */ + "send": "files/ESB_AGENT/SND", /* 전송 파일 최상위 디렉토리 */ + + "working": "files/interface/work", /* 파일 작업 최상위 디렉토리 */ + "success": "files/interface/success", /* 작업 완료한 파일의 최상위 디렉토리 */ + "fail": "files/interface/fail" /* 작업 실패한 파일의 최상위 디렉토리 */ + }, + + "dirCodes": { + "smg": "CG131000000768", /* 국민신문고 기관코드 */ + "epost": "CG144523401150" /* epost 기관코드 */ + }, + + "defaults": { + "charset": "euc-kr", + "fetchSize": 100, + "workSize": 100 + }, + + "jobs": [ + { /* 국민신문고 수신 */ + "name": "smg-receive", + "dirCode": "smg", /* <-- dirCodes */ + "infoType": "010", + "alert": "http://localhost:8080/fims/api/smg/petition/receive.do" /* 업무 통보 url */ + }, + { /* 국민신문고 전송 */ + "name": "smg-send", + "dirCode": "smg", /* <-- dirCodes */ + "alert": "http://localhost:8080/fims/api/smg/petition/reply.do" /* 업무 통보 url */ + }, + + { /* epost 전자우편 신청 전송 */ + "name": "epost-send-request", + "dirCode": "epost", /* <-- dirCodes */ + + "conOrg": "YICT", /* 외부기관 구분코드 */ + "rceptId": "40219", /* 접수우체국 국기호 */ + "expiryDays": 10, /* 배달 만료 일수 */ + + "attachmentDir": "files/interface/attachment/epost", /* 원본 첨부파일 디렉토리 경로 */ + "txtFilename": "POSDF5$send_{yyyyMMddHHmmssSSS}.txt", + "zipFilename": "POSDF5${conKey}.zip" + }, + + { /* epost 전자우편 신청 수신 결과 */ + "name": "epost-receive-result", + "dirCode": "epost", /* <-- dirCodes */ + "alert": "http://localhost:8080/fims/api/epost/result/receive.do" /* 업무 통보 url */ + } + ] +} \ No newline at end of file diff --git a/src/main/resources/intf-conf/xit-lvis.properties b/src/main/resources/intf-conf/xit-lvis.properties new file mode 100644 index 00000000..3e6ae533 --- /dev/null +++ b/src/main/resources/intf-conf/xit-lvis.properties @@ -0,0 +1,34 @@ +#\uc2dc\uad70\uad6c\ucf54\ub4dc(\ud544\uc218) +lvis.sigungu.code=28000 +#\ub2f4\ub2f9\uc790 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638 +lvis.charger.ihinum= +#\ub2f4\ub2f9\uc790 IP \uc5b4\ub4dc\ub808\uc2a4 +lvis.charger.ip_adres= +#\ub2f4\ub2f9\uc790\uba85 +lvis.charger.nm=\uc774\uad11\uc9c4 +#\ub2f4\ub2f9\uc790 \uc5f0\ub77d\ucc98 +lvis.charger.wrc_telno=032-440-3963 + +#\uc815\ubcf4\uc2dc\uc2a4\ud15c ID(\ud544\uc218) +lvis.info_sys.id=28-230 +#\uc815\ubcf4\uc2dc\uc2a4\ud15c IP(\ud544\uc218) +lvis.info_sys.ip=101.0.115.13 +#\uc815\ubcf4\uc2dc\uc2a4\ud15c MAC \uc5b4\ub4dc\ub808\uc2a4 +lvis.info_sys.macaddress=EC:EB:B8:97:F2:14 + +#\uc554\ud638\ud654\ud0a4 +lvis.enc.key=0BCE7F19897CEA91 +#\uc554\ud638\ud654\ud0a4 \uadf8\ub8f9 +lvis.enc.key_group=1 +#\uc554\ud638\ud654\ud0a4 \ubc88\ud638 +lvis.enc.key_no=1 + +#lvis \uc0ac\uc6a9 \uc11c\ube44\uc2a4 (production || test) +lvis.host.active=test +#lvis \uc6b4\uc601 \uc11c\ube44\uc2a4 \uc8fc\uc18c +lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController +#lvis \ud14c\uc2a4\ud2b8 \uc11c\ube44\uc2a4 \uc8fc\uc18c +lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController + +#\uc790\ub3d9\ucc28 \uae30\ubcf8\uc0ac\ud56d \uc870\ud68c \ub85c\uadf8 \uc800\uc7a5 \uc5ec\ubd80(true || false) +lvis.log.basicInfo=true \ No newline at end of file diff --git a/src/main/resources/spring/context-scheduler.xml b/src/main/resources/spring/context-scheduler.xml new file mode 100644 index 00000000..ad5f2fc0 --- /dev/null +++ b/src/main/resources/spring/context-scheduler.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/file-mapper.xml b/src/main/resources/sql/mapper/base/file-mapper.xml index 01066d19..55f5dc6b 100644 --- a/src/main/resources/sql/mapper/base/file-mapper.xml +++ b/src/main/resources/sql/mapper/base/file-mapper.xml @@ -22,12 +22,13 @@ SELECT INF_TYPE , CONCAT('files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR FROM ( - SELECT '010' INF_TYPE, 'smg' DIR UNION - SELECT '020' INF_TYPE, 'saeol' DIR UNION - SELECT '030' INF_TYPE, 'epost' DIR UNION - SELECT '100' INF_TYPE, 'violation' DIR UNION - SELECT '110' INF_TYPE, 'opinion' DIR UNION - SELECT '190' INF_TYPE, 'capture' DIR + SELECT '010' INF_TYPE, 'interface/attachment/smg' DIR UNION + SELECT '020' INF_TYPE, 'interface/attachment/saeol' DIR UNION + SELECT '030' INF_TYPE, 'interface/attachment/epost' DIR UNION + + SELECT '100' INF_TYPE, 'attachment/violation' DIR UNION + SELECT '110' INF_TYPE, 'attachment/opinion' DIR UNION + SELECT '190' INF_TYPE, 'attachment/capture' DIR ) FILE_DIRS diff --git a/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml index 29f2a4bc..de8ea805 100644 --- a/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml @@ -62,7 +62,7 @@ /* 단속 상태 이력 등록(crdnSttsHstryMapper.insertCrdnSttsHstry) */ - SELECT LPAD(IFNULL(MAX(STTS_HSTRY_ID) + 1, 1), 20, '0') NEW_ID FROM TB_CRDN_STTS_HSTRY + SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(STTS_HSTRY_ID,5)) + 1, 1) AS INT), 16, '0')) AS NEW_ID FROM TB_CRDN_STTS_HSTRY INSERT INTO TB_CRDN_STTS_HSTRY ( diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml index 8926ddd2..b0d63895 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml @@ -350,6 +350,8 @@ SELECT C.CRDN_ID , C.VHCL_COLOR , C.USE_FUEL_CD , C.VIN + , C.LINK_TBL_NM + , C.LINK_ID FROM TB_CRDN C INNER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID AND CC.DEL_YN = 'N') LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml index 7ffa445f..ecfcfbcd 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml @@ -274,7 +274,24 @@ SELECT C.CRDN_ID - + + + + + C.CRDN_YMD + C.VHRNO + C.CRDN_STDG_NM + C.CRDN_PLC + C.ATCH_FILE_CNT + C.CRDN_STTS_CD + C.FFNLG_AMT + C.CRDN_INPT_SE_CD + + #{term} + + + + @@ -296,6 +313,8 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST , COUNT(*) AS CRDN_CNT FROM TB_CRDN C + LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID) + LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) WHERE C.DEL_YN = 'N' AND C.TASK_SE_CD = #{taskSeCd} AND C.VHRNO != '' @@ -310,7 +329,25 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST AND C.VHRNO = #{vhrno} AND C.CRDN_STTS_CD != '81' - + + + + + C.CRDN_YMD + C.CRDN_INPT_SE_CD + TI.TEAM_NM + C.VHRNO + C.CRDN_STDG_NM + C.CRDN_PLC + C.CRDN_STTS_CD + C.FFNLG_AMT + P.RTPYR_NM + + #{term} + + + + GROUP BY C.VHRNO, C.CRDN_STDG_NM HAVING COUNT(*) = ]]> @@ -461,6 +498,14 @@ SELECT C.CRDN_ID - + + /* 단속정보 수정(crdn06Mapper.update) */ + UPDATE TB_CRDN + SET ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt}) + + , MDFCN_DT = /* 수정일시 */ + , MDFR = #{modifiedBy} /* 수정자 */ + WHERE CRDN_ID = #{crdnId} /* 단속 ID */ + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/fims/excl/excl01-mapper.xml b/src/main/resources/sql/mapper/fims/excl/excl01-mapper.xml index 72036d62..4282fbac 100644 --- a/src/main/resources/sql/mapper/fims/excl/excl01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/excl01-mapper.xml @@ -83,9 +83,9 @@ , E.CVLCPT_APLCNT_NM /* 민원 신청인 명 */ , E.CVLCPT_PRCS_PIC_NM /* 민원 처리 담당자 명 */ FROM TB_LEVY_EXCL A - INNER JOIN TB_CRDN C ON (A.CRDN_ID = C.CRDN_ID) - LEFT OUTER JOIN TB_PAYER D ON (C.RTPYR_ID = D.RTPYR_ID) - LEFT OUTER JOIN TB_CRDN_CVLCPT E ON (C.CRDN_ID = E.CRDN_ID AND E.DEL_YN = 'N') + INNER JOIN TB_CRDN C ON (A.CRDN_ID = C.CRDN_ID) + LEFT OUTER JOIN TB_PAYER D ON (C.RTPYR_ID = D.RTPYR_ID) + LEFT OUTER JOIN TB_CRDN_CVLCPT E ON (C.CRDN_ID = E.CRDN_ID AND E.DEL_YN = 'N') /* 부과제외 대장 객체 가져오기(excl01Mapper.selectLevyExcl) */ @@ -231,7 +233,28 @@ AND A.DEL_YN = #{delYn} /* 삭제 여부 */ - DESC + + + + /* 부과제외 대장 등록(excl01Mapper.insertLevyExcl) */ @@ -302,30 +325,6 @@ - - /* 단속 대장 수정(excl01Mapper.updateCrdnSttsCd) */ UPDATE TB_CRDN SET CRDN_STTS_CD = #{excl01.crdnSttsCd} /* 단속 상태 코드 */ diff --git a/src/main/resources/sql/mapper/fims/excl/excl02-mapper.xml b/src/main/resources/sql/mapper/fims/excl/excl02-mapper.xml index 16c284ca..96b6f8e0 100644 --- a/src/main/resources/sql/mapper/fims/excl/excl02-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/excl02-mapper.xml @@ -119,8 +119,8 @@ , D.ADDR /* 주소 */ , D.DTL_ADDR /* 상세 주소 */ FROM TB_OPNN_SBMSN A - INNER JOIN TB_CRDN C ON (A.CRDN_ID = C.CRDN_ID) - LEFT OUTER JOIN TB_PAYER D ON (C.RTPYR_ID = D.RTPYR_ID) + INNER JOIN TB_CRDN C ON (A.CRDN_ID = C.CRDN_ID) + LEFT OUTER JOIN TB_PAYER D ON (C.RTPYR_ID = D.RTPYR_ID) /* 의견제출 대장 객체 가져오기(excl02Mapper.selectOpnnSbmsnInfo) */ - - WHERE A.OPNN_ID = #{opnnId} /* 부과 제외 ID */ - - - - /* 의견제출 대장 객체 가져오기(excl02Mapper.selectOpnnSbmsns) */ - WHERE A.DEL_YN = 'N' /* 삭제 여부 */ - + + AND A.OPNN_ID IN ( - #{opnnId} + #{opnnId} ) - + + + AND A.OPNN_ID = #{opnnId} /* 의견제출 ID */ + + + AND A.CRDN_ID = #{crdnId} /* 단속 ID */ + + + AND A.DEL_YN = #{delYn} /* 삭제 여부 */ + + + + /* 의견제출 대장 등록(excl02Mapper.insertOpnnSbmsn) */ INSERT INTO TB_OPNN_SBMSN ( @@ -403,7 +436,7 @@ WHERE OPNN_ID = #{opnnSbmsn.opnnId} /* 의견 ID */ - /* 의견제출 대장 삭제(excl02Mapper.deleteOpnnSbmsn) */ + /* 의견제출 대장 삭제(excl02Mapper.deleteOpnnSbmsn) */ UPDATE TB_OPNN_SBMSN SET DEL_YN = 'Y' , DEL_DT = /* 삭제 일시 */ diff --git a/src/main/resources/sql/mapper/fims/excl/excl03-mapper.xml b/src/main/resources/sql/mapper/fims/excl/excl03-mapper.xml index cc54cf76..eade5071 100644 --- a/src/main/resources/sql/mapper/fims/excl/excl03-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/excl03-mapper.xml @@ -147,31 +147,30 @@ /* 단속 재등록 등록(excl03Mapper.insertCrdnReReg) */ + + SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(RE_REG_ID,5)) + 1, 1) AS INT), 16, '0')) AS NEW_ID FROM TB_CRDN_RE_REG + INSERT INTO TB_CRDN_RE_REG ( RE_REG_ID /* 재등록 ID */ - , BEF_CRDN_ID /* 신규 단속 ID */ + , BFR_CRDN_ID /* 신규 단속 ID */ , CRDN_ID /* 단속 ID */ + , RE_REG_YMD /* 재 등록 일자 */ , CRDN_REG_SE_CD /* 단속 등록 구분 코드 */ , ETC_CN /* 기타 내용 */ , DEL_YN /* 삭제 여부 */ , REG_DT /* 등록 일시 */ , RGTR /* 등록자 */ - , DEL_DT /* 삭제 일시 */ - , DLTR /* 삭제자 */ - , DEL_RSN /* 삭제 사유 */ ) VALUES ( - #{reRegId} /* 재등록 ID */ - , #{befCrdnId} /* 신규 단속 ID */ - , #{crdnId} /* 단속 ID */ - , #{crdnRegSeCd} /* 단속 등록 구분 코드 */ - , #{etcCn} /* 기타 내용 */ - , #{delYn} /* 삭제 여부 */ - , /* 등록 일시 */ - , #{currentUser.id} /* 등록자 */ - , #{removedAt} /* 삭제 일시 */ - , #{removedBy} /* 삭제자 */ - , #{delRsn} /* 삭제 사유 */ + #{excl03.reRegId} /* 재등록 ID */ + , #{excl03.bfrCrdnId} /* 신규 단속 ID */ + , #{excl03.crdnId} /* 단속 ID */ + , /* 재 등록 일자 */ + , #{excl03.crdnRegSeCd} /* 단속 등록 구분 코드 */ + , #{excl03.etcCn} /* 기타 내용 */ + , 'N' /* 삭제 여부 */ + , #{excl03.createdAt} /* 등록 일시 */ + , #{excl03.createdBy} /* 등록자 */ ) @@ -186,214 +185,74 @@ - /* 단속 재등록 등록(excl03Mapper.insertCopyCrdn) */ - - SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(CRDN_ID,5)) + 1, 1) AS INT), 16, '0')) AS NEW_ID FROM TB_CRDN - - INSERT INTO TB_CRDN ( - CRDN_ID - , SGG_CD - , TASK_SE_CD - , CRDN_REG_SE_CD - , CRDN_INPT_SE_CD - , LINK_TBL_NM - , LINK_ID - , RTPYR_ID - , CRDN_SE_CD - , CRDN_YMD - , CRDN_TM - , VHRNO - , CRDN_STDG_NM - , CRDN_ROAD_NM - , CRDN_PLC - , DTL_CRDN_PLC - , TEAM_ID - , VLTN_ID - , CRDN_SPAREA_CD - , CRDN_BGNG_TM - , CRDN_END_HR - , CRDN_SN - , GPS_X - , GPS_Y - , MOSC_X - , MOSC_Y - , TOWNG_YN - , ATCH_FILE_CNT - , VIN - , VHCL_NM - , VHCL_COLOR - , USE_FUEL_CD - , USG_SE_CD - , MXMM_LOAD_QY - , TKCAR_PSNCPA_CNT - , CARMDL_ASORT_NM - , CARMDL_TYPE_NM - , CARMDL_CLSF_NM - , ERSR_YMD - , FFNLG_CARMDL_CD - , PARKNG_PSBLTY_RSLT_CD - , VLTN_NMTM - , OVTIME_YN - , RVW_SE_CD - , RVW_PRCS_SCRN_NM - , RVW_DT - , RVWR - , FFNLG_AMT - , FFNLG_RDUCT_RT - , LEVY_AMT - , ADVNTCE_BGNG_YMD - , ADVNTCE_DUDT_YMD - , ADVNTCE_LEVY_AMT - , OPNN_SBMSN_YN - , ETC_CN - , LEVY_ID - , CRDN_STTS_CD - , CRDN_STTS_CHG_DT - , ADTN_AMT - , MINUS_AMT - , RCVMT_AMT - , BFR_CRDN_ID - , DEL_YN /* 삭제 여부 */ - , REG_DT /* 등록 일시 */ - , RGTR /* 등록자 */ - ) - SELECT - , #{excl03.crdnId} - , SGG_CD - , TASK_SE_CD - , CRDN_REG_SE_CD - , CRDN_INPT_SE_CD - , LINK_TBL_NM - , LINK_ID - , RTPYR_ID - , CRDN_SE_CD - , CRDN_YMD - , CRDN_TM - , VHRNO - , CRDN_STDG_NM - , CRDN_ROAD_NM - , CRDN_PLC - , DTL_CRDN_PLC - , TEAM_ID - , VLTN_ID - , CRDN_SPAREA_CD - , CRDN_BGNG_TM - , CRDN_END_HR - , CRDN_SN - , GPS_X - , GPS_Y - , MOSC_X - , MOSC_Y - , TOWNG_YN - , ATCH_FILE_CNT - , VIN - , VHCL_NM - , VHCL_COLOR - , USE_FUEL_CD - , USG_SE_CD - , MXMM_LOAD_QY - , TKCAR_PSNCPA_CNT - , CARMDL_ASORT_NM - , CARMDL_TYPE_NM - , CARMDL_CLSF_NM - , ERSR_YMD - , FFNLG_CARMDL_CD - , PARKNG_PSBLTY_RSLT_CD - , VLTN_NMTM - , OVTIME_YN - , RVW_SE_CD - , RVW_PRCS_SCRN_NM - , RVW_DT - , RVWR - , FFNLG_AMT - , FFNLG_RDUCT_RT - , LEVY_AMT - , ADVNTCE_BGNG_YMD - , ADVNTCE_DUDT_YMD - , ADVNTCE_LEVY_AMT - , OPNN_SBMSN_YN - , ETC_CN - , NULL /* 부과 ID */ - , '01' /* 단속 상태 코드 */ - , /* 단속 상태 변경 일시 */ - , '0' /* 가산 금액 */ - , '0' /* 감경 금액 */ - , '0' /* 수납 금액 */ - , CRDN_ID - , 'N' /* 삭제 여부 */ - , #{excl03.createdAt} /* 등록 일시 */ - , #{excl03.createdBy} /* 등록자 */ - FROM TB_CRDN - WHERE CRDN_ID = #{excl03.bfrCrdnId} /* 이전 단속 ID */ - - diff --git a/src/main/resources/sql/mapper/interfaces/emailRequest-mapper.xml b/src/main/resources/sql/mapper/interfaces/emailRequest-mapper.xml new file mode 100644 index 00000000..2e71394c --- /dev/null +++ b/src/main/resources/sql/mapper/interfaces/emailRequest-mapper.xml @@ -0,0 +1,835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT CON_KEY + , RCEPT_ID + , DATA_CD + , DIV_KB + , DFPAYYN + , RCPT_KB + , SEAL_CD + , WORD_KB + , MAIL_CNT + , RECEV_CNT + , ENV_CD + , COLOR_YN + , MM_YN + , FLEX_CD + , DM_CNT + , SB_FG + , APVL_NB + , SEND_DATE + , SEND_TIME + , RELORSECT_CD + , RECEV_SENDER_ORG_CODE + , RECEV_SENDER_NM + , RECEV_SENDER_ZIPCODE + , RECEV_SENDER_ADDR + , RECEV_SENDER_DETAILADDR + , RECEV_SENDER_DEPART_TEL + , RECEV_SENDER_DEPART_NM + , RECEV_DIV_CD + , RECEV_PRINT_DT + , RECEV_PRINT_YEAR + , RECEV_PRINT_MONTH + , RECEV_PRINT_DAY + , RECEV_SENDER_FAX + , RECEV_SERDER_STAFF + , RECEV_SENDER_EMAIL + , SNDNG_ID + , JOB_CD + , REG_VAR_DATA1 + , REG_VAR_DATA2 + , REG_VAR_DATA3 + , REG_VAR_DATA4 + , REG_VAR_DATA5 + , POST_PROC_STT + , RCEPT_YMD + , DEL_YN + , REG_DT + , RGTR + , DEL_DT + , DLTR + FROM TB_EPOST_RCPT_REG + + + + + +/* 전자우편 신청 등록(emailRequestMapper.insertRequest) */ +INSERT INTO TB_EPOST_RCPT_REG ( + CON_KEY + , RCEPT_ID + , DATA_CD + , DIV_KB + , DFPAYYN + , RCPT_KB + , SEAL_CD + , WORD_KB + , MAIL_CNT + , RECEV_CNT + , ENV_CD + , COLOR_YN + , MM_YN + , FLEX_CD + , DM_CNT + , SB_FG + , APVL_NB + , SEND_DATE + , SEND_TIME + , RELORSECT_CD + , RECEV_SENDER_ORG_CODE + , RECEV_SENDER_NM + , RECEV_SENDER_ZIPCODE + , RECEV_SENDER_ADDR + , RECEV_SENDER_DETAILADDR + , RECEV_SENDER_DEPART_TEL + , RECEV_SENDER_DEPART_NM + , RECEV_DIV_CD + , RECEV_PRINT_DT + , RECEV_PRINT_YEAR + , RECEV_PRINT_MONTH + , RECEV_PRINT_DAY + , RECEV_SENDER_FAX + , RECEV_SERDER_STAFF + , RECEV_SENDER_EMAIL + , SNDNG_ID + , JOB_CD + , REG_VAR_DATA1 + , REG_VAR_DATA2 + , REG_VAR_DATA3 + , REG_VAR_DATA4 + , REG_VAR_DATA5 + , POST_PROC_STT + , RCEPT_YMD + , DEL_YN + , REG_DT + , RGTR + , DEL_DT + , DLTR +) VALUES ( + #{emailRequest.conKey} + , #{emailRequest.rceptId} + , #{emailRequest.dataCd} + , #{emailRequest.divKb} + , #{emailRequest.dfpayyn} + , #{emailRequest.rcptKb} + , #{emailRequest.sealCd} + , #{emailRequest.wordKb} + , #{emailRequest.mailCnt} + , #{emailRequest.recevCnt} + , #{emailRequest.envCd} + , #{emailRequest.colorYn} + , #{emailRequest.mmYn} + , #{emailRequest.flexCd} + , #{emailRequest.dmCnt} + , #{emailRequest.sbFg} + , #{emailRequest.apvlNb} + , #{emailRequest.sendDate} + , #{emailRequest.sendTime} + , #{emailRequest.relorsectCd} + , #{emailRequest.recevSenderOrgCode} + , #{emailRequest.recevSenderNm} + , #{emailRequest.recevSenderZipcode} + , #{emailRequest.recevSenderAddr} + , #{emailRequest.recevSenderDetailaddr} + , #{emailRequest.recevSenderDepartTel} + , #{emailRequest.recevSenderDepartNm} + , #{emailRequest.recevDivCd} + , #{emailRequest.recevPrintDt} + , #{emailRequest.recevPrintYear} + , #{emailRequest.recevPrintMonth} + , #{emailRequest.recevPrintDay} + , #{emailRequest.recevSenderFax} + , #{emailRequest.recevSerderStaff} + , #{emailRequest.recevSenderEmail} + , #{emailRequest.sndngId} + , #{emailRequest.jobCd} + , #{emailRequest.regVarData1} + , #{emailRequest.regVarData2} + , #{emailRequest.regVarData3} + , #{emailRequest.regVarData4} + , #{emailRequest.regVarData5} + , #{emailRequest.postProcStt} + , #{emailRequest.rceptYmd} + , #{emailRequest.delYn} + , + , #{currentUser.id} + , #{emailRequest.removedAt} + , #{emailRequest.removedBy} +) + +/* 전자우편 신청 수정(emailRequestMapper.updateRequest) */ +UPDATE TB_EPOST_RCPT_REG SET + RCEPT_ID = #{emailRequest.rceptId} + , DATA_CD = #{emailRequest.dataCd} + , DIV_KB = #{emailRequest.divKb} + , DFPAYYN = #{emailRequest.dfpayyn} + , RCPT_KB = #{emailRequest.rcptKb} + , SEAL_CD = #{emailRequest.sealCd} + , WORD_KB = #{emailRequest.wordKb} + , MAIL_CNT = #{emailRequest.mailCnt} + , RECEV_CNT = #{emailRequest.recevCnt} + , ENV_CD = #{emailRequest.envCd} + , COLOR_YN = #{emailRequest.colorYn} + , MM_YN = #{emailRequest.mmYn} + , FLEX_CD = #{emailRequest.flexCd} + , DM_CNT = #{emailRequest.dmCnt} + , SB_FG = #{emailRequest.sbFg} + , APVL_NB = #{emailRequest.apvlNb} + , SEND_DATE = #{emailRequest.sendDate} + , SEND_TIME = #{emailRequest.sendTime} + , RELORSECT_CD = #{emailRequest.relorsectCd} + , RECEV_SENDER_ORG_CODE = #{emailRequest.recevSenderOrgCode} + , RECEV_SENDER_NM = #{emailRequest.recevSenderNm} + , RECEV_SENDER_ZIPCODE = #{emailRequest.recevSenderZipcode} + , RECEV_SENDER_ADDR = #{emailRequest.recevSenderAddr} + , RECEV_SENDER_DETAILADDR = #{emailRequest.recevSenderDetailaddr} + , RECEV_SENDER_DEPART_TEL = #{emailRequest.recevSenderDepartTel} + , RECEV_SENDER_DEPART_NM = #{emailRequest.recevSenderDepartNm} + , RECEV_DIV_CD = #{emailRequest.recevDivCd} + , RECEV_PRINT_DT = #{emailRequest.recevPrintDt} + , RECEV_PRINT_YEAR = #{emailRequest.recevPrintYear} + , RECEV_PRINT_MONTH = #{emailRequest.recevPrintMonth} + , RECEV_PRINT_DAY = #{emailRequest.recevPrintDay} + , RECEV_SENDER_FAX = #{emailRequest.recevSenderFax} + , RECEV_SERDER_STAFF = #{emailRequest.recevSerderStaff} + , RECEV_SENDER_EMAIL = #{emailRequest.recevSenderEmail} + , SNDNG_ID = #{emailRequest.sndngId} + , JOB_CD = #{emailRequest.jobCd} + , REG_VAR_DATA1 = #{emailRequest.regVarData1} + , REG_VAR_DATA2 = #{emailRequest.regVarData2} + , REG_VAR_DATA3 = #{emailRequest.regVarData3} + , REG_VAR_DATA4 = #{emailRequest.regVarData4} + , REG_VAR_DATA5 = #{emailRequest.regVarData5} + , POST_PROC_STT = #{emailRequest.postProcStt} + , RCEPT_YMD = #{emailRequest.rceptYmd} + , DEL_YN = #{emailRequest.delYn} + , DEL_DT = #{emailRequest.removedAt} + , DLTR = #{emailRequest.removedBy} + WHERE CON_KEY = #{emailRequest.conKey} + +/* 전자우편 신청 상태 변경(emailRequestMapper.updateRequestStatus) */ +UPDATE TB_EPOST_RCPT_REG SET + POST_PROC_STT = #{status} + , RCEPT_YMD = CASE CON_KEY + WHEN #{result.reletcdata} THEN #{result.rceptYmd} + ELSE RCEPT_YMD END + WHERE CON_KEY IN ( + #{conKey} + #{result.reldivkey} + #{result.reletcdata} + #{result.conKey} + #{result.reletcdata} + ) + AND POST_PROC_STT < #{maxStatus} + +/* 전자우편 배달 완료 처리(emailRequestMapper.updateRequestAsDelivered) */ +UPDATE TB_EPOST_RCPT_REG SET + POST_PROC_STT = #{status} + WHERE POST_PROC_STT = '27' + AND DEL_YN = 'N' + AND REG_DT < CONCAT(DATE_FORMAT(DATE_SUB(CURRENT_DATE, INTERVAL #{expiryDays} DAY), '%Y%m%d'), '000000') + +/* 전자우편 신청 삭제(emailRequestMapper.deleteRequest) */ +UPDATE TB_EPOST_RCPT_REG SET + DEL_YN = 'Y' + , DEL_DT = + , DLTR = #{currentUser.id} + WHERE CON_KEY IN (#{conKey}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT CON_KEY + , RGST_NMBR + , RECEV_SEQ + , RECEV_CODE + , RECEV_BAR1D + , RECEV_BAR2D + , RECEV_BILL_NUNBER + , RECEV_DOC_CD1 + , RECEV_DOC_CD2 + , RECEV_DOC_CD3 + , RECEV_DOC_CD4 + , RECEV_DOC_CD5 + , RECEV_SUBJ1 + , RECEV_SUBJ2 + , RECEV_SUBJ3 + , RECEV_VIOLATE_DT + , RECEV_VIOLATE_DONG + , RECEV_VIOLATE_PLACE + , RECEV_LAWS + , RECEV_PAY_NUMBER1 + , RECEV_PAY_NUMBER2 + , RECEV_OCR0 + , RECEV_OCR1 + , RECEV_OCR2 + , RECEV_ONLINE_PAY_NUMBER + , RECEV_FINE_PRICE + , RECEV_PAY_PRICE + , RECEV_PAY_DT + , RECEV_PAY_IN_DATE + , RECEV_PAY_IN_PRICE + , RECEV_PAY_IN_ADD_PRICE + , RECEV_PAY_IN_DEFAULT_PRICE + , RECEV_PAY_OUT_DATE + , RECEV_PAY_OUT_PRICE + , RECEV_PAY_OUT_ADD_PRICE + , RECEV_PAY_OUT_DEFAULT_PRICE + , RECEV_CAR_NUMBER + , RECEV_CAR_OWNER_ZIPCODE + , RECEV_CAR_OWNER_ADDR + , RECEV_CAR_OWNER_DETAILADDR + , RECEV_CAR_OWNER_NM + , RECEV_CAR_OWNER_SSN + , RECEV_EVIDENCE_NUMBER + , RECEV_PHOTO_CNT + , RECEV_PHOTO_FILENAME1 + , RECEV_PHOTO_FILENAME2 + , RECEV_PHOTO_FILENAME3 + , RECEV_PHOTO_FILENAME4 + , VRACTNO2 + , VRACTNO3 + , VRACTNO4 + , VRACTNO5 + , VRACTNO6 + , VRACTNO7 + , VRACTNO8 + , VRACTNO9 + , VRACTNO10 + , VRACTNO11 + , DTL_VAR_DATA1 + , DTL_VAR_DATA2 + , DTL_VAR_DATA3 + , DTL_VAR_DATA4 + , DTL_VAR_DATA5 + , DLVR_RSLT_ID + , MAKE_RSLT_CD + , REG_DT + , RGTR + , VRACTNO + FROM TB_EPOST_RCPT_DTL + + + + + +/* 전자우편 신청 상세 등록(emailRequestMapper.insertRequestDetail) */ +INSERT INTO TB_EPOST_RCPT_DTL ( + CON_KEY + , RGST_NMBR + , RECEV_SEQ + , RECEV_CODE + , RECEV_BAR1D + , RECEV_BAR2D + , RECEV_BILL_NUNBER + , RECEV_DOC_CD1 + , RECEV_DOC_CD2 + , RECEV_DOC_CD3 + , RECEV_DOC_CD4 + , RECEV_DOC_CD5 + , RECEV_SUBJ1 + , RECEV_SUBJ2 + , RECEV_SUBJ3 + , RECEV_VIOLATE_DT + , RECEV_VIOLATE_DONG + , RECEV_VIOLATE_PLACE + , RECEV_LAWS + , RECEV_PAY_NUMBER1 + , RECEV_PAY_NUMBER2 + , RECEV_OCR0 + , RECEV_OCR1 + , RECEV_OCR2 + , RECEV_ONLINE_PAY_NUMBER + , RECEV_FINE_PRICE + , RECEV_PAY_PRICE + , RECEV_PAY_DT + , RECEV_PAY_IN_DATE + , RECEV_PAY_IN_PRICE + , RECEV_PAY_IN_ADD_PRICE + , RECEV_PAY_IN_DEFAULT_PRICE + , RECEV_PAY_OUT_DATE + , RECEV_PAY_OUT_PRICE + , RECEV_PAY_OUT_ADD_PRICE + , RECEV_PAY_OUT_DEFAULT_PRICE + , RECEV_CAR_NUMBER + , RECEV_CAR_OWNER_ZIPCODE + , RECEV_CAR_OWNER_ADDR + , RECEV_CAR_OWNER_DETAILADDR + , RECEV_CAR_OWNER_NM + , RECEV_CAR_OWNER_SSN + , RECEV_EVIDENCE_NUMBER + , RECEV_PHOTO_CNT + , RECEV_PHOTO_FILENAME1 + , RECEV_PHOTO_FILENAME2 + , RECEV_PHOTO_FILENAME3 + , RECEV_PHOTO_FILENAME4 + , VRACTNO2 + , VRACTNO3 + , VRACTNO4 + , VRACTNO5 + , VRACTNO6 + , VRACTNO7 + , VRACTNO8 + , VRACTNO9 + , VRACTNO10 + , VRACTNO11 + , DTL_VAR_DATA1 + , DTL_VAR_DATA2 + , DTL_VAR_DATA3 + , DTL_VAR_DATA4 + , DTL_VAR_DATA5 + , DLVR_RSLT_ID + , MAKE_RSLT_CD + , REG_DT + , RGTR + , VRACTNO +) VALUES ( + #{emailRequestDetail.conKey} + , #{emailRequestDetail.rgstNmbr} + , #{emailRequestDetail.recevSeq} + , #{emailRequestDetail.recevCode} + , #{emailRequestDetail.recevBar1d} + , #{emailRequestDetail.recevBar2d} + , #{emailRequestDetail.recevBillNunber} + , #{emailRequestDetail.recevDocCd1} + , #{emailRequestDetail.recevDocCd2} + , #{emailRequestDetail.recevDocCd3} + , #{emailRequestDetail.recevDocCd4} + , #{emailRequestDetail.recevDocCd5} + , #{emailRequestDetail.recevSubj1} + , #{emailRequestDetail.recevSubj2} + , #{emailRequestDetail.recevSubj3} + , #{emailRequestDetail.recevViolateDt} + , #{emailRequestDetail.recevViolateDong} + , #{emailRequestDetail.recevViolatePlace} + , #{emailRequestDetail.recevLaws} + , #{emailRequestDetail.recevPayNumber1} + , #{emailRequestDetail.recevPayNumber2} + , #{emailRequestDetail.recevOcr0} + , #{emailRequestDetail.recevOcr1} + , #{emailRequestDetail.recevOcr2} + , #{emailRequestDetail.recevOnlinePayNumber} + , #{emailRequestDetail.recevFinePrice} + , #{emailRequestDetail.recevPayPrice} + , #{emailRequestDetail.recevPayDt} + , #{emailRequestDetail.recevPayInDate} + , #{emailRequestDetail.recevPayInPrice} + , #{emailRequestDetail.recevPayInAddPrice} + , #{emailRequestDetail.recevPayInDefaultPrice} + , #{emailRequestDetail.recevPayOutDate} + , #{emailRequestDetail.recevPayOutPrice} + , #{emailRequestDetail.recevPayOutAddPrice} + , #{emailRequestDetail.recevPayOutDefaultPrice} + , #{emailRequestDetail.recevCarNumber} + , #{emailRequestDetail.recevCarOwnerZipcode} + , #{emailRequestDetail.recevCarOwnerAddr} + , #{emailRequestDetail.recevCarOwnerDetailaddr} + , #{emailRequestDetail.recevCarOwnerNm} + , #{emailRequestDetail.recevCarOwnerSsn} + , #{emailRequestDetail.recevEvidenceNumber} + , #{emailRequestDetail.recevPhotoCnt} + , #{emailRequestDetail.recevPhotoFilename1} + , #{emailRequestDetail.recevPhotoFilename2} + , #{emailRequestDetail.recevPhotoFilename3} + , #{emailRequestDetail.recevPhotoFilename4} + , #{emailRequestDetail.vractno2} + , #{emailRequestDetail.vractno3} + , #{emailRequestDetail.vractno4} + , #{emailRequestDetail.vractno5} + , #{emailRequestDetail.vractno6} + , #{emailRequestDetail.vractno7} + , #{emailRequestDetail.vractno8} + , #{emailRequestDetail.vractno9} + , #{emailRequestDetail.vractno10} + , #{emailRequestDetail.vractno11} + , #{emailRequestDetail.dtlVarData1} + , #{emailRequestDetail.dtlVarData2} + , #{emailRequestDetail.dtlVarData3} + , #{emailRequestDetail.dtlVarData4} + , #{emailRequestDetail.dtlVarData5} + , #{emailRequestDetail.dlvrRsltId} + , #{emailRequestDetail.makeRsltCd} + , + , #{currentUser.id} + , #{emailRequestDetail.vractno} +) + +/* 전자우편 신청 상세 수정(emailRequestMapper.updateRequestDetail) */ +UPDATE TB_EPOST_RCPT_DTL SET + RECEV_SEQ = #{emailRequestDetail.recevSeq} + , RECEV_CODE = #{emailRequestDetail.recevCode} + , RECEV_BAR1D = #{emailRequestDetail.recevBar1d} + , RECEV_BAR2D = #{emailRequestDetail.recevBar2d} + , RECEV_BILL_NUNBER = #{emailRequestDetail.recevBillNunber} + , RECEV_DOC_CD1 = #{emailRequestDetail.recevDocCd1} + , RECEV_DOC_CD2 = #{emailRequestDetail.recevDocCd2} + , RECEV_DOC_CD3 = #{emailRequestDetail.recevDocCd3} + , RECEV_DOC_CD4 = #{emailRequestDetail.recevDocCd4} + , RECEV_DOC_CD5 = #{emailRequestDetail.recevDocCd5} + , RECEV_SUBJ1 = #{emailRequestDetail.recevSubj1} + , RECEV_SUBJ2 = #{emailRequestDetail.recevSubj2} + , RECEV_SUBJ3 = #{emailRequestDetail.recevSubj3} + , RECEV_VIOLATE_DT = #{emailRequestDetail.recevViolateDt} + , RECEV_VIOLATE_DONG = #{emailRequestDetail.recevViolateDong} + , RECEV_VIOLATE_PLACE = #{emailRequestDetail.recevViolatePlace} + , RECEV_LAWS = #{emailRequestDetail.recevLaws} + , RECEV_PAY_NUMBER1 = #{emailRequestDetail.recevPayNumber1} + , RECEV_PAY_NUMBER2 = #{emailRequestDetail.recevPayNumber2} + , RECEV_OCR0 = #{emailRequestDetail.recevOcr0} + , RECEV_OCR1 = #{emailRequestDetail.recevOcr1} + , RECEV_OCR2 = #{emailRequestDetail.recevOcr2} + , RECEV_ONLINE_PAY_NUMBER = #{emailRequestDetail.recevOnlinePayNumber} + , RECEV_FINE_PRICE = #{emailRequestDetail.recevFinePrice} + , RECEV_PAY_PRICE = #{emailRequestDetail.recevPayPrice} + , RECEV_PAY_DT = #{emailRequestDetail.recevPayDt} + , RECEV_PAY_IN_DATE = #{emailRequestDetail.recevPayInDate} + , RECEV_PAY_IN_PRICE = #{emailRequestDetail.recevPayInPrice} + , RECEV_PAY_IN_ADD_PRICE = #{emailRequestDetail.recevPayInAddPrice} + , RECEV_PAY_IN_DEFAULT_PRICE = #{emailRequestDetail.recevPayInDefaultPrice} + , RECEV_PAY_OUT_DATE = #{emailRequestDetail.recevPayOutDate} + , RECEV_PAY_OUT_PRICE = #{emailRequestDetail.recevPayOutPrice} + , RECEV_PAY_OUT_ADD_PRICE = #{emailRequestDetail.recevPayOutAddPrice} + , RECEV_PAY_OUT_DEFAULT_PRICE = #{emailRequestDetail.recevPayOutDefaultPrice} + , RECEV_CAR_NUMBER = #{emailRequestDetail.recevCarNumber} + , RECEV_CAR_OWNER_ZIPCODE = #{emailRequestDetail.recevCarOwnerZipcode} + , RECEV_CAR_OWNER_ADDR = #{emailRequestDetail.recevCarOwnerAddr} + , RECEV_CAR_OWNER_DETAILADDR = #{emailRequestDetail.recevCarOwnerDetailaddr} + , RECEV_CAR_OWNER_NM = #{emailRequestDetail.recevCarOwnerNm} + , RECEV_CAR_OWNER_SSN = #{emailRequestDetail.recevCarOwnerSsn} + , RECEV_EVIDENCE_NUMBER = #{emailRequestDetail.recevEvidenceNumber} + , RECEV_PHOTO_CNT = #{emailRequestDetail.recevPhotoCnt} + , RECEV_PHOTO_FILENAME1 = #{emailRequestDetail.recevPhotoFilename1} + , RECEV_PHOTO_FILENAME2 = #{emailRequestDetail.recevPhotoFilename2} + , RECEV_PHOTO_FILENAME3 = #{emailRequestDetail.recevPhotoFilename3} + , RECEV_PHOTO_FILENAME4 = #{emailRequestDetail.recevPhotoFilename4} + , VRACTNO2 = #{emailRequestDetail.vractno2} + , VRACTNO3 = #{emailRequestDetail.vractno3} + , VRACTNO4 = #{emailRequestDetail.vractno4} + , VRACTNO5 = #{emailRequestDetail.vractno5} + , VRACTNO6 = #{emailRequestDetail.vractno6} + , VRACTNO7 = #{emailRequestDetail.vractno7} + , VRACTNO8 = #{emailRequestDetail.vractno8} + , VRACTNO9 = #{emailRequestDetail.vractno9} + , VRACTNO10 = #{emailRequestDetail.vractno10} + , VRACTNO11 = #{emailRequestDetail.vractno11} + , DTL_VAR_DATA1 = #{emailRequestDetail.dtlVarData1} + , DTL_VAR_DATA2 = #{emailRequestDetail.dtlVarData2} + , DTL_VAR_DATA3 = #{emailRequestDetail.dtlVarData3} + , DTL_VAR_DATA4 = #{emailRequestDetail.dtlVarData4} + , DTL_VAR_DATA5 = #{emailRequestDetail.dtlVarData5} + , DLVR_RSLT_ID = #{emailRequestDetail.dlvrRsltId} + , MAKE_RSLT_CD = #{emailRequestDetail.makeRsltCd} + , VRACTNO = #{emailRequestDetail.vractno} + WHERE CON_KEY = #{emailRequestDetail.conKey} + AND RGST_NMBR = #{emailRequestDetail.rgstNmbr} + +/* 전자우편 신청 상세 상태 변경(emailRequestMapper.updateRequestDetailStatus) */ +UPDATE TB_EPOST_RCPT_DTL A + + , ( + SELECT #{result.conKey} CON_KEY, #{result.rgstNmbr} RGST_NMBR, #{result.dataCd} MAKE_RSLT_CD + ) B + SET A.MAKE_RSLT_CD = B.MAKE_RSLT_CD + + + , ( + SELECT #{result.reletcdata} CON_KEY, #{result.regino} RGST_NMBR, #{result.dlvrRsltId} DLVR_RSLT_ID + ) B + SET A.DLVR_RSLT_ID = B.DLVR_RSLT_ID + + WHERE A.CON_KEY = B.CON_KEY + AND B.RGST_NMBR = B.RGST_NMBR + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/interfaces/emailResult-mapper.xml b/src/main/resources/sql/mapper/interfaces/emailResult-mapper.xml new file mode 100644 index 00000000..73a2c9b4 --- /dev/null +++ b/src/main/resources/sql/mapper/interfaces/emailResult-mapper.xml @@ -0,0 +1,216 @@ + + + + + + +/* 전자우편 신청 수신 결과 등록(emailResultMapper.insertReceptionResult) */ + +SELECT IFNULL(MAX(RCPTN_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID + FROM TB_EPOST_RCPTN_RSLT A, () B + WHERE RCPTN_RSLT_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_EPOST_RCPTN_RSLT ( + RCPTN_RSLT_ID + , OUTSIDUSERID + , INIT_TIME + , RECV_FILENAME + , RELDIVKEY + , RECPRSNSEQ + , REGINO + , ATTACHFILENM + , JUNGHAP1 + , JUNGHAP2 + , JUNGHAP3 + , CODE + , MSG + , REG_DT + , RGTR +) +SELECT #{rcptnRsltId} + , #{outsiduserid} + , #{initTime} + , #{recvFilename} + , #{reldivkey} + , #{recprsnseq} + , #{regino} + , #{attachfilenm} + , #{junghap1} + , #{junghap2} + , #{junghap3} + , #{code} + , #{msg} + , #{createdAt} + , #{createdBy} + WHERE NOT EXISTS ( + SELECT 1 + FROM TB_EPOST_RCPTN_RSLT + WHERE RELDIVKEY = #{reldivkey} + AND REGINO = #{regino} + ) + +/* 전자우편 신청 접수 결과 등록(emailResultMapper.insertRegistrationResult) */ + +SELECT IFNULL(MAX(RCPT_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID + FROM TB_EPOST_RCPT_RSLT A, () B + WHERE RCPT_RSLT_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_EPOST_RCPT_RSLT ( + RCPT_RSLT_ID + , CON_ORG + , RELORSECT_CD + , RELETCDATA + , EXTRI_REGYMD + , RCEPT_YMD + , RCEPT_ID + , DIV_KB + , RCEPT_CNT + , RCEPT_AMT + , USEFEE_AMT + , TOTPOST_PRC + , JOB_CD + , REG_DT + , RGTR +) +SELECT #{rcptRsltId} + , #{conOrg} + , #{relorsectCd} + , #{reletcdata} + , #{extriRegymd} + , #{rceptYmd} + , #{rceptId} + , #{divKb} + , #{rceptCnt} + , #{rceptAmt} + , #{usefeeAmt} + , #{totpostPrc} + , #{jobCd} + , #{createdAt} + , #{createdBy} + FROM DUAL + WHERE NOT EXISTS ( + SELECT 1 + FROM TB_EPOST_RCPT_RSLT + WHERE RELETCDATA = #{reletcdata} + ) + +/* 전자우편 신청 접수 결과(jobCd) 업데이트(emailResultMapper.updateRegistrationResult) */ +UPDATE TB_EPOST_RCPT_RSLT A + , TB_EPOST_RCPT_REG B + SET A.JOB_CD = SUBSTR(B.JOB_CD, 2) + WHERE A.RELETCDATA IN (#{conKey}) + AND A.RELETCDATA = B.CON_KEY + +/* 전자우편 제작 결과 등록(emailResultMapper.insertProductionResult) */ +INSERT INTO TB_EPOST_MAKE_RSLT ( + CON_KEY + , RGST_NMBR + , RELETCDATA + , DATA_CD + , MAIL_CNT + , REG_DT + , RGTR +) +SELECT #{conKey} + , #{rgstNmbr} + , #{reletcdata} + , #{dataCd} + , #{mailCnt} + , #{createdAt} + , #{createdBy} + FROM DUAL + WHERE NOT EXISTS ( + SELECT 1 + FROM TB_EPOST_MAKE_RSLT + WHERE CON_KEY = #{conKey} + AND RGST_NMBR = #{rgstNmbr} + ) + +/* 전자우편 배달 결과 등록(emailResultMapper.insertDeliveryResult) */ + +SELECT IFNULL(MAX(DLVR_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID + FROM TB_EPOST_DLVR_RSLT A, () B + WHERE DLVR_RSLT_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_EPOST_DLVR_RSLT ( + DLVR_RSLT_ID + , CON_KEY + , OUTSIDUSERID + , RELETCDATA + , REGINO + , DELIVYMD + , DELIVHHMI + , DELIVRSLTCD + , NONDELIVREASNCD + , NONDELIVREASNCDNM + , SUBRECPRSNNM + , RELRECPRSNCD + , RELRECPRSNCDNM + , REG_DT + , RGTR +) VALUES ( + #{dlvrRsltId} + , #{reletcdata} + , #{outsiduserid} + , #{reletcdata} + , #{regino} + , #{delivymd} + , #{delivhhmi} + , #{delivrsltcd} + , #{nondelivreasncd} + , #{nondelivreasncdnm} + , #{subrecprsnnm} + , #{relrecprsncd} + , #{relrecprsncdnm} + , #{createdAt} + , #{createdBy} +) + + + +/* 전자우편 신청결과 로그 등록(emailResultMapper.insertResultLogs) */ +INSERT INTO TB_EPOST_PROC_LOG ( + PROC_ID + , PROC_SEQ + , PROC_TYPE + , RESULT_ID + , CON_KEY + , RGST_NMBR + , PROC_STT + , REG_DT + , RGTR +) +SELECT #{log.procId} + , #{log.procSeq} + , #{log.procType} + , #{log.resultId} + , #{log.conKey} + , #{log.rgstNmbr} + , 'N' + , #{log.createdAt} + , #{log.createdBy} + + +/* 전자우편 신청결과 로그 상태 업데이트(emailResultMapper.updateResultLogStatus) */ +UPDATE TB_EPOST_PROC_LOG A + , ( + SELECT #{log.PROC_ID} PROC_ID, #{log.PROC_SEQ} PROC_SEQ, #{log.PROC_STT} PROC_STT + ) B + SET A.PROC_STT = B.PROC_STT + WHERE A.PROC_ID = B.PROC_ID + AND A.PROC_SEQ = B.PROC_SEQ + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/interfaces/smg-mapper.xml b/src/main/resources/sql/mapper/interfaces/smg-mapper.xml new file mode 100644 index 00000000..19f9689c --- /dev/null +++ b/src/main/resources/sql/mapper/interfaces/smg-mapper.xml @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/* smgMapper.insertPetition(국민신문고 수신 민원 등록) */ +INSERT INTO TB_ESB_INTERFACE ( + INTERFACE_SEQ_N + , SYS_GUBUN_C + , ANC_CODE_V + , PETI_GUBUN_C + , PETI_ANC_CODE_V + , PETI_NO_C + , CIVIL_NO_C + , PETER_NAME_V + , ZIP_CODE_C + , ADDRESS_V + , EMAIL_V + , CEL_NO_V + , TEL_NO_V + , PETI_TITLE_V + , PETI_REASON_L + , OPEN_YN_C + , PETI_REG_D + , PETI_REASON_ATTACH_YN_C + , CIVIL_GIST_V + , CIVIL_ABSTRACT_L + , PCD_DEPT_V + , PCD_DEPT_NM_V + , DUTY_ID_V + , PCD_EMAIL_V + , PCD_TEL_V + , PCD_RST_CONT_L + , DO_REG_D + , PCD_RST_CONT_ATTACH_YN_C + , PCD_ANC_CODE_V + , PETI_PROC_DUR_N + , PETI_END_D + , ANC_REG_D + , MORE_AGAIN_V + , SATISFY_C + , SATISFY2_C + , SATISFY3_C + , SATISFY_REG_D + , REG_D + , SEND_YN_C + , SEND_D + , APPLY_D + , APPLY_GUBUN_C + , PCD_GUBUN_V + , PCD_GUBUN2_V + , PCD_GUBUN3_V + , PETI_PATH_GUBUN_C + , ORGNL_FILE_NM + , REG_DT + , RGTR +) VALUES ( + #{interfaceSeqN} + , #{sysGubunC} + , #{ancCodeV} + , #{petiGubunC} + , #{petiAncCodeV} + , #{petiNoC} + , #{civilNoC} + , #{peterNameV} + , #{zipCodeC} + , #{addressV} + , #{emailV} + , #{celNoV} + , #{telNoV} + , #{petiTitleV} + , #{petiReasonL} + , #{openYnC} + , #{petiRegD} + , #{petiReasonAttachYnC} + , #{civilGistV} + , #{civilAbstractL} + , #{pcdDeptV} + , #{pcdDeptNmV} + , #{dutyIdV} + , #{pcdEmailV} + , #{pcdTelV} + , #{pcdRstContL} + , #{doRegD} + , #{pcdRstContAttachYnC} + , #{pcdAncCodeV} + , #{petiProcDurN} + , #{petiEndD} + , #{ancRegD} + , #{moreAgainV} + , #{satisfyC} + , #{satisfy2C} + , #{satisfy3C} + , #{satisfyRegD} + , #{regD} + , #{sendYnC} + , #{sendD} + , #{applyD} + , #{applyGubunC} + , #{pcdGubunV} + , #{pcdGubun2V} + , #{pcdGubun3V} + , #{petiPathGubunC} + , #{originalFilename} + , + , #{createdBy} +) + +/* smgMapper.insertFile(국민신문고 수신 민원 첨부파일 등록) */ +INSERT INTO TB_ESB_INTERFACE_FILE ( + INTERFACE_SEQ_N + + , PETI_FILE_SIZE_N + , PETI_FILE_PATH1_V + , PETI_FILE_PATH2_V + , PETI_FILE_PATH3_V + , PETI_FILE_PATH4_V + , PETI_FILE_PATH5_V + + , PCD_FILE_SIZE_N + , PCD_FILE_PATH1_V + , PCD_FILE_PATH2_V + , PCD_FILE_PATH3_V + , PCD_FILE_PATH4_V + , PCD_FILE_PATH5_V + + , STRG_ATCHFILE_NM1 + , STRG_ATCHFILE_NM2 + , STRG_ATCHFILE_NM3 + , STRG_ATCHFILE_NM4 + , STRG_ATCHFILE_NM5 +) VALUES ( + #{interfaceSeqN} + + , #{petiFileSizeN} + , #{petiFilePath1V} + , #{petiFilePath2V} + , #{petiFilePath3V} + , #{petiFilePath4V} + , #{petiFilePath5V} + + , #{pcdFileSizeN} + , #{pcdFilePath1V} + , #{pcdFilePath1V} + , #{pcdFilePath1V} + , #{pcdFilePath1V} + , #{pcdFilePath1V} + + , #{attachmentPath1} + , #{attachmentPath2} + , #{attachmentPath3} + , #{attachmentPath4} + , #{attachmentPath5} +) + + + +/* smgMapper.insertReply(답변/반송 등록)*/ +INSERT INTO TB_ESB_INTERFACE_TRSM ( + INTERFACE_SEQ_N + , SYS_GUBUN_C + , ANC_CODE_V + , PETI_GUBUN_C + , PETI_ANC_CODE_V + , PETI_NO_C + , CIVIL_NO_C + , CIVIL_GIST_V + , CIVIL_ABSTRACT_L + , PCD_DEPT_V + , PCD_DEPT_NM_V + , DUTY_ID_V + , PCD_EMAIL_V + , PCD_TEL_V + , PCD_RST_CONT_L + , DO_REG_D + , PCD_RST_CONT_ATTACH_YN_C + , PCD_ANC_CODE_V + , REG_D + , SEND_YN_C + , SEND_D + , APPLY_D + , APPLY_GUBUN_C + , PCD_GUBUN_V + , PCD_GUBUN2_V + , PCD_GUBUN3_V + , TRSM_INTERFACE_SEQ_N + , TRSM_STTS_CD + , TRSM_STTS_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{reply.interfaceSeqN} + , #{reply.sysGubunC} + , #{reply.ancCodeV} + , #{reply.petiGubunC} + , #{reply.petiAncCodeV} + , #{reply.petiNoC} + , #{reply.civilNoC} + , #{reply.civilGistV} + , #{reply.civilAbstractL} + , #{reply.pcdDeptV} + , #{reply.pcdDeptNmV} + , #{reply.dutyIdV} + , #{reply.pcdEmailV} + , #{reply.pcdTelV} + , #{reply.pcdRstContL} + , #{reply.doRegD} + , #{reply.pcdRstContAttachYnC} + , #{reply.pcdAncCodeV} + , #{reply.regD} + , #{reply.sendYnC} + , #{reply.sendD} + , #{reply.applyD} + , #{reply.applyGubunC} + , #{reply.pcdGubunV} + , #{reply.pcdGubun2V} + , #{reply.pcdGubun3V} + , #{reply.sendInterfaceSeqN} + , #{reply.sendStatus} + , #{reply.sendStatusMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* smgMapper.updateSendStatus(답변/반송 전송상태 업데이트) */ +UPDATE TB_ESB_INTERFACE_TRSM A + , ( + SELECT #{reply.interfaceSeqN} INTERFACE_SEQ_N, #{reply.sendInterfaceSeqN} TRSM_INTERFACE_SEQ_N, #{reply.sendD} SEND_D, #{reply.applyD} APPLY_D, #{reply.applyGubunC} APPLY_GUBUN_C, #{reply.sendStatus} TRSM_STTS_CD, #{reply.sendStatusMsg} TRSM_STTS_MSG + ) B + SET A.TRSM_INTERFACE_SEQ_N = B.TRSM_INTERFACE_SEQ_N + , A.SEND_D = B.SEND_D + , A.APPLY_D = B.APPLY_D + , A.APPLY_GUBUN_C = B.APPLY_GUBUN_C + , A.TRSM_STTS_CD = B.TRSM_STTS_CD + , A.TRSM_STTS_MSG = B.TRSM_STTS_MSG + , A.MDFCN_DT = #{now} + , A.MDFR = #{currentUser.id} + WHERE A.INTERFACE_SEQ_N = B.INTERFACE_SEQ_N + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/interfaces/vehicleInfo-mapper.xml b/src/main/resources/sql/mapper/interfaces/vehicleInfo-mapper.xml new file mode 100644 index 00000000..178be247 --- /dev/null +++ b/src/main/resources/sql/mapper/interfaces/vehicleInfo-mapper.xml @@ -0,0 +1,186 @@ + + + + +/* vehicleInfoMapper.insertBasicInfo(자동차 기본사항 조회 로그 등록) */ +INSERT INTO TB_BASIC_INFO_LOG ( + LOG_ID + , PRYE + , REGIST_DE + , ERSR_REGIST_SE_CODE + , ERSR_REGIST_SE_NM + , ERSR_REGIST_DE + , REGIST_DETAIL_CODE + , DSPLVL + , USE_STRNGHLD_LEGALDONG_CODE + , USE_STRNGHLD_ADSTRD_CODE + , USE_STRNGHLD_MNTN + , USE_STRNGHLD_LNBR + , USE_STRNGHLD_HO + , USE_STRNGHLD_ADRES_NM + , USE_STRNGHLD_ROAD_NM_CODE + , USGSRHLD_UNDGRND_BULD_SE_CODE + , USE_STRNGHLD_BULD_MAIN_NO + , USE_STRNGHLD_BULD_SUB_NO + , MBER_SE_CODE + , MBER_NM + , MBER_SE_NO + , TELNO + , OWNER_LEGALDONG_CODE + , OWNER_ADSTRD_CODE + , OWNER_MNTN + , OWNER_LNBR + , OWNER_HO + , OWNER_ADRES_NM + , OWNER_ROAD_NM_CODE + , OWNER_UNDGRND_BULD_SE_CODE + , OWNER_BULD_MAIN_NO + , OWNER_BULD_SUB_NO + , OWNER_ADRES_FULL + , AFTR_VHRNO + , USE_FUEL_CODE + , PRPOS_SE_CODE + , MTRS_FOM_NM + , FRNT_VHRNO + , VHRNO + , VIN + , CNM + , VHCLE_TOT_WT + , CAAG_ENDDE + , CHANGE_DE + , VHCTY_ASORT_CODE + , VHCTY_TY_CODE + , VHCTY_SE_CODE + , MXMM_LDG + , VHCTY_ASORT_NM + , VHCTY_TY_NM + , VHCTY_SE_NM + , FRST_REGIST_DE + , FOM_NM + , ACQS_DE + , ACQS_END_DE + , YBL_MD + , TRANSR_REGIST_DE + , SPCF_REGIST_STTUS_CODE + , COLOR_NM + , MRTG_CO + , SEIZR_CO + , STMD_CO + , NMPL_CSDY_AT + , NMPL_CSDY_REMNR_DE + , ORIGIN_SE_CODE + , NMPL_STNDRD_CODE + , ACQS_AMOUNT + , INSPT_VALID_PD_BGNDE + , INSPT_VALID_PD_ENDDE + , CHCK_VALID_PD_BGNDE + , CHCK_VALID_PD_ENDDE + , USE_STRNGHLD_GRC_CODE + , TKCAR_PSCAP_CO + , SPMNNO + , TRVL_DSTNC + , FRST_REGIST_RQRCNO + , VLNT_ERSR_PRVNTC_NTICE_DE + , REGIST_INSTT_NM + , PROCESS_IMPRTY_RESN_CODE + , PROCESS_IMPRTY_RESN_DTLS + , VIMS_PRPOS_SE_CODE + , VIMS_VHCTY_ASORT_CODE + , VIMS_VHCTY_TY_CODE + , VIMS_VHCTY_SE_CODE + , CBD_LT + , CBD_BT + , CBD_HG + , FRST_MXMM_LDG +) VALUES ( + + , #{prye} + , #{regist_de} + , #{ersr_regist_se_code} + , #{ersr_regist_se_nm} + , #{ersr_regist_de} + , #{regist_detail_code} + , #{dsplvl} + , #{use_strnghld_legaldong_code} + , #{use_strnghld_adstrd_code} + , #{use_strnghld_mntn} + , #{use_strnghld_lnbr} + , #{use_strnghld_ho} + , #{use_strnghld_adres_nm} + , #{use_strnghld_road_nm_code} + , #{usgsrhld_undgrnd_buld_se_code} + , #{use_strnghld_buld_main_no} + , #{use_strnghld_buld_sub_no} + , #{mber_se_code} + , #{mber_nm} + , #{mber_se_no} + , #{telno} + , #{owner_legaldong_code} + , #{owner_adstrd_code} + , #{owner_mntn} + , #{owner_lnbr} + , #{owner_ho} + , #{owner_adres_nm} + , #{owner_road_nm_code} + , #{owner_undgrnd_buld_se_code} + , #{owner_buld_main_no} + , #{owner_buld_sub_no} + , #{owner_adres_full} + , #{aftr_vhrno} + , #{use_fuel_code} + , #{prpos_se_code} + , #{mtrs_fom_nm} + , #{frnt_vhrno} + , #{vhrno} + , #{vin} + , #{cnm} + , #{vhcle_tot_wt} + , #{caag_endde} + , #{change_de} + , #{vhcty_asort_code} + , #{vhcty_ty_code} + , #{vhcty_se_code} + , #{mxmm_ldg} + , #{vhcty_asort_nm} + , #{vhcty_ty_nm} + , #{vhcty_se_nm} + , #{frst_regist_de} + , #{fom_nm} + , #{acqs_de} + , #{acqs_end_de} + , #{ybl_md} + , #{transr_regist_de} + , #{spcf_regist_sttus_code} + , #{color_nm} + , #{mrtg_co} + , #{seizr_co} + , #{stmd_co} + , #{nmpl_csdy_at} + , #{nmpl_csdy_remnr_de} + , #{origin_se_code} + , #{nmpl_stndrd_code} + , #{acqs_amount} + , #{inspt_valid_pd_bgnde} + , #{inspt_valid_pd_endde} + , #{chck_valid_pd_bgnde} + , #{chck_valid_pd_endde} + , #{use_strnghld_grc_code} + , #{tkcar_pscap_co} + , #{spmnno} + , #{trvl_dstnc} + , #{frst_regist_rqrcno} + , #{vlnt_ersr_prvntc_ntice_de} + , #{regist_instt_nm} + , #{process_imprty_resn_code} + , #{process_imprty_resn_dtls} + , #{vims_prpos_se_code} + , #{vims_vhcty_asort_code} + , #{vims_vhcty_ty_code} + , #{vims_vhcty_se_code} + , #{cbd_lt} + , #{cbd_bt} + , #{cbd_hg} + , #{frst_mxmm_ldg} +) + + \ No newline at end of file diff --git a/src/main/webapp/resources/image/fims/framework/계도장 발송현황.svg b/src/main/resources/svg/계도장 발송현황.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/계도장 발송현황.svg rename to src/main/resources/svg/계도장 발송현황.svg diff --git a/src/main/webapp/resources/image/fims/framework/고정형cctv.svg b/src/main/resources/svg/고정형cctv.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/고정형cctv.svg rename to src/main/resources/svg/고정형cctv.svg diff --git a/src/main/webapp/resources/image/fims/framework/고지서 발송현황.svg b/src/main/resources/svg/고지서 발송현황.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/고지서 발송현황.svg rename to src/main/resources/svg/고지서 발송현황.svg diff --git a/src/main/webapp/resources/image/fims/framework/도보단속.svg b/src/main/resources/svg/도보단속.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/도보단속.svg rename to src/main/resources/svg/도보단속.svg diff --git a/src/main/webapp/resources/image/fims/framework/등록대상.svg b/src/main/resources/svg/등록대상.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/등록대상.svg rename to src/main/resources/svg/등록대상.svg diff --git a/src/main/webapp/resources/image/fims/framework/민원(즉시단속).svg b/src/main/resources/svg/민원(즉시단속).svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/민원(즉시단속).svg rename to src/main/resources/svg/민원(즉시단속).svg diff --git a/src/main/webapp/resources/image/fims/framework/사전통보 발송현황.svg b/src/main/resources/svg/사전통보 발송현황.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/사전통보 발송현황.svg rename to src/main/resources/svg/사전통보 발송현황.svg diff --git a/src/main/webapp/resources/image/fims/framework/수용_미수용.svg b/src/main/resources/svg/수용_미수용.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/수용_미수용.svg rename to src/main/resources/svg/수용_미수용.svg diff --git a/src/main/webapp/resources/image/fims/framework/이동형cctv.svg b/src/main/resources/svg/이동형cctv.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/이동형cctv.svg rename to src/main/resources/svg/이동형cctv.svg diff --git a/src/main/webapp/resources/image/fims/framework/이첩대상.svg b/src/main/resources/svg/이첩대상.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/이첩대상.svg rename to src/main/resources/svg/이첩대상.svg diff --git a/src/main/webapp/resources/image/fims/framework/자진취하.svg b/src/main/resources/svg/자진취하.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/자진취하.svg rename to src/main/resources/svg/자진취하.svg diff --git a/src/main/webapp/resources/image/fims/framework/접수.svg b/src/main/resources/svg/접수.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/접수.svg rename to src/main/resources/svg/접수.svg diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp index 7dd61604..02482bb2 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp @@ -296,7 +296,10 @@ $(document).ready(function(){ ajax.get({ url : $P.crdnControl.urls.getInfo, - data : {"crdnId" : dataKey}, + data : { + "crdnId" : dataKey, + "openerPageName" : "${pageName}" + }, success : resp => { dialog.open({ id : dialogId, diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp index a67b8443..1fe6e236 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp @@ -2,7 +2,7 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
    -
    +
    @@ -10,7 +10,7 @@
    -
    -
    -
    -
    - +
    - +
    - +
    - +
    -
    - +
    + class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">답변기한
    - +
    - +
    - +
    - +
    - +
    - +
    - + @@ -152,36 +152,36 @@
    - +
    - +
    - +
    - +