fix: メルク施設マスタ作成処理起動判定を修正

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-04-18 12:22:45 +09:00
parent e0175b3228
commit f0b91c6a74

View File

@ -2,20 +2,15 @@ from src.batch.common.batch_context import BatchContext
from src.logging.get_logger import get_logger
batch_context = BatchContext.get_instance()
logger = get_logger('メルク施設統合マスタ作成')
logger = get_logger('メルク施設マスタ作成')
def exec():
"""メルク施設統合マスタ作成"""
"""メルク施設マスタ作成"""
# 営業日ではない場合、処理をスキップする
if batch_context.is_not_business_day:
logger.info('営業日ではないため、メルク施設統合マスタ作成処理をスキップします。')
return
# アルトマーク取込が行われていない場合は処理をスキップする
if not batch_context.is_ultmarc_imported:
logger.info('アルトマーク取込が行われていないため、メルク施設統合マスタ作成処理をスキップします。')
# 営業日ではないかつ、アルトマーク取込が行われていない場合は処理をスキップする
if batch_context.is_not_business_day is True and batch_context.is_ultmarc_imported is not True:
logger.info('営業日ではない、かつ、アルトマーク取込が行われていないため、メルク施設マスタ作成処理をスキップします。')
return
pass