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' -- 견인 여부 코드