FIX : 파일 업무 구분 수정

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

@ -20,11 +20,9 @@ public class FimsConst {
@Getter
@AllArgsConstructor
public enum FileJobSeCode {
NATL_NEWS_PAPER_RCV("NATL_NEWS_PAPER_RCV", "민원심사-국민신문고")
,BUS_INSTALL("BUS_INSTALL", "버스장착형CCTV")
,CCTV_FIX("CCTV_FIX", "cctv-고정형")
,CCTV_DRV("CCTV_DRV", "cctv-주행형")
,CMM_BOARD("CMM_BOARD", "게시판-첨부파일")
NATL_NEWS_PAPER_RCV("EIF", "민원심사-국민신문고"),
CRDN_FILE_LINK("CFL","cctv단속연계파일"),
CMM_BOARD("BBS", "게시판-첨부파일")
;
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) {
return CmmFileDTO.FileMst.builder()
.jobSeCode(
Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())?
FimsConst.FileJobSeCode.CCTV_DRV.getCode()
: FimsConst.FileJobSeCode.CCTV_FIX.getCode())
.jobSeCode(FimsConst.FileJobSeCode.CRDN_FILE_LINK.getCode())
.fileJobId(fileJobId)
.uploadeJobPath(Objects.equals(crdnSeCd, FimsConst.CrdnSeCd.CCTV_DRV.getCode())?
uploadCctvDrvPath

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

Loading…
Cancel
Save