feat: profile 별 scheduler 실행되도록 반영

(천안 or 춘천)
main
Jonguk. Lim 3 months ago
parent e8f16d1629
commit 1f5ba00f76

@ -3,6 +3,8 @@ package kr.xit.batch.ens.task.cmm;
import static egovframework.com.cmm.util.EgovStringUtil.*; import static egovframework.com.cmm.util.EgovStringUtil.*;
import java.util.Arrays; import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.slf4j.MDC; import org.slf4j.MDC;
@ -83,15 +85,15 @@ public class TaskCmmUtils {
); );
} }
public static ApiConstants.SignguCode[] getSignguCodeList() { public static List<ApiConstants.SignguCode> getSignguCodeList() {
if(ApiConstants.IS_CCN){ if(ApiConstants.IS_CCN){
return (ApiConstants.SignguCode[])Arrays.stream(ApiConstants.SignguCode.values()) return Arrays.stream(ApiConstants.SignguCode.values())
.filter(d -> d.getCode().equals(ApiConstants.SignguCode.CHUNCHEON.getCode())) .filter(d -> d.getCode().equals(ApiConstants.SignguCode.CHUNCHEON.getCode()))
.toArray(); .collect(Collectors.toList());
} }
return (ApiConstants.SignguCode[])Arrays.stream(ApiConstants.SignguCode.values()) return Arrays.stream(ApiConstants.SignguCode.values())
.filter(d -> !d.getCode().equals(ApiConstants.SignguCode.CHUNCHEON.getCode())) .filter(d -> !d.getCode().equals(ApiConstants.SignguCode.CHUNCHEON.getCode()))
.toArray(); .collect(Collectors.toList());
} }
} }

Loading…
Cancel
Save