플로우 위젝 라벨표시 및 , 배치관리 회사별 분리
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user