对应的接口:/Graduation/text/student.do
workid:是否就业所对应的id
wnatureid:单位性质所对应的id
windustryid:工作行业所对应的id
前端提供的数据
name :'张三'
stuid :'201522632569'
sex :'男'
phone :'12345678963'
email :'[email protected]'
classname :'一年一班'
workid :'a'
employ :'地球'
workaddress :'某一个地方'
wnatureid:'d'
windustryid:'e'
成功以后:
{"result":"保存成功!",
"student":{"id":49,"name":"张三",
"stuid":"201522632569",
"sex":"男","phone":"12345678963",
"email":"[email protected]",
"classname":"一年一班",
"workid":"a",
"employ":"地球",
"workaddress":"某一个地方",
"wnatureid":"d",
"windustryid":"e",
"work":null,
"workindustry":null,
"worknature":null}}
如果输入的学号已经存在了则
{"result":"插入失败或者已经输入",
"student":{"id":49,"name":"张三",
"stuid":"201522632569",
"sex":"男","phone":"12345678963",
"email":"[email protected]",
"classname":"一年一班",
"workid":"a",
"employ":"地球",
"workaddress":"某一个地方",
"wnatureid":"d",
"windustryid":"e",
"work":null,
"workindustry":null,
"worknature":null}}
接口:/Graduation/text/information.do
输入: stuid=‘201522632569’
"students":
{"id":49,
"name":"张三",
"stuid":"201522632569",
"sex":"男",
"phone":"12345678963",
"email":"[email protected]",
"classname":"一年一班",
"workid":"a",
"employ":"地球",
"workaddress":"某一个地方",
"wnatureid":"d",
"windustryid":"e",
"work":{"id":1,"workid":"a","workname":"已签约"},
"workindustry":{"id":5,"windustryid":"e","iname":"政府部门与事业单位"},
"worknature":{"id":4,"wnatureid":"d","naname":"科研机构"}}}
如果学生的学号输入错误或者不存在,则返回
{"studentid":"没有","students":null}
接口:/Graduation/text/updateStudent.do
前端传入数据:
学生的学号id即:stuid
以及需要修改的部分:
后端的接收后的响应:
{"student":
{"id":null,//前端传过来的内容
"name":null,
"stuid":"201522632569",
"sex":null,
"phone":null,
"email":null,
"classname":null,
"workid":null,
"employ":null,
"workaddress":null,
"wnatureid":null,
"windustryid":"A",
"work":null,
"workindustry":null,
"worknature":null},
"studen":"全部修改成功"}
接口:/Graduation/text/deleteStudent.do
提供学生的:stuid
返回:
{"studen":"刪除成功"}
接口:/Graduation/text/requestment.do
返回的信息:
"requirements":
[{"id":1,
"requireid":"1",
"reqsmid":"1.1",
"requirename":"掌握数学、自然科学、工程基础和计算机专业知识,并能够用于理解与表述计算机领域的复杂工程问题。",
"requirement":
{"id":1,
"requireid":"1",
"name":"工程知识:能够将数学、自然科学、工程基础和专业知识用于解决计算机领域复杂工程问题。"}]
接口:/Graduation/text/requestment.do
返回的信息
"courses":
[{"id":1,
"disid":"1",
"couid":"1.1",
"coursename":"高等数学I",
"discipline":
{"id":1,
"disid":"1",
"disname":"数学"}},
{"id":2,
"disid":"1",
"couid":"1.2",
"coursename":"线性代数",
"discipline":
{"id":1,"
disid":"1",
"disname":"数学"}},
{"id":3,
"disid":"1",
"couid":"1.3",
"coursename":"概率论与数理统计",
"discipline":
{"id":1,
"disid":"1",
"disname":"数学"}},
{"id":4,
"disid":"1",
"couid":"1.4",
"coursename":"离散数学",
"discipline":
{"id":1,
"disid":"1",
"disname":"数学"}},
接口:/Graduation/text/doAssess.do
前端传递信息:
stuid:'201522632569'
disid:'2'
couid:'2.2'
assname:'完全未达到'
收到以后:
{"assess":
{"id":null,
"stuid":"201522632569",
"disid":"2",
"couid":"2.2",
"assname":"完全未达到"},
"result":"课程评价保存成功!"}
保存失败则返回:
"result":"插入失败"}
接口:/Graduation/text/doRequirement.do
前端提供的数据:
stuid:'201522632569'
requireid:'2'
reqsmid:'2.1'
ename:'基本达到'
保存成功以后
{"result":"毕业要求保存成功!",
"evaluate":
{"id":null,
"stuid":"201522632569",
"requireid":"2",
"reqsmid":"2.1",
"ename":"基本达到",
"requirement":null,
"requirementsmall":null}}
不成功的话:
"result":"插入失败"}
接口:/Graduation/text/doSuggest.do
前端的数据:
stuid:'201811612501'
sugname:'学生的建议'
后端的接收:
{"suggestion":
{"id":25,
"stuid":"201811612501",
"sugname":"学生的建议"},
"suggest":1}
如果学号是已经存在的:
{"sugg":"插入失败或者已经输入",
"suggestion":
{"id":25,
"stuid":"201811612501",
"sugname":"学生的建议"}}
接口:/Graduation/text/Suggest.do
前端的数据:
输入学生stuid 以及修改的内容
后端的:
{"suggestion":
{"id":null,
"stuid":"201811612501",
"sugname":"啊"},
"suggest":1}
接口:/Graduation/text/deleteSuggest.do
删除成功后:{"suggest":1}
接口:/Graduation/text/search.do
windustryid='a'
wnatureid<input type="text" name="wnatureid"/><br/>
workid<input type="text" name="workid"/><br/>
classname<input type="text" name="classname"/><br/>
接收后:
{"students":[
{"id":1,"name":"六",
"stuid":"2019125",
"sex":"男",
"phone":"12345678",
"email":"[email protected]",
"classname":"一年二班",
"workid":"a",
"employ":"海洋",
"workaddress":"展架",
"wnatureid":"a",
"windustryid":"a",
"work":{"id":1,
"workid":"a","workname":"已签约"},
"workindustry":{
"id":1,"windustryid":"a",
"iname":"电子信息(含电子、通信、计算机和互联网、电气)"},
"worknature":{"id":1,"wnatureid":"a","naname":"政府部门与事业单位"}},
接口:/Graduation/text/all.do
前端:stuid:‘201811612501’
后端:
{"students"://学生的基本个人信息
{"id":15,
"name":"刘",
"stuid":"201811612501",
"sex":"女",
"phone":"12345678945",
"email":"[email protected]",
"classname":"一年一班",
"workid":"c",
"employ":"公司名字",
"workaddress":"地址",
"wnatureid":"d",
"windustryid":"a",
"work":
{"id":3,"workid":"c","workname":"其它(含未签约、读研等)"},
"workindustry":
{"id":1,"windustryid":"a","iname":"电子信息(含电子、通信、计算机和互联网、电气)"},
"worknature":
{"id":4,"wnatureid":"d","naname":"科研机构"}},
"evaluates"://毕业要求的评价选项和题目
[{"id":14,
"stuid":"201811612501",
"requireid":"5",
"reqsmid":"5.1",
"ename":"基本达到",
"requirement":null,
"requirementsmall":
{"id":13,
"requireid":"5",
"reqsmid":"5.1",
"requirename":"针对计算机领域的复杂工程问题,能够选择和使用合适的信息检索工具获取信息",
"requirement":
{"id":5,
"requireid":"5",
"name":"使用现代工具:能够针对计算机领域的复杂工程问题,开发、选择与使用恰当的技术、资源、现代工程工具和信息技术工具,包括对复杂工程问题的预测与模拟,并能够理解其局限性。"}}}],
"suggest"://学生的 建议
{"id":27,
"stuid":"201811612501",
"sugname":"没有问题添加成功了"},
"assess"://课程的要求
[{"id":7,
"stuid":"201811612501",
"disid":"3",
"couid":"3.2",
"assname":"非常高",
"course":{
"id":9,
"disid":"3",
"couid":"3.2",
"coursename":"数据结构",
"discipline":
{"id":3,
"disid":"3",
"disname":"工程基础"}}}]}