insert into schedule_classes_staff(
staff_name,store_id,scs_id,schedule_id,staff_id
) values (
#{staffName},#{storeId},#{scsId},#{scheduleId},#{staffId}
)
update schedule_classes_staff t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.staff_name= #{staffName}
, t.store_id= #{storeId}
, t.schedule_id= #{scheduleId}
, t.staff_id= #{staffId}
where 1=1
and t.scs_id= #{scsId}