首页>代码>easyUI+SSM整合实现增删改查及分页实例>/easyui_day1102_1/src/main/java/com/ssm/example/service/impl/StudentServiceImpl.java
package com.ssm.example.service.impl;

import java.util.List;

import com.ssm.example.dao.StudentDAO;
import com.ssm.example.entity.Student;
import com.ssm.example.service.StudentService;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDAO studentDAO;
    

	@Override
	public int addStudent(Student student) {
		// TODO Auto-generated method stub
		return studentDAO.addStudent(student);
	}

	@Override
	public int updateStudentById(Student student) {
		return studentDAO.updateStudentById(student);
	}

	@Override
	public Student selectUsersById(Student student) {
		// TODO Auto-generated method stub
		return studentDAO.selectUsersById(student);
	}

	@Override
	public int deleteStudentById(Integer sid) {
		// TODO Auto-generated method stub
		return studentDAO.deleteStudentById(sid);
	}


	@Override
	public List<Student> findAll(@Param("names") String names, @Param("startRows") int startRows,
    		@Param("pageSize") int pageSize) {
		// TODO Auto-generated method stub
		return studentDAO.findAll(names, startRows, pageSize);
	}

	@Override
	public int getRowCount() {
		// TODO Auto-generated method stub
		return studentDAO.getRowCount();
	}

}

最近下载更多
张朕朕  LV3 2023年9月1日
potato1234  LV6 2022年3月22日
rebecca0214  LV2 2021年5月7日
大瓜次郎  LV2 2021年3月27日
张先生1121  LV3 2021年1月11日
hxkj123456  LV6 2020年12月2日
1282954475  LV3 2020年11月10日
CSS199669  LV25 2020年7月26日
李海洋  LV12 2020年6月27日
netstat01  LV3 2020年6月22日
最近浏览更多
uni-code_0123  LV1 2023年11月27日
vitos5n  LV9 2023年9月27日
张朕朕  LV3 2023年9月1日
1748938504  LV2 2023年6月30日
 LV7 2023年3月29日
xhjzsx0715  LV1 2023年3月11日
milou123  LV2 2023年3月7日
cammysu  LV1 2023年1月31日
h_z_feng  LV1 2022年12月24日
qwer123978ca  LV1 2022年12月20日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友