|
|
@ -130,9 +130,9 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
extrDTO.setSggCd(getUserInfo().getPstinstCode());
|
|
|
|
extrDTO.setSggCd(getUserInfo().getPstinstCode());
|
|
|
|
|
|
|
|
|
|
|
|
if(records.size() >= 3){
|
|
|
|
if(records.size() >= 3){
|
|
|
|
extrDTO.setRegltSeCode(FimsConst.RegltSeCode.CCTV_DRV.getCode());
|
|
|
|
extrDTO.setCrdnSeCd(FimsConst.CrdnSeCd.CCTV_DRV.getCode());
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
extrDTO.setRegltSeCode(FimsConst.RegltSeCode.CCTV_FIX.getCode());
|
|
|
|
extrDTO.setCrdnSeCd(FimsConst.CrdnSeCd.CCTV_FIX.getCode());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 외부연계 데이타 생성
|
|
|
|
// 외부연계 데이타 생성
|
|
|
|
mapper.insertEcExtrlRegltCntc(extrDTO);
|
|
|
|
mapper.insertEcExtrlRegltCntc(extrDTO);
|
|
|
@ -140,7 +140,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
// CCTV image 저장
|
|
|
|
// CCTV image 저장
|
|
|
|
List<MultipartFile> cpListMf = new ArrayList<>(mfList);
|
|
|
|
List<MultipartFile> cpListMf = new ArrayList<>(mfList);
|
|
|
|
cpListMf.remove(0);
|
|
|
|
cpListMf.remove(0);
|
|
|
|
cmmFileService.saveFiles(getFileMst(extrDTO.getRegltSeCode(), extrDTO.getExtrlRegltCntcId()), cpListMf);
|
|
|
|
cmmFileService.saveFiles(getFileMst(extrDTO.getCrdnSeCd(), extrDTO.getExtrlRegltCntcId()), cpListMf);
|
|
|
|
|
|
|
|
|
|
|
|
// 단속 데이타 생성 - 단속이미지가 처리후(단속이미지 갯수 count)
|
|
|
|
// 단속 데이타 생성 - 단속이미지가 처리후(단속이미지 갯수 count)
|
|
|
|
CctvCrackdownDTO.Request reqDTO = getRequestDTO(extrDTO);
|
|
|
|
CctvCrackdownDTO.Request reqDTO = getRequestDTO(extrDTO);
|
|
|
@ -201,14 +201,14 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
.regltEqpmnManageNo(busOnlyDTO.getRegltEquip())
|
|
|
|
.regltEqpmnManageNo(busOnlyDTO.getRegltEquip())
|
|
|
|
.rgtr(getUserInfo().getUniqId())
|
|
|
|
.rgtr(getUserInfo().getUniqId())
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
extrDTO.setRegltSeCode(FimsConst.RegltSeCode.BUS_ONLY.getCode());
|
|
|
|
extrDTO.setCrdnSeCd(FimsConst.CrdnSeCd.BUS_ONLY.getCode());
|
|
|
|
extrDTO.setExtrlRegltCntcProcessSttus(FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode());
|
|
|
|
extrDTO.setExtrlRegltCntcProcessSttus(FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode());
|
|
|
|
// 외부연계 데이타 생성
|
|
|
|
// 외부연계 데이타 생성
|
|
|
|
mapper.insertEcExtrlRegltCntc(extrDTO);
|
|
|
|
mapper.insertEcExtrlRegltCntc(extrDTO);
|
|
|
|
|
|
|
|
|
|
|
|
// CCTV 이미지 저장
|
|
|
|
// CCTV 이미지 저장
|
|
|
|
CmmFileDTO.FileMst fileMstDTO = CmmFileDTO.FileMst.builder()
|
|
|
|
CmmFileDTO.FileMst fileMstDTO = CmmFileDTO.FileMst.builder()
|
|
|
|
.jobSeCode(FimsBizUtils.getFileJobSeCode(extrDTO.getRegltSeCode()))
|
|
|
|
.jobSeCode(FimsBizUtils.getFileJobSeCode(extrDTO.getCrdnSeCd()))
|
|
|
|
.fileJobId(extrDTO.getExtrlRegltCntcId())
|
|
|
|
.fileJobId(extrDTO.getExtrlRegltCntcId())
|
|
|
|
.uploadeJobPath(uploadBusCctvPath)
|
|
|
|
.uploadeJobPath(uploadBusCctvPath)
|
|
|
|
.fileDirPath(FimsConst.FileDirDepth.DAY.getCode())
|
|
|
|
.fileDirPath(FimsConst.FileDirDepth.DAY.getCode())
|
|
|
@ -261,7 +261,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
public void saveRtReglt(final CctvCrackdownDTO.Request dto) {
|
|
|
|
public void saveRtReglt(final CctvCrackdownDTO.Request dto) {
|
|
|
|
dto.setJobSeCode(FimsBizUtils.getFileJobSeCode(dto.getRegltSeCode()));
|
|
|
|
dto.setJobSeCode(FimsBizUtils.getFileJobSeCode(dto.getCrdnSeCd()));
|
|
|
|
dto.setRegltProcessSttusCode(FimsConst.RegltProcessSttusCode.CRACKDOWN_INIT.getCode());
|
|
|
|
dto.setRegltProcessSttusCode(FimsConst.RegltProcessSttusCode.CRACKDOWN_INIT.getCode());
|
|
|
|
dto.setRgtr(getUserInfo().getUniqId());
|
|
|
|
dto.setRgtr(getUserInfo().getUniqId());
|
|
|
|
mapper.insertRtRegltFromEcExtrRegltCntc(dto);
|
|
|
|
mapper.insertRtRegltFromEcExtrRegltCntc(dto);
|
|
|
@ -278,7 +278,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
public void saveRtErpp(final CctvCrackdownDTO.Request dto) {
|
|
|
|
public void saveRtErpp(final CctvCrackdownDTO.Request dto) {
|
|
|
|
// 단속테이블
|
|
|
|
// 단속테이블
|
|
|
|
dto.setJobSeCode(FimsBizUtils.getFileJobSeCode(dto.getRegltSeCode()));
|
|
|
|
dto.setJobSeCode(FimsBizUtils.getFileJobSeCode(dto.getCrdnSeCd()));
|
|
|
|
dto.setRegltProcessSttusCode(FimsConst.RegltProcessSttusCode.DISALLOW.getCode());
|
|
|
|
dto.setRegltProcessSttusCode(FimsConst.RegltProcessSttusCode.DISALLOW.getCode());
|
|
|
|
dto.setRgtr(getUserInfo().getUniqId());
|
|
|
|
dto.setRgtr(getUserInfo().getUniqId());
|
|
|
|
mapper.insertRtRegltFromEcExtrRegltCntc(dto);
|
|
|
|
mapper.insertRtRegltFromEcExtrRegltCntc(dto);
|
|
|
@ -335,9 +335,9 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
.builder()
|
|
|
|
.builder()
|
|
|
|
.extrlRegltCntcId(extrDTO.getExtrlRegltCntcId())
|
|
|
|
.extrlRegltCntcId(extrDTO.getExtrlRegltCntcId())
|
|
|
|
.crdnId(extrDTO.getCrdnId())
|
|
|
|
.crdnId(extrDTO.getCrdnId())
|
|
|
|
.regltSeCode(extrDTO.getRegltSeCode())
|
|
|
|
.crdnSeCd(extrDTO.getCrdnSeCd())
|
|
|
|
.crdnInptSeCd(extrDTO.getCrdnInptSeCd())
|
|
|
|
.crdnInptSeCd(extrDTO.getCrdnInptSeCd())
|
|
|
|
.jobSeCode(FimsBizUtils.getFileJobSeCode(extrDTO.getRegltSeCode()))
|
|
|
|
.jobSeCode(FimsBizUtils.getFileJobSeCode(extrDTO.getCrdnSeCd()))
|
|
|
|
.crdnRegSeCd(FimsConst.CrdnRegSeCd.AUTO_REGIST.getCode())
|
|
|
|
.crdnRegSeCd(FimsConst.CrdnRegSeCd.AUTO_REGIST.getCode())
|
|
|
|
.regltProcessSttusCode(FimsConst.RegltProcessSttusCode.CRACKDOWN_INIT.getCode())
|
|
|
|
.regltProcessSttusCode(FimsConst.RegltProcessSttusCode.CRACKDOWN_INIT.getCode())
|
|
|
|
.regltPlace(extrDTO.getRegltPlace())
|
|
|
|
.regltPlace(extrDTO.getRegltPlace())
|
|
|
@ -349,14 +349,14 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private CmmFileDTO.FileMst getFileMst(final String regltSeCode, final String fileJobId) {
|
|
|
|
private CmmFileDTO.FileMst getFileMst(final String crdnSeCd, final String fileJobId) {
|
|
|
|
return CmmFileDTO.FileMst.builder()
|
|
|
|
return CmmFileDTO.FileMst.builder()
|
|
|
|
.jobSeCode(
|
|
|
|
.jobSeCode(
|
|
|
|
Objects.equals(regltSeCode, FimsConst.RegltSeCode.CCTV_DRV.getCode())?
|
|
|
|
Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())?
|
|
|
|
FimsConst.FileJobSeCode.CCTV_DRV.getCode()
|
|
|
|
FimsConst.FileJobSeCode.CCTV_DRV.getCode()
|
|
|
|
: FimsConst.FileJobSeCode.CCTV_FIX.getCode())
|
|
|
|
: FimsConst.FileJobSeCode.CCTV_FIX.getCode())
|
|
|
|
.fileJobId(fileJobId)
|
|
|
|
.fileJobId(fileJobId)
|
|
|
|
.uploadeJobPath(Objects.equals(regltSeCode, FimsConst.RegltSeCode.CCTV_DRV.getCode())?
|
|
|
|
.uploadeJobPath(Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())?
|
|
|
|
uploadCctvDrvPath
|
|
|
|
uploadCctvDrvPath
|
|
|
|
: uploadCctvFixPath)
|
|
|
|
: uploadCctvFixPath)
|
|
|
|
.fileDirPath(FimsConst.FileDirDepth.DAY.getCode())
|
|
|
|
.fileDirPath(FimsConst.FileDirDepth.DAY.getCode())
|
|
|
|