플로우 위젝 라벨표시 및 , 배치관리 회사별 분리

This commit is contained in:
kjs
2025-10-28 12:06:54 +09:00
parent c0f2fbbd88
commit 7c45b3e254
8 changed files with 486 additions and 270 deletions

View File

@@ -13,10 +13,11 @@ import { ApiResponse } from "../types/batchTypes";
export class BatchExecutionLogService {
/**
* 배치 실행 로그 목록 조회
* 배치 실행 로그 목록 조회 (회사별)
*/
static async getExecutionLogs(
filter: BatchExecutionLogFilter = {}
filter: BatchExecutionLogFilter = {},
userCompanyCode?: string
): Promise<ApiResponse<BatchExecutionLogWithConfig[]>> {
try {
const {
@@ -36,6 +37,12 @@ export class BatchExecutionLogService {
const params: any[] = [];
let paramIndex = 1;
// 회사별 필터링 (최고 관리자가 아닌 경우)
if (userCompanyCode && userCompanyCode !== "*") {
whereConditions.push(`bc.company_code = $${paramIndex++}`);
params.push(userCompanyCode);
}
if (batch_config_id) {
whereConditions.push(`bel.batch_config_id = $${paramIndex++}`);
params.push(batch_config_id);