From 81b3135c80953d63e98c99a526e497e16f67bc48 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 27 May 2025 22:01:48 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8C=AF=E3=82=8A=E5=88=86?= =?UTF-8?q?=E3=81=91=E5=87=A6=E7=90=86=E3=81=AE=E5=87=A6=E7=90=86=E5=90=8D?= =?UTF-8?q?=E3=81=AB=E5=AE=9A=E6=95=B0=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/batch/common/jskult_batch_entrypoint_factory.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py b/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py index d81988df..31679040 100644 --- a/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py +++ b/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py @@ -5,6 +5,7 @@ from src.batch.trn_result_data_bio_lot import TrnResultDataBioLot from src.batch.update_business_day import UpdateBusinessDay from src.error.exceptions import BatchOperationException from src.logging.get_logger import get_logger +from src.system_var import constants logger = get_logger("後続処理/日付更新処理振り分け") @@ -16,13 +17,13 @@ class JskultBatchEntrypointFactory: def create(self) -> JskultBatchEntrypoint: - if self._entrypoint_module_name == "jskult-batch-trn-result-data-bio-lot": + if self._entrypoint_module_name == constants.PROCESS_NAME_TRN_RESULT_DATA_BIO_LOT: return TrnResultDataBioLot() - if self._entrypoint_module_name == "jskult-batch-mst-inst-all": + if self._entrypoint_module_name == constants.PROCESS_NAME_MST_INST_ALL: return MstInstAll() - if self._entrypoint_module_name == "jskult-batch-dcf-inst-merge-io": + if self._entrypoint_module_name == constants.PROCESS_NAME_DCF_INST_MERGE_IO: return DcfInstMergeIO() - if self._entrypoint_module_name == "jskult-batch-update-business-day": + if self._entrypoint_module_name == constants.PROCESS_NAME_UPDATE_BUSINESS_DAY: return UpdateBusinessDay() logger.error(