1,登录后端

wlf
zhai_lw 6 years ago
parent 3cd548afce
commit 531fb6ef83

@ -1315,11 +1315,844 @@
<Charset>utf8mb4</Charset> <Charset>utf8mb4</Charset>
<DefaultForCharset>0</DefaultForCharset> <DefaultForCharset>0</DefaultForCharset>
</collation> </collation>
<table id="330" parent="2" name="test"/> <table id="330" parent="2" name="administrator">
<column id="331" parent="330" name="name"> <Comment>管理员</Comment>
</table>
<table id="331" parent="2" name="announcement">
<Comment>公告</Comment>
</table>
<table id="332" parent="2" name="graduation_design">
<Comment>毕业设计</Comment>
</table>
<table id="333" parent="2" name="graduation_design_finished_product">
<Comment>毕设论文</Comment>
</table>
<table id="334" parent="2" name="graduation_design_finished_product_mentor_score">
<Comment>指导老师评定成绩</Comment>
</table>
<table id="335" parent="2" name="graduation_design_finished_product_reviewer_score">
<Comment>评阅老师对论文的评审成绩</Comment>
</table>
<table id="336" parent="2" name="graduation_design_information">
<Comment>毕业设计信息</Comment>
</table>
<table id="337" parent="2" name="graduation_design_opening_report">
<Comment>开题报告</Comment>
</table>
<table id="338" parent="2" name="graduation_design_opening_report_opinion_record">
<Comment>开题报告会纪要</Comment>
</table>
<table id="339" parent="2" name="graduation_design_reply">
<Comment>答辩</Comment>
</table>
<table id="340" parent="2" name="graduation_design_reply_opinion_record_score">
<Comment>答辩记录表</Comment>
</table>
<table id="341" parent="2" name="graduation_design_status">
<Comment>状态</Comment>
</table>
<table id="342" parent="2" name="opening_report_secretary_team">
<Comment>开题报告秘书组</Comment>
</table>
<table id="343" parent="2" name="opening_report_teacher_team">
<Comment>开题报告老师组</Comment>
</table>
<table id="344" parent="2" name="profession_information">
<Comment>专业信息</Comment>
</table>
<table id="345" parent="2" name="reply_secretary_team">
<Comment>答辩秘书小组</Comment>
</table>
<table id="346" parent="2" name="reply_teacher_team">
<Comment>答辩教师组</Comment>
</table>
<table id="347" parent="2" name="student">
<Comment>学生用户</Comment>
</table>
<table id="348" parent="2" name="teacher">
<Comment>老师用户</Comment>
</table>
<column id="349" parent="330" name="id">
<Position>1</Position> <Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="350" parent="330" name="password">
<Position>2</Position>
<DataType>char(255)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="351" parent="330" name="name">
<Position>3</Position>
<DataType>char(30)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="352" parent="330" name="e_mail_location">
<Position>4</Position>
<DataType>char(40)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="353" parent="330" name="phone_number">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="354" parent="330" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="355" parent="331" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="356" parent="331" name="title">
<Position>2</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="357" parent="331" name="information">
<Position>3</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="358" parent="331" name="ralease_date">
<Position>4</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="359" parent="331" name="annex_url">
<Position>5</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="360" parent="331" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="361" parent="332" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="362" parent="332" name="stu_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="363" parent="332" name="teacher_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="364" parent="332" name="chinese_name">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="365" parent="332" name="score">
<Position>5</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="366" parent="332" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="367" parent="333" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="368" parent="333" name="word_count">
<Position>2</Position>
<DataType>int(11)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="369" parent="333" name="final_date">
<Position>3</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="370" parent="333" name="graduation_design_url">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="371" parent="333" name="chinese_abstract">
<Position>5</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="372" parent="333" name="chinese_key_words">
<Position>6</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="373" parent="333" name="english_abstract">
<Position>7</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="374" parent="333" name="english_key_words">
<Position>8</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="375" parent="333" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="376" parent="334" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="377" parent="334" name="meet_requirement_score">
<Position>2</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="378" parent="334" name="meaning_value_score">
<Position>3</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="379" parent="334" name="subject_scale_score">
<Position>4</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="380" parent="334" name="complexity_score">
<Position>5</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="381" parent="334" name="ability_consult_literature_score">
<Position>6</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="382" parent="334" name="comprehensive_use_knowledge_score">
<Position>7</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="383" parent="334" name="design_capability_score">
<Position>8</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="384" parent="334" name="ability_use_score">
<Position>9</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="385" parent="334" name="title_consistent_score">
<Position>10</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="386" parent="334" name="writing_level_score">
<Position>11</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="387" parent="334" name="writing_specifications_score">
<Position>12</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="388" parent="334" name="paper_length_score">
<Position>13</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="389" parent="334" name="teory_value_score">
<Position>14</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="390" parent="334" name="ability_use_foreign_language_score">
<Position>15</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="391" parent="334" name="total_grade">
<Position>16</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="392" parent="334" name="review_opinion">
<Position>17</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="393" parent="334" name="review_opinion_date">
<Position>18</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="394" parent="334" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="395" parent="335" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="396" parent="335" name="score">
<Position>2</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="397" parent="335" name="opinion">
<Position>3</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="398" parent="335" name="reviewer_score_date">
<Position>4</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="399" parent="335" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="400" parent="336" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="401" parent="336" name="english_name">
<Position>2</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="402" parent="336" name="type_of_topic">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="403" parent="336" name="source_of_design">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="404" parent="336" name="nature_of_design">
<Position>5</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="405" parent="336" name="description_of_topic">
<Position>6</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="406" parent="336" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="407" parent="337" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="408" parent="337" name="report_date">
<Position>2</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="409" parent="337" name="report_location">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="410" parent="337" name="report_url">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="411" parent="337" name="report_teacher_leader_team_id">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="412" parent="337" name="report_secretary_leader_team_id">
<Position>6</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="413" parent="337" name="estimated_word_count">
<Position>7</Position>
<DataType>int(11)|0s</DataType> <DataType>int(11)|0s</DataType>
<ColumnKind>normal</ColumnKind> <ColumnKind>normal</ColumnKind>
</column> </column>
<key id="414" parent="337" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="415" parent="338" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="416" parent="338" name="mentor_opinion">
<Position>2</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="417" parent="338" name="mentor_opinion_date">
<Position>3</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="418" parent="338" name="secretary_record">
<Position>4</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="419" parent="338" name="secretary_record_date">
<Position>5</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="420" parent="338" name="report_teacher_team_opinion">
<Position>6</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="421" parent="338" name="report_teacher_team_opinion_date">
<Position>7</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="422" parent="338" name="college_opinion">
<Position>8</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="423" parent="338" name="college_opinion_date">
<Position>9</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="424" parent="338" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="425" parent="339" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="426" parent="339" name="date">
<Position>2</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="427" parent="339" name="location">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="428" parent="339" name="teacher_team_leader_id">
<Position>4</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="429" parent="339" name="secretary_team_leader_id">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="430" parent="339" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="431" parent="340" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="432" parent="340" name="mentor_opinion text">
<Position>2</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="433" parent="340" name="mentor_opinion_date date">
<Position>3</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="434" parent="340" name="secretary_record">
<Position>4</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="435" parent="340" name="secretary_record_date date">
<Position>5</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="436" parent="340" name="teacher_team_opinion">
<Position>6</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="437" parent="340" name="teacher_team_score">
<Position>7</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="438" parent="340" name="teacher_team_opinion_date">
<Position>8</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="439" parent="340" name="college_opinion">
<Position>9</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="440" parent="340" name="college_score">
<Position>10</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="441" parent="340" name="college_opinion_date">
<Position>11</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="442" parent="340" name="school_opinion">
<Position>12</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="443" parent="340" name="school_score">
<Position>13</Position>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="444" parent="340" name="school_opinion_date">
<Position>14</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="445" parent="340" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="446" parent="341" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="447" parent="341" name="teacher_choose_student_status">
<Position>2</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="448" parent="341" name="student_choose_teacher_status">
<Position>3</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="449" parent="341" name="student_fill_graduation_design_information_status">
<Position>4</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="450" parent="341" name="opening_report_status">
<Position>5</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="451" parent="341" name="opening_report_mentor_opinion_status">
<Position>6</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="452" parent="341" name="opening_report_teacher_team_opinion_status">
<Position>7</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="453" parent="341" name="opening_report_college_opinion_status">
<Position>8</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="454" parent="341" name="opening_report_secretary_record_status">
<Position>9</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="455" parent="341" name="finished_product_status">
<Position>10</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="456" parent="341" name="finished_product_mentor_score_status">
<Position>11</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="457" parent="341" name="finished_product_reviewer_score_status">
<Position>12</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="458" parent="341" name="reply_ secretary_record_status">
<Position>13</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="459" parent="341" name="reply_ teacher_team_score_status">
<Position>14</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="460" parent="341" name="reply_ college_score_status">
<Position>15</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="461" parent="341" name="reply_school_score_status">
<Position>16</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="462" parent="341" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="463" parent="342" name="leader_student_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="464" parent="342" name="student1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="465" parent="342" name="student2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="466" parent="342" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_student_id</ColNames>
<Primary>1</Primary>
</key>
<column id="467" parent="343" name="leader_teacher_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="468" parent="343" name="teacher1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="469" parent="343" name="teacher2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="470" parent="343" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_teacher_id</ColNames>
<Primary>1</Primary>
</key>
<column id="471" parent="344" name="profession_code">
<Position>1</Position>
<DataType>char(8)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="472" parent="344" name="college">
<Position>2</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="473" parent="344" name="department">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="474" parent="344" name="profession">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="475" parent="344" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>profession_code</ColNames>
<Primary>1</Primary>
</key>
<column id="476" parent="345" name="leader_student_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="477" parent="345" name="student1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="478" parent="345" name="student2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="479" parent="345" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_student_id</ColNames>
<Primary>1</Primary>
</key>
<column id="480" parent="346" name="leader_teacher_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="481" parent="346" name="teacher1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="482" parent="346" name="teacher2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="483" parent="346" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_teacher_id</ColNames>
<Primary>1</Primary>
</key>
<column id="484" parent="347" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="485" parent="347" name="password">
<Position>2</Position>
<DataType>char(255)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="486" parent="347" name="name">
<Position>3</Position>
<DataType>char(30)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="487" parent="347" name="e_mail_location">
<Position>4</Position>
<DataType>char(40)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="488" parent="347" name="phone_number">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="489" parent="347" name="profession_code">
<Position>6</Position>
<DataType>char(8)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="490" parent="347" name="grade">
<Position>7</Position>
<DataType>char(4)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="491" parent="347" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="492" parent="348" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="493" parent="348" name="password">
<Position>2</Position>
<DataType>char(255)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="494" parent="348" name="name">
<Position>3</Position>
<DataType>char(30)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="495" parent="348" name="e_mail_location">
<Position>4</Position>
<DataType>char(40)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="496" parent="348" name="phone_number">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="497" parent="348" name="profession_code">
<Position>6</Position>
<DataType>char(8)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="498" parent="348" name="job_title">
<Position>7</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="499" parent="348" name="education">
<Position>8</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="500" parent="348" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
</database-model> </database-model>
</dataSource> </dataSource>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_10" default="false" project-jdk-name="10" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

