src/com/service/StudentService.java

(完整代码) 1KB

package com.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Date;
import java.util.Objects;
import com.dao.StudentDao;
import com.entity.Logins;

import com.entity.Student;
@Service
public class   StudentService {
 	@Autowired
	private StudentDao studentDao;

 	public boolean add(Student student) 
 	{
		return studentDao.insert(student) > 0;
	}
 	public Student selectBystudent(Student student) 
 	{
 		Student student1=studentDao.selectBystudent(student);
		return student1;
	}
 	
	public List<Student> getList(String where,int page, int size) 
	{
		return studentDao.getList(where,size*(page-1), size);
	}
	public boolean delete(int id) 
	{
		return studentDao.deleteByPrimaryKey(id) > 0;
	}
	public int getTotal(String where)
	{
 		return studentDao.getTotal(where);
	}
	public boolean edit(Student student)
	{
		return studentDao.updateByPrimaryKeySelective(student) > 0;
	}
	public Student studentdenglu(String sdloginname,String sdloginpass) 
	{
		return studentDao.studentdenglu(sdloginname,sdloginpass);
	}
	public boolean studentpassupdate(Student student) 
	{
		return studentDao.studentpassupdate(student) > 0;
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。