src/com/service/StudentService.java
(完整代码) 1KBpackage 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.Student;
import com.entity.Controllers;
@Service
public class StudentService {
@Autowired
private StudentDao studentDao;
public boolean add(Student student)
{
return studentDao.insert(student) > 0;
}
public List<Student> getList(String where,int page, int size)
{
return studentDao.getList(where,size*(page-1), size);
}
public List<Student> getAllList()
{
return studentDao.getAllList();
}
public boolean delete(int id)
{
return studentDao.deleteByPrimaryKey(id) > 0;
}
public boolean edit(Student student)
{
return studentDao.updateByPrimaryKeySelective(student) > 0;
}
public int getTotal(String where)
{
return studentDao.getTotal(where);
}
public Student selectBystunumber(Student student)
{
Student student1=studentDao.selectBystunumber(student);
return student1;
}
public Student studentlogin(String stunumber,String stupass)
{
return studentDao.studentlogin(stunumber,stupass);
}
public boolean studentpassedit(Student student)
{
return studentDao.studentpassedit(student) > 0;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
