|
@@ -118,7 +118,7 @@ public class ClassroomController {
|
118
|
118
|
} else if (rtype.equals("sign")) {//学生--签到
|
119
|
119
|
TClassroomSign sign = JSON.parseObject(jsonstr, TClassroomSign.class);
|
120
|
120
|
signList.add(sign);
|
121
|
|
- } else if (rtype.equals("paper")) {//堂测--发布
|
|
121
|
+ } else if (rtype.equals("paperteacher") || "paper".equals(rtype)) {//堂测--发布
|
122
|
122
|
TClassroomPaper paper = JSON.parseObject(jsonstr, TClassroomPaper.class);
|
123
|
123
|
|
124
|
124
|
//堂测附件
|
|
@@ -164,13 +164,13 @@ public class ClassroomController {
|
164
|
164
|
}
|
165
|
165
|
}
|
166
|
166
|
paperList.add(paper);
|
167
|
|
- } else if (rtype.equals("stupaper")) {//堂测--学生作答详情
|
|
167
|
+ } else if (rtype.equals("paperstudent") || "stupaper".equals(rtype)) {//堂测--学生作答详情
|
168
|
168
|
TClassroomPaperStudent student = JSON.parseObject(jsonstr, TClassroomPaperStudent.class);
|
169
|
169
|
stupaperList.add(student);
|
170
|
|
- } else if (rtype.equals("vote")){//投票
|
|
170
|
+ } else if (rtype.equals("voteteacher")){//投票
|
171
|
171
|
TClassroomVote vote = JSON.parseObject(jsonstr,TClassroomVote.class);
|
172
|
172
|
voteList.add(vote);
|
173
|
|
- } else if(rtype.equals("stuvote")){//投票--学生投票
|
|
173
|
+ } else if(rtype.equals("votestudent")){//投票--学生投票
|
174
|
174
|
TClassroomVoteStudent stuvote = JSON.parseObject(jsonstr,TClassroomVoteStudent.class);
|
175
|
175
|
votestuList.add(stuvote);
|
176
|
176
|
}
|
|
@@ -248,7 +248,7 @@ public class ClassroomController {
|
248
|
248
|
} else if (rtype.equals("sign")) {//学生--签到
|
249
|
249
|
TClassroomSign sign = JSON.parseObject(jsonstr, TClassroomSign.class);
|
250
|
250
|
signList.add(sign);
|
251
|
|
- } else if (rtype.equals("paper")) {//堂测--发布
|
|
251
|
+ } else if (rtype.equals("paperteacher") || "paper".equals(rtype)) {//堂测--发布
|
252
|
252
|
TClassroomPaper paper = JSON.parseObject(jsonstr, TClassroomPaper.class);
|
253
|
253
|
|
254
|
254
|
//堂测附件
|
|
@@ -294,13 +294,13 @@ public class ClassroomController {
|
294
|
294
|
}
|
295
|
295
|
}
|
296
|
296
|
paperList.add(paper);
|
297
|
|
- } else if (rtype.equals("stupaper")) {//堂测--学生作答详情
|
|
297
|
+ } else if (rtype.equals("paperstudent") || "stupaper".equals(rtype)) {//堂测--学生作答详情
|
298
|
298
|
TClassroomPaperStudent student = JSON.parseObject(jsonstr, TClassroomPaperStudent.class);
|
299
|
299
|
stupaperList.add(student);
|
300
|
|
- } else if (rtype.equals("vote")){//投票
|
|
300
|
+ } else if (rtype.equals("voteteacher")){//投票
|
301
|
301
|
TClassroomVote vote = JSON.parseObject(jsonstr,TClassroomVote.class);
|
302
|
302
|
voteList.add(vote);
|
303
|
|
- } else if(rtype.equals("stuvote")){//投票--学生投票
|
|
303
|
+ } else if(rtype.equals("votestudent")){//投票--学生投票
|
304
|
304
|
TClassroomVoteStudent stuvote = JSON.parseObject(jsonstr,TClassroomVoteStudent.class);
|
305
|
305
|
votestuList.add(stuvote);
|
306
|
306
|
}
|
|
@@ -561,7 +561,7 @@ public class ClassroomController {
|
561
|
561
|
**/
|
562
|
562
|
@PostMapping("/detail_vote")
|
563
|
563
|
public ResultVo detailVote(@RequestBody TClassroomVote vote) {
|
564
|
|
- Integer voteid = vote.getVoteid();
|
|
564
|
+ Long voteid = vote.getVoteid();
|
565
|
565
|
N_Utils.validation(new Object[]{voteid, "投票id", 1});
|
566
|
566
|
List<Map<String,Object>> votes = classroomService.getVoteDetail(voteid);
|
567
|
567
|
return new ResultVo(0, "获取投票详情成功", votes);
|