2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
#ifndef STUDENT_DAO_H
|
|
|
|
|
#define STUDENT_DAO_H
|
|
|
|
|
|
|
|
|
|
#import "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF", "EndOfFile")
|
|
|
|
|
|
|
|
|
|
#include<iostream>
|
|
|
|
|
#include<vector>
|
2022-07-06 15:40:27 +08:00
|
|
|
|
#include"Student.h"
|
2022-07-06 16:42:53 +08:00
|
|
|
|
#include"BaseDAO.h"
|
2022-07-03 18:22:02 +08:00
|
|
|
|
|
2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param student <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void addStudent(_ConnectionPtr connection, Student student);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* ɾ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void deleteStudent(_ConnectionPtr connection, string id);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD>༶
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param stuClass <EFBFBD>°༶
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void updateStudentClass(_ConnectionPtr connection, string id, string stuClass);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>״̬
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param status ѧ<EFBFBD><EFBFBD>״̬<EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void updateStudentStatus(_ConnectionPtr connection, string id, string status);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>Ż<EFBFBD>ȡѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @return Student* student<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
Student* getStudentById(_ConnectionPtr connection, string id);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param name <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @return vector<Student>* <EFBFBD><EFBFBD>Student<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪԪ<EFBFBD>ص<EFBFBD>vector<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
std::vector<Student>* getStudentByName(_ConnectionPtr connection, string name);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @return vector<Student>* <EFBFBD><EFBFBD>Student<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪԪ<EFBFBD>ص<EFBFBD>vector<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
std::vector<Student>* getAllStudent(_ConnectionPtr connection);
|
2022-07-03 18:22:02 +08:00
|
|
|
|
|
|
|
|
|
#endif // !STUDENT_DAO_H
|