From f2fbba67b8c62eca31fdedbb696d83393215e3a1 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 5 Jun 2023 15:22:57 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=8A=B9=EB=B3=84=EB=8B=A8=EC=86=8D?= =?UTF-8?q?=EA=B5=AC=EC=97=AD=20=EC=BD=94=EB=93=9C=20=EC=9E=85=EB=A0=A5=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/xit/fims/biz/ec/CctvCrackdownDTO.java | 1 + .../bean/EcCctvCrackdownServiceBean.java | 40 +++++++++++++++++++ .../ec/ec-extrl-reglt-cntc-mysql-mapper.xml | 5 +-- 3 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/main/java/kr/xit/fims/biz/ec/CctvCrackdownDTO.java b/src/main/java/kr/xit/fims/biz/ec/CctvCrackdownDTO.java index 12d873dc..69ff6b7b 100644 --- a/src/main/java/kr/xit/fims/biz/ec/CctvCrackdownDTO.java +++ b/src/main/java/kr/xit/fims/biz/ec/CctvCrackdownDTO.java @@ -276,6 +276,7 @@ public class CctvCrackdownDTO { private String vltnCn; private String crdnStdgNm; private String crdnSpareaNm; + private String crdnSpareaCd; private String crdnPlc; /** diff --git a/src/main/java/kr/xit/fims/biz/ec/service/bean/EcCctvCrackdownServiceBean.java b/src/main/java/kr/xit/fims/biz/ec/service/bean/EcCctvCrackdownServiceBean.java index dddc745f..baee035f 100644 --- a/src/main/java/kr/xit/fims/biz/ec/service/bean/EcCctvCrackdownServiceBean.java +++ b/src/main/java/kr/xit/fims/biz/ec/service/bean/EcCctvCrackdownServiceBean.java @@ -157,6 +157,16 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E int imgCnt = fm.getCmmFileDtls().size(); CctvCrackdownDTO.Request reqDTO = getRequestDTO(extrDTO); reqDTO.setAtchFileCnt(imgCnt); + if(reqDTO.getCrdnSpareaNm() != null && !"".equals(reqDTO.getCrdnSpareaNm())){ + for (FimsConst.CrdnSpareaCd e : FimsConst.CrdnSpareaCd.values()) { + if (e.getDesc().equals(reqDTO.getCrdnSpareaNm())) { + reqDTO.setCrdnSpareaCd(e.getCode()); + break; + } + } + } else { + reqDTO.setCrdnSpareaCd(""); + } mapper.insertRtRegltFromEcExtrRegltCntc(reqDTO); // 단속상태 변경이력 생성 rtCrackdownMgtMapper.insertRtProcessSttsChangeHist( @@ -235,6 +245,16 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E // 단속 데이타 생성 - 단속이미지가 처리후(단속이미지 갯수 count) CctvCrackdownDTO.Request reqDTO = getRequestDTO(extrDTO); + if(reqDTO.getCrdnSpareaNm() != null && !"".equals(reqDTO.getCrdnSpareaNm())){ + for (FimsConst.CrdnSpareaCd e : FimsConst.CrdnSpareaCd.values()) { + if (e.getDesc().equals(reqDTO.getCrdnSpareaNm())) { + reqDTO.setCrdnSpareaCd(e.getCode()); + break; + } + } + } else { + reqDTO.setCrdnSpareaCd(""); + } mapper.insertRtRegltFromEcExtrRegltCntc(reqDTO); // 단속상태 변경이력 생성 rtCrackdownMgtMapper.insertRtProcessSttsChangeHist( @@ -281,6 +301,16 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E dto.setInfType(FimsBizUtils.getFileInfType(dto.getCrdnSeCd())); dto.setCrdnSttsCd(FimsConst.CrdnSttsCd.CRACKDOWN_INIT.getCode()); dto.setRgtr(getUserInfo().getUniqId()); + if(dto.getCrdnSpareaNm() != null && !"".equals(dto.getCrdnSpareaNm())){ + for (FimsConst.CrdnSpareaCd e : FimsConst.CrdnSpareaCd.values()) { + if (e.getDesc().equals(dto.getCrdnSpareaNm())) { + dto.setCrdnSpareaCd(e.getCode()); + break; + } + } + } else { + dto.setCrdnSpareaCd(""); + } mapper.insertRtRegltFromEcExtrRegltCntc(dto); dto.setMdfr(getUserInfo().getUniqId()); @@ -298,6 +328,16 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E dto.setInfType(FimsBizUtils.getFileInfType(dto.getCrdnSeCd())); dto.setCrdnSttsCd(FimsConst.CrdnSttsCd.DISALLOW.getCode()); dto.setRgtr(getUserInfo().getUniqId()); + if(dto.getCrdnSpareaNm() != null && !"".equals(dto.getCrdnSpareaNm())){ + for (FimsConst.CrdnSpareaCd e : FimsConst.CrdnSpareaCd.values()) { + if (e.getDesc().equals(dto.getCrdnSpareaNm())) { + dto.setCrdnSpareaCd(e.getCode()); + break; + } + } + } else { + dto.setCrdnSpareaCd(""); + } mapper.insertRtRegltFromEcExtrRegltCntc(dto); // 서손테이블 diff --git a/src/main/resources/sql/mapper/biz/ec/ec-extrl-reglt-cntc-mysql-mapper.xml b/src/main/resources/sql/mapper/biz/ec/ec-extrl-reglt-cntc-mysql-mapper.xml index 253c8d0c..35f6b58d 100644 --- a/src/main/resources/sql/mapper/biz/ec/ec-extrl-reglt-cntc-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/biz/ec/ec-extrl-reglt-cntc-mysql-mapper.xml @@ -165,10 +165,7 @@ , crdn_plc -- crdn_plc , '1' -- 위반 횟수 , crdn_stdg_nm -- 위반 법정동 명 - , (SELECT tgt.mapng_code - FROM tb_cmm_code_mapng tgt - WHERE tgt.transr_code_nm = #{crdnSpareaNm} - ) -- 특변단속구역 코드 + , #{crdnSpareaCd} -- 특변단속구역 코드 , gps_x , gps_y , 'N' -- 견인 여부 코드