|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package dao;
|
|
|
|
|
|
|
|
|
|
import java.sql.*;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -28,6 +29,18 @@ public class DBManagement {
|
|
|
|
|
"graduation_design_reply",
|
|
|
|
|
"graduation_design_reply_opinion_record_score"
|
|
|
|
|
};
|
|
|
|
|
//<table.field,permission>
|
|
|
|
|
public static Map<String,String> graduationDesignStudentTables = new HashMap<>(){
|
|
|
|
|
{
|
|
|
|
|
put("graduation_design.student_id","student");
|
|
|
|
|
put("opening_report_secretary_team.leader_student_id","opening_report_secretary_leader");
|
|
|
|
|
put("opening_report_secretary_team.student1_id","opening_report_secretary_member");
|
|
|
|
|
put("opening_report_secretary_team.student2_id","opening_report_secretary_member");
|
|
|
|
|
put("reply_secretary_team.leader_student_id","reply_secretary_leader");
|
|
|
|
|
put("reply_secretary_team.student1_id","reply_secretary_member");
|
|
|
|
|
put("reply_secretary_team.student2_id","reply_secretary_member");
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
public static String driverClassName="org.mariadb.jdbc.Driver";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|