From a3624903cf08bcc3612ad0290d5af660f4894924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=9C=A8=E8=A6=81?= Date: Tue, 11 Jul 2023 18:57:55 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=81=A9=E7=94=A8=E6=9C=9F=E9=96=93?= =?UTF-8?q?=E4=B8=8D=E5=85=B7=E5=90=88=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/model/internal/master_mainte_csv.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ecs/jskult-webapp/src/model/internal/master_mainte_csv.py b/ecs/jskult-webapp/src/model/internal/master_mainte_csv.py index fd77af95..c093fe0c 100644 --- a/ecs/jskult-webapp/src/model/internal/master_mainte_csv.py +++ b/ecs/jskult-webapp/src/model/internal/master_mainte_csv.py @@ -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: