|
|
@@ -40,14 +40,6 @@ public abstract class TsbAbstractJob<I, O, R> {
|
|
|
* Batch Job 시작 로그를 출력한다.
|
|
|
*/
|
|
|
protected void printStart() {
|
|
|
- if (StringUtils.isNotBlank(batchId)) {
|
|
|
- // 배치명 조회
|
|
|
- batchName = batchService.getBatchName(batchId);
|
|
|
-
|
|
|
- // 배치로그 생성
|
|
|
- batchLogSq = batchService.createBatchLog(batchId);
|
|
|
- }
|
|
|
-
|
|
|
startTime = System.currentTimeMillis();
|
|
|
|
|
|
log.info("################################################################################");
|
|
|
@@ -104,6 +96,19 @@ public abstract class TsbAbstractJob<I, O, R> {
|
|
|
public void runById(String batchId) throws Exception {
|
|
|
this.batchId = batchId;
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(batchId)) {
|
|
|
+ // 배치명 조회
|
|
|
+ batchName = batchService.getBatchName(batchId);
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(batchName)) {
|
|
|
+ System.exit(500);
|
|
|
+ log.info("{} 배치는 미사용으로 종료합니다.(TB_BATCH 테이블 참조)");
|
|
|
+ }
|
|
|
+
|
|
|
+ // 배치로그 생성
|
|
|
+ batchLogSq = batchService.createBatchLog(batchId);
|
|
|
+ }
|
|
|
+
|
|
|
this.printStart();
|
|
|
|
|
|
readItem = this.read();
|