Merge remote-tracking branch 'origin/iipbs/st/dev'
This commit is contained in:
@@ -3,6 +3,8 @@ import { ENDPOINT } from "@/shared/config";
|
||||
|
||||
import type {
|
||||
VerificationTargetCodeResponse,
|
||||
VerificationTargetManagementCheckColumnsParams,
|
||||
VerificationTargetManagementCheckColumnsResponse,
|
||||
VerificationTargetManagementService,
|
||||
VerificationTargetManagementSearchParams,
|
||||
VerificationTargetManagementListApiResponse,
|
||||
@@ -26,7 +28,12 @@ export class VerificationTargetManagementApiService implements VerificationTarge
|
||||
const response =
|
||||
await client.get<VerificationTargetManagementListApiResponse>(
|
||||
`${ENDPOINT.STATVERIFY_SERVICE.VRFCTGT_MNG}`,
|
||||
{ params },
|
||||
{
|
||||
params,
|
||||
paramsSerializer: {
|
||||
indexes: null,
|
||||
},
|
||||
},
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
@@ -45,6 +52,21 @@ export class VerificationTargetManagementApiService implements VerificationTarge
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 검증 대상 컬럼 검사
|
||||
* @param params 검사 조건 (vrfcMthdCd)
|
||||
*/
|
||||
public async checkColumnsExist(
|
||||
params: VerificationTargetManagementCheckColumnsParams,
|
||||
): Promise<VerificationTargetManagementCheckColumnsResponse> {
|
||||
const response =
|
||||
await client.get<VerificationTargetManagementCheckColumnsResponse>(
|
||||
`${ENDPOINT.STATVERIFY_SERVICE.VRFCTGT_MNG}/check-columns`,
|
||||
{ params },
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 테이블 메타데이터 조회
|
||||
* @param statsCd 통계항목 코드
|
||||
|
||||
@@ -54,8 +54,8 @@ export const imrDetailGridColumnInfo: ColumnInfo = {
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
name: "statsNm",
|
||||
fieldName: "statsNm",
|
||||
name: "vrfcTrgtNm",
|
||||
fieldName: "vrfcTrgtNm",
|
||||
header: { text: "항목명" },
|
||||
width: 150,
|
||||
},
|
||||
@@ -78,7 +78,7 @@ export const imrDetailGridColumnInfo: ColumnInfo = {
|
||||
"addr",
|
||||
"pipeSeCd",
|
||||
"vrfcTrgtSn",
|
||||
"statsNm",
|
||||
"vrfcTrgtNm",
|
||||
"cryrVl",
|
||||
],
|
||||
};
|
||||
|
||||
+1
-1
@@ -6,8 +6,8 @@ export interface StAnlsRsltResponse {
|
||||
rsltSn: number; // 결과 일련번호
|
||||
anlsSn: number; // 분석 일련번호
|
||||
vrfcTrgtSn: number; // 검증 대상 일련번호
|
||||
vrfcTrgtNm: string; // 검증 대상명(항목명)
|
||||
admdstCd: string; // 행정구역 코드
|
||||
admdstNm: string; // 행정구역 명칭
|
||||
sido: string; // 시도
|
||||
gugun: string; // 시군구
|
||||
adstDong: string; // 행정동
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { PageableList } from "@/shared/model";
|
||||
import type { PageableList, PageableParams } from "@/shared/model";
|
||||
|
||||
export interface NumericColumnDto {
|
||||
columnName: string;
|
||||
@@ -46,16 +46,24 @@ export interface VerificationTargetManagementResponse {
|
||||
}
|
||||
|
||||
// 검증 대상 관리 검색 DTO
|
||||
export interface VerificationTargetManagementSearchParams {
|
||||
export interface VerificationTargetManagementSearchParams extends PageableParams {
|
||||
vrfcMthdCd?: string; // 검증 방법 코드
|
||||
statsCd?: string; // 통계 코드
|
||||
tblNm?: string; // 테이블 명
|
||||
colNm?: string; // 컬럼 명
|
||||
vrfcTrgtNm?: string; // 검증대상명
|
||||
useYn?: string; // 사용 여부
|
||||
page?: number; // 페이지 번호 (0부터 시작)
|
||||
size?: number; // 페이지 크기
|
||||
sort?: string; // 정렬 조건 (예: "vrfcTrgtSn,desc")
|
||||
}
|
||||
|
||||
// 검증 대상 컬럼 검사 검색 DTO
|
||||
export interface VerificationTargetManagementCheckColumnsParams {
|
||||
vrfcMthdCd: string; // 검증 방법 코드 (HB, IMR, VAL 등)
|
||||
}
|
||||
|
||||
// 검증 대상 컬럼 검사 응답 DTO
|
||||
export interface VerificationTargetManagementCheckColumnsResponse {
|
||||
code: number; // 응답 코드 (정상: 0, 에러: -1)
|
||||
message: string; // 응답 메시지
|
||||
}
|
||||
|
||||
// 검증 대상 관리 저장 요청 DTO
|
||||
@@ -109,6 +117,10 @@ export interface VerificationTargetManagementService {
|
||||
vrfcTrgtSn: number,
|
||||
): Promise<VerificationTargetManagementDetailApiResponse>;
|
||||
|
||||
checkColumnsExist(
|
||||
params: VerificationTargetManagementCheckColumnsParams,
|
||||
): Promise<VerificationTargetManagementCheckColumnsResponse>;
|
||||
|
||||
getVerificationTargetCodes(): Promise<VerificationTargetCodeResponse[]>;
|
||||
|
||||
saveVerificationTargetManagement(
|
||||
|
||||
Reference in New Issue
Block a user