mysql resultmap int_MyBatis ResultMap 学习笔记
select id, cnname, sex, note, effectivefrom t_student where id = #{id}select s.id, s.cnname, s.sex, s.note as snote,if (sex = 1, shm.id, shf.id) as hid,if (sex = 1, shm.check_date, shf.check_date) as ...