insert into attendance_classes_staff(
classes_id,cs_id,staff_name,store_id,staff_id
) values (
#{classesId},#{csId},#{staffName},#{storeId},#{staffId}
)
update attendance_classes_staff t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.classes_id= #{classesId}
, t.staff_name= #{staffName}
, t.staff_id= #{staffId}
where 1=1
and t.cs_id= #{csId}
and t.store_id= #{storeId}