select sas.id, sas.student_id, sas.tools_type, sas.at_station, sas.at_datetime, sas.is_need_pick,
sas.pick_state, sas.status, sas.del_flag, sas.create_by, sas.create_time, sas.update_by, sas.update_time,
sas.ksh,b.SJH as phone,b.XSXM as `name`,sc.class_id,sc.class_name
from srs_at_station sas
left join srs_stu_reg as b on sas.ksh = b.KSH
left join srs_class sc on b.BJDM = sc.class_code
insert into srs_at_station
student_id,tools_type,at_station,at_datetime,is_need_pick,pick_state,status,del_flag,create_by,create_time,update_by,update_time,ksh,#{studentId},#{toolsType},#{atStation},#{atDatetime},#{isNeedPick},#{pickState},#{status},#{delFlag},#{createBy},#{createTime},#{updateBy},#{updateTime},#{ksh},
update srs_at_station
student_id = #{studentId},tools_type = #{toolsType},at_station = #{atStation},at_datetime = #{atDatetime},is_need_pick = #{isNeedPick},pick_state = #{pickState},status = #{status},del_flag = #{delFlag},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},ksh = #{ksh},
where id = #{id}
delete from srs_at_station where id = #{id}
delete from srs_at_station where id in
#{id}