- 선박 위험지표/선박 제재/회사 제재 변경 이력 조회 API 및 UI - tb_ship_risk_detail_hstry JOIN으로 Risk narrative(이전값/이후값) 표시 - indicator 테이블 column_name 매핑으로 다국어 필드명 지원 - Compliance overall 상태 토글 헤더에 배지 표시 - 다국어 캐시 (KO/EN 동시 조회, 언어 토글 즉시 전환) - Screening Guide에서 분리된 독립 페이지 (/risk-compliance-history) - indicator sort_order 기준 토글 내부 정렬 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
968 B
Java
26 lines
968 B
Java
package com.snp.batch.global.controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
/**
|
|
* SPA(React) fallback 라우터
|
|
*
|
|
* React Router가 클라이언트 사이드 라우팅을 처리하므로,
|
|
* 모든 프론트 경로를 index.html로 포워딩한다.
|
|
*/
|
|
@Controller
|
|
public class WebViewController {
|
|
|
|
@GetMapping({"/", "/jobs", "/executions", "/executions/{id:\\d+}",
|
|
"/recollects", "/recollects/{id:\\d+}",
|
|
"/schedules", "/schedule-timeline", "/monitoring",
|
|
"/bypass-config", "/screening-guide", "/risk-compliance-history",
|
|
"/jobs/**", "/executions/**", "/recollects/**",
|
|
"/schedules/**", "/schedule-timeline/**", "/monitoring/**",
|
|
"/bypass-config/**", "/screening-guide/**", "/risk-compliance-history/**"})
|
|
public String forward() {
|
|
return "forward:/index.html";
|
|
}
|
|
}
|