You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
package core.process;
|
|
|
|
import core.operation.Select;
|
|
import error.GExcptInit;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class C_StudentSelectTeacher extends TempProcess {
|
|
String studentId;
|
|
String teacherId;
|
|
|
|
public void select()throws Exception{
|
|
if(!check()) throw new GExcptInit("ID Attrs init error!");
|
|
Select select=new Select();
|
|
select.setOptions(new HashMap<>());
|
|
select.addOptions("student_id",this.getStudentId());
|
|
select.addOptions("teacher_id",this.getTeacherId());
|
|
Map<String,Object> options=select.execute(null);
|
|
}
|
|
protected boolean check() {
|
|
if(this.getStudentId()==null||this.getTeacherId()==null)
|
|
return false;
|
|
return true;
|
|
}
|
|
public String getTeacherId() {
|
|
return teacherId;
|
|
}
|
|
|
|
public void setTeacherId(String teacherId) {
|
|
this.teacherId = teacherId;
|
|
}
|
|
|
|
public String getStudentId() {
|
|
return studentId;
|
|
}
|
|
|
|
public void setStudentId(String studentId) {
|
|
this.studentId = studentId;
|
|
}
|
|
|
|
|
|
|
|
}
|