refactor: 不要な分岐条件を削除
This commit is contained in:
parent
e986f76dc0
commit
bbb88315ac
@ -116,15 +116,15 @@ class ComSpFieldMapper(UltmarcTableMapper):
|
||||
if len(self.record.specialist_maint_div) > 0:
|
||||
set_clauses.append('specialist_maint_div = :specialist_maint_div')
|
||||
|
||||
if self.record.specialist_flg is not None and len(self.record.specialist_flg) > 0:
|
||||
if len(self.record.specialist_flg) > 0:
|
||||
set_clauses.append('specialist_flg = :specialist_flg')
|
||||
set_clauses.append('specialist_publsh_ymd = :specialist_publsh_ymd')
|
||||
|
||||
if self.record.ackn_med_flg is not None and len(self.record.ackn_med_flg) > 0:
|
||||
if len(self.record.ackn_med_flg) > 0:
|
||||
set_clauses.append('ackn_med_flg = :ackn_med_flg')
|
||||
set_clauses.append('ackn_med_publsh_ymd = :ackn_med_publsh_ymd')
|
||||
|
||||
if self.record.guide_med_flg is not None and len(self.record.guide_med_flg) > 0:
|
||||
if len(self.record.guide_med_flg) > 0:
|
||||
set_clauses.append('guide_med_flg = :guide_med_flg')
|
||||
set_clauses.append('guide_med_publsh_ymd = :guide_med_publsh_ymd')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user