FIX : 파일 업무 구분 수정

main
이범준 1 year ago
parent 0f6982e8f4
commit d269800cf5

@ -20,11 +20,9 @@ public class FimsConst {
@Getter @Getter
@AllArgsConstructor @AllArgsConstructor
public enum FileJobSeCode { public enum FileJobSeCode {
NATL_NEWS_PAPER_RCV("NATL_NEWS_PAPER_RCV", "민원심사-국민신문고") NATL_NEWS_PAPER_RCV("EIF", "민원심사-국민신문고"),
,BUS_INSTALL("BUS_INSTALL", "버스장착형CCTV") CRDN_FILE_LINK("CFL","cctv단속연계파일"),
,CCTV_FIX("CCTV_FIX", "cctv-고정형") CMM_BOARD("BBS", "게시판-첨부파일")
,CCTV_DRV("CCTV_DRV", "cctv-주행형")
,CMM_BOARD("CMM_BOARD", "게시판-첨부파일")
; ;
private final String code; private final String code;

@ -370,10 +370,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
private CmmFileDTO.FileMst getFileMst(final String crdnSeCd, final String fileJobId) { private CmmFileDTO.FileMst getFileMst(final String crdnSeCd, final String fileJobId) {
return CmmFileDTO.FileMst.builder() return CmmFileDTO.FileMst.builder()
.jobSeCode( .jobSeCode(FimsConst.FileJobSeCode.CRDN_FILE_LINK.getCode())
Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())?
FimsConst.FileJobSeCode.CCTV_DRV.getCode()
: FimsConst.FileJobSeCode.CCTV_FIX.getCode())
.fileJobId(fileJobId) .fileJobId(fileJobId)
.uploadeJobPath(Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())? .uploadeJobPath(Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())?
uploadCctvDrvPath uploadCctvDrvPath

@ -22,17 +22,11 @@ public class FimsBizUtils {
} }
public static String getFileJobSeCode(String crdnSeCd) { public static String getFileJobSeCode(String crdnSeCd) {
// 01 - 고정형CCTV // 01 - CCTV
if(Objects.equals(crdnSeCd, "01"))//FimsConst.FileJobSeCode.CCTV_FIX)) if(Objects.equals(crdnSeCd, "01") || Objects.equals(crdnSeCd, "02") || Objects.equals(crdnSeCd, "07"))
return FimsConst.FileJobSeCode.CCTV_FIX.getCode(); return FimsConst.FileJobSeCode.CRDN_FILE_LINK.getCode();
// 02 - 주행형CCTV
if(Objects.equals(crdnSeCd, "02"))//FimsConst.FileJobSeCode.CCTV_DRV)) if(Objects.equals(crdnSeCd, "09"))
return FimsConst.FileJobSeCode.CCTV_DRV.getCode();
// 03 - 버스장착형CCTV
if(Objects.equals(crdnSeCd, "07"))//FimsConst.FileJobSeCode.BUS_INSTALL))
return FimsConst.FileJobSeCode.BUS_INSTALL.getCode();
if(Objects.equals(crdnSeCd, "09"))//FimsConst.FileJobSeCode.BUS_INSTALL))
return FimsConst.FileJobSeCode.NATL_NEWS_PAPER_RCV.getCode(); return FimsConst.FileJobSeCode.NATL_NEWS_PAPER_RCV.getCode();
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "데이타 오류[파일정보를 확인해 주세요"); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "데이타 오류[파일정보를 확인해 주세요");

Loading…
Cancel
Save