@ -1 +0,0 @@
CREATE DATABASE `GDMS`;

@ -5,14 +5,19 @@ import core.user.User;
import error.GExcptFactory; import error.GExcptFactory;
import error.GExcptSQL; import error.GExcptSQL;
public abstract class Process { public abstract class Process implements Cloneable{
private String permission; private String permission;
private Operation operation; private Operation operation;
private String buttonName; private String buttonName;
private String info; private String info;
private String processOptions; private String processOptions;
private String UserOptions;
@Override
public Process clone(){
//todo
return null;
}
public Process(String permission, String operationName, String processOptions, String info) throws Exception { public Process(String permission, String operationName, String processOptions, String info) throws Exception {
super(); super();
this.setPermission(permission); this.setPermission(permission);

@ -12,7 +12,7 @@ public class ProcessManagement {
//todo //todo
} }
public Process getTemporaryProcess(int index){ public Process getTemporaryProcess(int index){
return temporaryProcesses.get(index); return temporaryProcesses.get(index).clone();
} }
public Condition getCondition(String userType, List<Integer> index){ public Condition getCondition(String userType, List<Integer> index){
Condition condition = new Condition(this.lastProcesses.get(userType)); Condition condition = new Condition(this.lastProcesses.get(userType));

@ -10,8 +10,60 @@ public abstract class User implements AccountManageable, ProcessConfigurable{
private String id; private String id;
private String password; private String password;
private List<String> permissions = null; private String name;
private String e_mail_location;
private String phone_number;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getE_mail_location() {
return e_mail_location;
}
public void setE_mail_location(String e_mail_location) {
this.e_mail_location = e_mail_location;
}
public String getPhone_number() {
return phone_number;
}
public void setPhone_number(String phone_number) {
this.phone_number = phone_number;
}
public List<String> getPermissions() {
return permissions;
}
public void setPermissions(List<String> permissions) {
this.permissions = permissions;
}
private String phonenumber;
private List<String> permissions = null;
public Condition getCondition() { public Condition getCondition() {
return condition; return condition;
} }

@ -1,12 +1,47 @@
package core.user.utils; package core.user.utils;
import core.user.User; import core.user.User;
import dao.DBManagement;
import error.GExcptAccount;
import error.GExcptSQL;
import java.lang.reflect.InvocationTargetException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List; import java.util.List;
public interface AccountManagement { public interface AccountManagement {
static User login(String id, String password){ static String[] userTables = {
//todo "administrator",
"student",
"teacher"
};
static User login(String id, String password) throws GExcptSQL, GExcptAccount {
ResultSet rs = null;
String sql = null;
String userType = null;
for(String userTable:userTables){
sql = "SELECT * FROM "+userTable+"WHERE id="+id;
try {
rs = DBManagement.query(sql);
} catch (Exception e) {
throw new GExcptSQL("QUERY\n\t"+sql+"\nfailure");
}
if(rs!=null){
userType = userTable;
break;
}
}
if(rs==null){
throw new GExcptAccount("id "+id+"don't exists");
}
try {
if(rs.getString("password")!=password)
throw new GExcptAccount("password wrong");
return createUser(userType,rs);
} catch (SQLException e) {
e.printStackTrace();
}
return null; return null;
} }
static User register(List<String> necessaryInfo, String User){ static User register(List<String> necessaryInfo, String User){
@ -19,4 +54,32 @@ public interface AccountManagement {
static void destroy(User user){ static void destroy(User user){
//todo //todo
} }
static User getUser(String userType){
try {
return (User)Class.forName("core.user."+userType).getDeclaredConstructor().newInstance();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
return null;
}
static User createUser(String userType, ResultSet rs) {
User user = getUser(userType);
try {
user.setId(rs.getString("id"));
user.setName(rs.getString("name"));
user.setE_mail_location(rs.getString("e_mail_location"));
user.setPhone_number(rs.getString("phone_number"));
} catch (SQLException e) {
e.printStackTrace();
}
return user;
}
} }

@ -0,0 +1,8 @@
package error;
public class GExcptAccount extends GExcpt{
public GExcptAccount(String info) {
super(info);
}
}

@ -1,7 +1,6 @@
package init; package init;
import dao.DBManagement; import dao.DBManagement;
import gdms.test;
import javax.servlet.ServletException; import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet; import javax.servlet.annotation.WebServlet;
@ -14,7 +13,6 @@ import java.io.IOException;
public class Init extends HttpServlet { public class Init extends HttpServlet {
public void init(){ public void init(){
DBManagement.init(); DBManagement.init();
new test();
} }
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

Loading…
Cancel
Save