refactor: 振り分け処理の処理名に定数を使用するように修正
This commit is contained in:
parent
25d6e1818b
commit
81b3135c80
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user