|
@@ -9,6 +9,7 @@ import com.its.op.dto.its.facility.TbFcltInfrDto;
|
|
|
import com.its.op.dto.its.facility.UnRegisteredFcltInfrDto;
|
|
|
import com.its.op.dto.its.rse.TbRseCtlrDto;
|
|
|
import com.its.op.dto.its.scrs.TbScIxrCmraMngmDto;
|
|
|
+import com.its.op.dto.its.scrs.TbScIxrMngmDto;
|
|
|
import com.its.op.dto.its.scrs.TbScSgnlCtlrDto;
|
|
|
import com.its.op.dto.its.vds.TbVdsCtlrDto;
|
|
|
import com.its.op.dto.its.vms.TbVmsCtlrDto;
|
|
@@ -19,6 +20,7 @@ import com.its.op.global.CodeManager;
|
|
|
import com.its.op.service.its.cctv.TbCctvCtlrService;
|
|
|
import com.its.op.service.its.rse.TbRseCtlrService;
|
|
|
import com.its.op.service.its.scrs.TbScIxrCmraMngmService;
|
|
|
+import com.its.op.service.its.scrs.TbScIxrMngmService;
|
|
|
import com.its.op.service.its.scrs.TbScSgnlCtlrService;
|
|
|
import com.its.op.service.its.vds.TbVdsCtlrService;
|
|
|
import com.its.op.service.its.vms.TbVmsCtlrService;
|
|
@@ -43,6 +45,7 @@ public class TbFcltInfrService {
|
|
|
private final TbRseCtlrService dsrcCtlrService;
|
|
|
private final TbScSgnlCtlrService sigCtlrService;
|
|
|
private final TbScIxrCmraMngmService ccamCtlrService;
|
|
|
+ private final TbScIxrMngmService crsCtlrService;
|
|
|
private final TbCmmnCdRepository cmmnCdRepo;
|
|
|
|
|
|
// 데이터 1건 조회, 없으면 exception
|
|
@@ -277,6 +280,20 @@ public class TbFcltInfrService {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ // 교차로
|
|
|
+ if (fcltType == null || "CRS".equals(fcltType)) {
|
|
|
+ List<TbScIxrMngmDto> crsList = this.crsCtlrService.findAllList();
|
|
|
+ crsList.forEach(obj -> {
|
|
|
+ TbFcltInfrDto regObj = regMap.get(obj.getIxrId());
|
|
|
+ if (regObj == null) {
|
|
|
+ result.add(UnRegisteredFcltInfrDto.builder()
|
|
|
+ .fcltType("CRS")
|
|
|
+ .fcltId(obj.getIxrId())
|
|
|
+ .fcltLctn(obj.getIxrNm())
|
|
|
+ .build());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -297,6 +314,11 @@ public class TbFcltInfrService {
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 시설물 ID 신규 번호
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Transactional(readOnly = true)
|
|
|
public NewIdLongDto getNewNmbr() {
|
|
|
Long newId = this.repo.getNewNmbr();
|