首页>代码>spring+spring Mvc+mybatis+layui实现数据表格的增删改查(纯layui实现)>/ssmlayui/src/main/java/service/impl/StudentServiceImpl.java
package service.impl;
import dao.StudentMapper;
import entity.student;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;
import service.IStudentService;
import java.util.List;
import java.util.Map;
@Service()
public class StudentServiceImpl implements IStudentService {
@Autowired
StudentMapper studentMapper;
public List<student> getAllStu(@Param("start") int start, @Param("limit") int limit){
return studentMapper.getStudent(start,limit);
}
public int deleteStudent(String id) {
return studentMapper.deleteStudentByID(id);
}
public int addStudent(student student) {
return studentMapper.addStudentData(student);
}
public List<student> getStuById(student student) {
return studentMapper.getStudentById(student);
}
public int editStudentData(student student) {
return studentMapper.editStudentById(student);
}
public int batchDeleteStudent(String[] id) {
return studentMapper.batchDelete(id);
}
public int studentCounts() {
return studentMapper.studentCounts();
}
}
最近下载更多
sun丶孙 LV8
2024年4月3日
gecongkai LV8
2023年6月22日
1257592068 LV6
2023年6月13日
微信网友_6260196253601792 LV7
2023年6月7日
111112222333312131 LV4
2022年12月9日
331376387 LV5
2022年12月2日
2511952410 LV9
2022年9月17日
ty5854 LV1
2022年9月12日
lvhongquan LV11
2022年5月4日
xytthy LV3
2022年4月17日

最近浏览
