insert into schedule_classes_day(
workday,day_id,day,schedule_id,week_flag
) values (
#{workday},#{dayId},#{day},#{scheduleId},#{weekFlag}
)
update schedule_classes_day t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.workday= #{workday}
, t.day= #{day}
, t.week_flag= #{weekFlag}
where 1=1
and t.day_id= #{dayId}
and t.schedule_id= #{scheduleId}