dao层代码写法:
1 mapper.java:
/**
*
* @param eduStudentInfoBoList 学生上报信息集合, userId 操作着用户id
* @return
*/
void SaveOrUpdateEyesightArchiveData(@Param("eduStudentInfoBoList") List<EduStudentInfoBo> eduStudentInfoBoList, @Param("userId")Integer userId);
2 mapper.xml:
<insert id="SaveOrUpdateEyesightArchiveData">
INSERT INTO edu_eyesight_archive (
enrollment_status_number,
school_report_id,
school_org_id,
school_section,
grade,
class_name,
name,
sex,
birthday,
nation,
naked_eyesight_right,
naked_eyesight_left,
create_time,
update_time,
createid,
updateid
)
VALUES
<foreach collection="eduStudentInfoBoList" item="item" index="index" separat