81,095
社区成员
发帖
与我相关
我的任务
分享
<insert id="insertStudent" parameterType="xxx.model.Student" useGeneratedKeys="true" keyProperty="id">
insert into student..........
</insert>
public Student insertStudent(Student stu){
int ret=this.getSqlSession().insert("insertStudent", stu);
if(ret>0){
return stu;
}
return null;
}