From 068fc7f2e81178e55fa191a13709af64b1a163f6 Mon Sep 17 00:00:00 2001 From: EricsHu <hrr145632> Date: 星期一, 05 十二月 2022 14:27:43 +0800 Subject: [PATCH] 处理编码 --- src/main/java/com/qxueyou/scc/exam/service/impl/ExamPaperService.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/exam/service/impl/ExamPaperService.java b/src/main/java/com/qxueyou/scc/exam/service/impl/ExamPaperService.java index 334525c..98ec5f3 100644 --- a/src/main/java/com/qxueyou/scc/exam/service/impl/ExamPaperService.java +++ b/src/main/java/com/qxueyou/scc/exam/service/impl/ExamPaperService.java @@ -21,7 +21,7 @@ import com.qxueyou.scc.exercise.service.IExerciseGroupService; /** - * 试卷管理服务层 + * 璇曞嵎绠$悊鏈嶅姟灞� * * @author kevin * @createTime 2017-11-1 @@ -41,13 +41,13 @@ String examPaperId = null, groupId = null; ExerciseGroup exerciseGroup = null; - //创建试卷关联题库 + //鍒涘缓璇曞嵎鍏宠仈棰樺簱 exerciseGroup = new ExerciseGroup(); - exerciseGroup.setName(examPaperInfo.getExamPaperName()+"-试卷题库"); + exerciseGroup.setName(examPaperInfo.getExamPaperName()+"-璇曞嵎棰樺簱"); exerciseGroup.setType(ExerciseGroup.TYPE_EXERCISE_EXAM_ITEM); groupId = exerciseGroupService.addExerciseGroup(exerciseGroup); - //保存试卷 + //淇濆瓨璇曞嵎 examPaperId = UUIDUtils.generateUUID().replace("-", ""); examPaperInfo.setExamPaperId(examPaperId); examPaperInfo.setPaperStatus(ExamPaperInfo.STATUS_DRAFT); @@ -92,11 +92,11 @@ for (ExamPaperInfo examPaperInfo : lstExamPaperInfo) { if(ExamPaperInfo.STATUS_DRAFT!=examPaperInfo.getPaperStatus()){ - return new Result(false, "只有草稿状态的试卷,才能发布。"); + return new Result(false, "鍙湁鑽夌鐘舵�佺殑璇曞嵎,鎵嶈兘鍙戝竷銆�"); } if(examPaperInfo.getTotalScore()<=0){ - return new Result(false, "试卷总分大于零,才能发布。"); + return new Result(false, "璇曞嵎鎬诲垎澶т簬闆�,鎵嶈兘鍙戝竷銆�"); } examPaperInfo.setPaperStatus(ExamPaperInfo.STATUS_PUBLISH); @@ -104,7 +104,7 @@ save(examPaperInfo); } }else{ - return new Result(false, "没有选择要发布的试卷。"); + return new Result(false, "娌℃湁閫夋嫨瑕佸彂甯冪殑璇曞嵎銆�"); } return new Result(true); } @@ -119,14 +119,14 @@ List<ExamPaperInfo> lstExamPaperInfo = this.findByComplexHql(hql,pramMap, ExamPaperInfo.class); for (ExamPaperInfo examPaperInfo : lstExamPaperInfo) { if(ExamPaperInfo.STATUS_PUBLISH!=examPaperInfo.getPaperStatus()){ - return new Result(false, "只有发布状态的试卷,才能撤回。"); + return new Result(false, "鍙湁鍙戝竷鐘舵�佺殑璇曞嵎,鎵嶈兘鎾ゅ洖銆�"); } examPaperInfo.setPaperStatus(ExamPaperInfo.STATUS_DRAFT); TraceUtils.setUpdateTrace(examPaperInfo); save(examPaperInfo); } }else{ - return new Result(false, "没有选择要撤回的试卷。"); + return new Result(false, "娌℃湁閫夋嫨瑕佹挙鍥炵殑璇曞嵎銆�"); } return new Result(true); -- Gitblit v1.8.0