24 lines
908 B
Python
24 lines
908 B
Python
"""実消化&アルトマーク実績洗替処理"""
|
|
from src.batch.batch_functions import get_batch_statuses
|
|
from src.batch.common.batch_context import BatchContext
|
|
from src.error.exceptions import BatchOperationException
|
|
from src.logging.get_logger import get_logger
|
|
from src.system_var import constants
|
|
from src.batch.laundering import (sales_results_laundering,
|
|
create_inst_merge_for_laundering)
|
|
|
|
logger = get_logger('実消化&アルトマーク実績洗替処理')
|
|
|
|
|
|
def exec():
|
|
try:
|
|
logger.debug('処理開始')
|
|
# 洗替用マスタ作成
|
|
create_inst_merge_for_laundering.exec()
|
|
# 卸販売実績全件洗替
|
|
sales_results_laundering.exec()
|
|
logger.debug('処理終了')
|
|
except BatchOperationException as e:
|
|
logger.exception(f'(異常終了){e}')
|
|
return constants.BATCH_EXIT_CODE_SUCCESS
|