feat: 適用期間不具合対応
This commit is contained in:
parent
19901bf80e
commit
a3624903cf
@ -203,15 +203,15 @@ class MasterMainteNewInstEmpCSVItem(MasterMainteCSVItem):
|
||||
bu_master_repository,
|
||||
emp_chginst_repository
|
||||
)
|
||||
self.inst_cd = self.csv_row[constants.CSV_NEW_INST_CD_COL_NO] # a
|
||||
self.inst_name = self.csv_row[constants.CSV_NEW_INST_NAME_COL_NO] # b
|
||||
self.ta_cd = self.csv_row[constants.CSV_NEW_TA_CD_COL_NO] # c
|
||||
self.emp_cd = self.csv_row[constants.CSV_NEW_EMP_CD_COL_NO] # d
|
||||
self.emp_name_family = self.csv_row[constants.CSV_NEW_EMP_NAME_FAMILY_COL_NO] # e
|
||||
self.emp_name_first = self.csv_row[constants.CSV_NEW_EMP_NAME_FIRST_COL_NO] # f
|
||||
self.bu_cd = self.csv_row[constants.CSV_NEW_BU_CD_COL_NO] # g
|
||||
self.start_date = self.csv_row[constants.CSV_NEW_START_DATE] # h
|
||||
self.end_date = self.csv_row[constants.CSV_NEW_END_DATE] # i
|
||||
self.inst_cd = self.csv_row[constants.CSV_NEW_INST_CD_COL_NO]
|
||||
self.inst_name = self.csv_row[constants.CSV_NEW_INST_NAME_COL_NO]
|
||||
self.ta_cd = self.csv_row[constants.CSV_NEW_TA_CD_COL_NO]
|
||||
self.emp_cd = self.csv_row[constants.CSV_NEW_EMP_CD_COL_NO]
|
||||
self.emp_name_family = self.csv_row[constants.CSV_NEW_EMP_NAME_FAMILY_COL_NO]
|
||||
self.emp_name_first = self.csv_row[constants.CSV_NEW_EMP_NAME_FIRST_COL_NO]
|
||||
self.bu_cd = self.csv_row[constants.CSV_NEW_BU_CD_COL_NO]
|
||||
self.start_date = self.csv_row[constants.CSV_NEW_START_DATE]
|
||||
self.end_date = self.csv_row[constants.CSV_NEW_END_DATE]
|
||||
|
||||
def csv_row_data(self) -> dict:
|
||||
return {constants.NEW_INST_EMP_CSV_MAP[i]: self.csv_row[i] for i in range(len(self.csv_row))}
|
||||
@ -442,7 +442,7 @@ class MasterMainteChangeInstEmpCSVItem(MasterMainteCSVItem):
|
||||
end_date,
|
||||
constants.CHANGE_INST_EMP_MAP[constants.CSV_CHANGE_INST_EMP_START_DATE_COL_NO],
|
||||
end_date_col_name)
|
||||
if len(error_list) > 0 or self.start_date is None or self.end_date is None:
|
||||
if len(error_list) > 0 or start_date is None or end_date is None:
|
||||
return error_list
|
||||
|
||||
if start_date_time > end_date_time:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user