From 19e6057d3797b6fd6770ed5a98ddaef0b86a4c47 Mon Sep 17 00:00:00 2001
From: EricsHu <hrr145632>
Date: 星期五, 01 九月 2023 11:40:37 +0800
Subject: [PATCH] 退出登录

---
 src/main/java/com/qxueyou/scc/stucontroller/StuExerciseController.java |   98 ++++++++++++++++++++++++------------------------
 1 files changed, 49 insertions(+), 49 deletions(-)

diff --git a/src/main/java/com/qxueyou/scc/stucontroller/StuExerciseController.java b/src/main/java/com/qxueyou/scc/stucontroller/StuExerciseController.java
index 5a641bd..c9a9800 100644
--- a/src/main/java/com/qxueyou/scc/stucontroller/StuExerciseController.java
+++ b/src/main/java/com/qxueyou/scc/stucontroller/StuExerciseController.java
@@ -12,7 +12,7 @@
 import com.qxueyou.scc.base.util.CollectionUtils;
 
 /**
- * 学习端 作业前端控制器
+ * 瀛︿範绔� 浣滀笟鍓嶇鎺у埗鍣�
  * 
  * @author chenjunliang
  *
@@ -21,31 +21,31 @@
 @RequestMapping(value = "/stu/exercise")
 public class StuExerciseController {
 	/**
-	 * 学习端获取作业列表
+	 * 瀛︿範绔幏鍙栦綔涓氬垪琛�
 	 * 
 	 * @param classId
-	 *            班级id
-	 * @return type (状态说明: 0,试题。 1,上传。2,写作) percent(状态说明:0,草稿。1,待完成。2,已完成。3,逾期未交)
-	 *         reform(0,重做,1,不重做)
+	 *            鐝骇id
+	 * @return type (鐘舵�佽鏄庯細 0,璇曢銆� 1,涓婁紶銆�2,鍐欎綔) percent(鐘舵�佽鏄庯細0,鑽夌銆�1,寰呭畬鎴愩��2,宸插畬鎴愩��3,閫炬湡鏈氦)
+	 *         reform(0,閲嶅仛,1,涓嶉噸鍋�)
 	 * @param limit
-	 *            每页显示几条
+	 *            姣忛〉鏄剧ず鍑犳潯
 	 * @param pageNum
-	 *            页码
+	 *            椤电爜
 	 * 
 	 */
 	@GetMapping(value = "getExerciseInfoLst")
 	public Result getExerciseLst(String classId, Integer limit, Integer pageNum) {
 		Map<String, Object> exerciseOne = CollectionUtils.newObjectMap("exerciseInfoId", "1111", "name",
-				"虚拟现实技术入门体检与制作", "type", 0, "percent", 0, "score", 30, "startTime", new Date(), "endTime", new Date(),
+				"铏氭嫙鐜板疄鎶�鏈叆闂ㄤ綋妫�涓庡埗浣�", "type", 0, "percent", 0, "score", 30, "startTime", new Date(), "endTime", new Date(),
 				"reform", 1);
 		Map<String, Object> exerciseTwo = CollectionUtils.newObjectMap("exerciseInfoId", "2222", "exerciseName",
-				"虚拟货币的前世今生1", "type", 1, "percent", 1, "reform", 0, "score", 30, "startTime", new Date(), "endTime",
+				"铏氭嫙璐у竵鐨勫墠涓栦粖鐢�1", "type", 1, "percent", 1, "reform", 0, "score", 30, "startTime", new Date(), "endTime",
 				new Date());
 		Map<String, Object> exerciseThree = CollectionUtils.newObjectMap("exerciseInfoId", "3333", "exerciseName",
-				"虚拟货币的前世今生2", "type", 2, "percent", 2, "reform", 1, "score", 30, "startTime", new Date(), "endTime",
+				"铏氭嫙璐у竵鐨勫墠涓栦粖鐢�2", "type", 2, "percent", 2, "reform", 1, "score", 30, "startTime", new Date(), "endTime",
 				new Date());
 		Map<String, Object> exerciseFour = CollectionUtils.newObjectMap("exerciseInfoId", "4444", "exerciseName",
-				"虚拟货币的前世今生3", "type", 2, "percent", 3, "reform", 1, "score", 30, "startTime", new Date(), "endTime",
+				"铏氭嫙璐у竵鐨勫墠涓栦粖鐢�3", "type", 2, "percent", 3, "reform", 1, "score", 30, "startTime", new Date(), "endTime",
 				new Date());
 		return new Result(true, "success",
 				CollectionUtils.newObjectMap("exerciseInfoLst",
@@ -54,16 +54,16 @@
 	}
 
 	/**
-	 * 学习端 提交作业
+	 * 瀛︿範绔� 鎻愪氦浣滀笟
 	 * 
 	 * @param exerciseInfoId
-	 *            作业id
+	 *            浣滀笟id
 	 * @param urlPath
-	 *            上传文件路径(多个以逗号隔开)
+	 *            涓婁紶鏂囦欢璺緞(澶氫釜浠ラ�楀彿闅斿紑)
 	 * @param desc
-	 *            作业描述
+	 *            浣滀笟鎻忚堪
 	 * @param status
-	 *            提交状态(1,保存草稿。2,提交作业。)
+	 *            鎻愪氦鐘舵��(1,淇濆瓨鑽夌銆�2,鎻愪氦浣滀笟銆�)
 	 * @param answerItem
 	 *            [{"exerciseId":"11111","optionId":"4444,2222,3333"},{"exerciseId":"22222","optionId":"2222"},{"exerciseId":"33333","optionId":""}]
 	 */
@@ -73,16 +73,16 @@
 	}
 
 	/**
-	 * 学习端 查看作业
+	 * 瀛︿範绔� 鏌ョ湅浣滀笟
 	 * 
 	 * @param exerciseInfoId
-	 *            作业id
-	 * @return percent (状态说明:0,草稿.1,待完成。2,已完成。) type (状态说明: 0,试卷。 1,上传。2,写作) 做作业
+	 *            浣滀笟id
+	 * @return percent (鐘舵�佽鏄庯細0锛岃崏绋�.1锛屽緟瀹屾垚銆�2锛屽凡瀹屾垚銆�) type (鐘舵�佽鏄庯細 0,璇曞嵎銆� 1,涓婁紶銆�2,鍐欎綔) 鍋氫綔涓�
 	 * 
 	 * @param exerciseInfoId
-	 *            作业id
-	 * @param 分数说明
-	 *            totalScore 总分, passing 合格分,goal 得分 (没有数值即为null)commentContent 为评语
+	 *            浣滀笟id
+	 * @param 鍒嗘暟璇存槑
+	 *            totalScore 鎬诲垎, passing 鍚堟牸鍒�,goal 寰楀垎 (娌℃湁鏁板�煎嵆涓簄ull)commentContent 涓鸿瘎璇�
 	 */
 	@GetMapping(value = "getHomeworkDetail")
 	public Result getHomewordDetail(String exerciseInfoId) {
@@ -90,59 +90,59 @@
 		Map<String, Object> typeTwo = CollectionUtils.newObjectMap("type", 2, "count", 3);
 		Map<String, Object> typeThree = CollectionUtils.newObjectMap("type", 3, "count", 3);
 		return new Result(true, "success",
-				CollectionUtils.newObjectMap("subjectName", "物流", "requireDesc", "请自行完成作答,勿翻看书本。", "startTime",
+				CollectionUtils.newObjectMap("subjectName", "鐗╂祦", "requireDesc", "璇疯嚜琛屽畬鎴愪綔绛�,鍕跨炕鐪嬩功鏈��", "startTime",
 						new Date(), "endTime", new Date(), "totalScore", 100, "passingScore", 60, "questionTypes",
-						CollectionUtils.newList(typeOne, typeTwo, typeThree), "exerciseName", "虚拟现实技术入门体验与制作",
-						"percent", 0, "type", 0, "itemCount", 3, "teacherName", "李老师", "goal", 97, "commentContent",
-						"老师说,你真有才"));
+						CollectionUtils.newList(typeOne, typeTwo, typeThree), "exerciseName", "铏氭嫙鐜板疄鎶�鏈叆闂ㄤ綋楠屼笌鍒朵綔",
+						"percent", 0, "type", 0, "itemCount", 3, "teacherName", "鏉庤�佸笀", "goal", 97, "commentContent",
+						"鑰佸笀璇�,浣犵湡鏈夋墠"));
 	}
 
 	/**
-	 * 作业获取题目列表
+	 * 浣滀笟鑾峰彇棰樼洰鍒楄〃
 	 * 
 	 * @param exerciseInfoId
-	 *            作业id
+	 *            浣滀笟id
 	 * @param type
-	 *            type (状态说明: 0,试卷。 1,上传。2,写作) 做作业
+	 *            type (鐘舵�佽鏄庯細 0,璇曞嵎銆� 1,涓婁紶銆�2,鍐欎綔) 鍋氫綔涓�
 	 */
 	@GetMapping(value = "getItemLst")
 	public Result getItemLst(String exerciseInfoId, Integer type) {
-		// 判断type 如果为写作和上传类型的话 itemList 就为null; 如果为试卷类型 title 和 score filetype 为 null
-		// optionList选择题
-		Map<String, Object> optionA = CollectionUtils.newObjectMap("optionId", "1111", "content", "体检VR眼睛的参数功能,形成报告A",
+		// 鍒ゆ柇type 濡傛灉涓哄啓浣滃拰涓婁紶绫诲瀷鐨勮瘽 itemList 灏变负null; 濡傛灉涓鸿瘯鍗风被鍨� title 鍜� score filetype 涓� null
+		// optionList閫夋嫨棰�
+		Map<String, Object> optionA = CollectionUtils.newObjectMap("optionId", "1111", "content", "浣撴VR鐪肩潧鐨勫弬鏁板姛鑳�,褰㈡垚鎶ュ憡A",
 				"optionOrder", "A", "imgPath", "/web/path", "check", false);
-		Map<String, Object> optionB = CollectionUtils.newObjectMap("optionId", "2222", "content", "体检VR眼睛的参数功能,形成报告B",
+		Map<String, Object> optionB = CollectionUtils.newObjectMap("optionId", "2222", "content", "浣撴VR鐪肩潧鐨勫弬鏁板姛鑳�,褰㈡垚鎶ュ憡B",
 				"optionOrder", "B", "imgPath", "/web/path", "check", false);
-		Map<String, Object> optionC = CollectionUtils.newObjectMap("optionId", "3333", "content", "体检VR眼睛的参数功能,形成报告C",
+		Map<String, Object> optionC = CollectionUtils.newObjectMap("optionId", "3333", "content", "浣撴VR鐪肩潧鐨勫弬鏁板姛鑳�,褰㈡垚鎶ュ憡C",
 				"optionOrder", "C", "imgPath", "/web/path", "check", false);
-		Map<String, Object> optionD = CollectionUtils.newObjectMap("optionId", "4444", "content", "体检VR眼睛的参数功能,形成报告D",
+		Map<String, Object> optionD = CollectionUtils.newObjectMap("optionId", "4444", "content", "浣撴VR鐪肩潧鐨勫弬鏁板姛鑳�,褰㈡垚鎶ュ憡D",
 				"optionOrder", "D", "imgPath", "/web/path", "check", true);
-		// 判断题
-		Map<String, Object> checkoptionA = CollectionUtils.newObjectMap("optionId", "5555", "content", "李白是李白他爸爸生的",
+		// 鍒ゆ柇棰�
+		Map<String, Object> checkoptionA = CollectionUtils.newObjectMap("optionId", "5555", "content", "鏉庣櫧鏄潕鐧戒粬鐖哥埜鐢熺殑",
 				"optionOrder", false, "imgPath", "/web/path", "check", false);
-		Map<String, Object> checkoptionB = CollectionUtils.newObjectMap("optionId", "6666", "content", "李白是李白他妈妈生的",
+		Map<String, Object> checkoptionB = CollectionUtils.newObjectMap("optionId", "6666", "content", "鏉庣櫧鏄潕鐧戒粬濡堝鐢熺殑",
 				"optionOrder", true, "imgPath", "/web/path", "check", false);
 
-		// 显示题目 列表;
-		Map<String, Object> two = CollectionUtils.newObjectMap("socre", 5, "exerciseId", "11111", "title", "这是多选题",
+		// 鏄剧ず棰樼洰 鍒楄〃;
+		Map<String, Object> two = CollectionUtils.newObjectMap("socre", 5, "exerciseId", "11111", "title", "杩欐槸澶氶�夐",
 				"type", 2, "options", CollectionUtils.newList(optionA, optionB, optionC, optionD), "answer", "A,B",
-				"analisis", "这是答案解析", "isRight", true);
-		Map<String, Object> one = CollectionUtils.newObjectMap("socre", 6, "exerciseId", "22222", "title", "这是单选题",
+				"analisis", "杩欐槸绛旀瑙f瀽", "isRight", true);
+		Map<String, Object> one = CollectionUtils.newObjectMap("socre", 6, "exerciseId", "22222", "title", "杩欐槸鍗曢�夐",
 				"type", 1, "options", CollectionUtils.newList(optionA, optionB, optionC, optionD), "answer", "A",
-				"analisis", "这是答案解析", "isRight", false);
+				"analisis", "杩欐槸绛旀瑙f瀽", "isRight", false);
 
-		Map<String, Object> three = CollectionUtils.newObjectMap("socre", 8, "exerciseId", "33333", "title", "这是判断题",
+		Map<String, Object> three = CollectionUtils.newObjectMap("socre", 8, "exerciseId", "33333", "title", "杩欐槸鍒ゆ柇棰�",
 				"type", 3, "options", CollectionUtils.newList(checkoptionA, checkoptionB), "answer", true, "analisis",
-				"这是答案解析", "isRight", true);
-		// fileType1 图片; 2 文档 3 视频 4 音频,5 压缩包
+				"杩欐槸绛旀瑙f瀽", "isRight", true);
+		// fileType1 鍥剧墖锛� 2 鏂囨。 3 瑙嗛 4 闊抽,5 鍘嬬缉鍖�
 
 		return new Result(true, "success",
 				CollectionUtils.newObjectMap("itemDetail",
-						CollectionUtils.newObjectMap("title", "拍摄一个关于VR的科普视频", "desc", "学生之前写的内容", "fileLst",
+						CollectionUtils.newObjectMap("title", "鎷嶆憚涓�涓叧浜嶸R鐨勭鏅棰�", "desc", "瀛︾敓涔嬪墠鍐欑殑鍐呭", "fileLst",
 								CollectionUtils.newList(
-										CollectionUtils.newObjectMap("fileName", "文件1", "fileId", "1111", "coverUrl",
+										CollectionUtils.newObjectMap("fileName", "鏂囦欢1", "fileId", "1111", "coverUrl",
 												"static/img/img.jpg"),
-										CollectionUtils.newObjectMap("fileName", "文件2", "fileId", "2222", "coverUrl",
+										CollectionUtils.newObjectMap("fileName", "鏂囦欢2", "fileId", "2222", "coverUrl",
 												"static/img/img.jpg")),
 								"filetype", 3),
 						"itemList", CollectionUtils.newList(one, two, three)));

--
Gitblit v1.8.0