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 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; } }