feat:指摘内容を修正
This commit is contained in:
parent
67838a754d
commit
995ea55da3
@ -57,8 +57,8 @@ class UltmarcDoctorRepository(BaseRepository):
|
|||||||
# 文字列の検索を部分一致にするため、モデルをコピー。以降はこのコピーを使用する。
|
# 文字列の検索を部分一致にするため、モデルをコピー。以降はこのコピーを使用する。
|
||||||
clone_parameter = UltmarcDoctorSearchModel(**parameter.model_dump())
|
clone_parameter = UltmarcDoctorSearchModel(**parameter.model_dump())
|
||||||
where_clause = self.__build_condition(clone_parameter)
|
where_clause = self.__build_condition(clone_parameter)
|
||||||
query = self.FETCH_SQL.format(where_clause=where_clause, limit=environment.
|
query = self.FETCH_SQL.format(
|
||||||
ULTMARC_SEARCH_RESULT_MAX_COUNT + 1)
|
where_clause=where_clause, limit=environment.ULTMARC_SEARCH_RESULT_MAX_COUNT + 1)
|
||||||
result = self._database.execute_select(query, clone_parameter.model_dump())
|
result = self._database.execute_select(query, clone_parameter.model_dump())
|
||||||
models = [UltmarcDoctorDBModel(**r) for r in result]
|
models = [UltmarcDoctorDBModel(**r) for r in result]
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ class UltmarcDoctorRepository(BaseRepository):
|
|||||||
'', '', "(com_dr.use_stop_div NOT IN ('01','03','04') OR com_dr.use_stop_div IS NULL)", literal=True))
|
'', '', "(com_dr.use_stop_div NOT IN ('01','03','04') OR com_dr.use_stop_div IS NULL)", literal=True))
|
||||||
|
|
||||||
# 廃業除外
|
# 廃業除外
|
||||||
if where_clauses:
|
if len(where_clauses) > 0:
|
||||||
where_clauses.append(SQLCondition(
|
where_clauses.append(SQLCondition(
|
||||||
'', '', '(length(com_inst.abolish_ymd) = 0 OR com_inst.abolish_ymd IS NULL)', literal=True))
|
'', '', '(length(com_inst.abolish_ymd) = 0 OR com_inst.abolish_ymd IS NULL)', literal=True))
|
||||||
where_clauses.append(SQLCondition(
|
where_clauses.append(SQLCondition(
|
||||||
|
|||||||
@ -43,8 +43,8 @@ class UltmarcInstRepository(BaseRepository):
|
|||||||
# 文字列の検索を部分一致にするため、モデルをコピー。以降はこのコピーを使用する。
|
# 文字列の検索を部分一致にするため、モデルをコピー。以降はこのコピーを使用する。
|
||||||
clone_parameter = UltmarcInstSearchModel(**parameter.model_dump())
|
clone_parameter = UltmarcInstSearchModel(**parameter.model_dump())
|
||||||
where_clause = self.__build_condition(clone_parameter)
|
where_clause = self.__build_condition(clone_parameter)
|
||||||
query = self.FETCH_SQL.format(where_clause=where_clause, limit=environment.
|
query = self.FETCH_SQL.format(
|
||||||
ULTMARC_SEARCH_RESULT_MAX_COUNT + 1)
|
where_clause=where_clause, limit=environment.ULTMARC_SEARCH_RESULT_MAX_COUNT + 1)
|
||||||
result = self._database.execute_select(query, clone_parameter.model_dump())
|
result = self._database.execute_select(query, clone_parameter.model_dump())
|
||||||
models = [UltmarcInstDBModel(**r) for r in result]
|
models = [UltmarcInstDBModel(**r) for r in result]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user