From dc632fe3691bd3edb9b67a37dc5805702f8e01e8 Mon Sep 17 00:00:00 2001 From: "zhiyong.ning" <354350178@qq.com> Date: Tue, 18 Aug 2020 15:07:31 +0800 Subject: [PATCH] Merge branch 'master' of D:\liuwanr with conflicts. --- .../ExperimentalClassController.java | 4 +-- .../mapper/ExperimentalClassMapper.java | 9 ++++-- .../mapper/ExperimentallearningMapper.java | 6 ++-- .../service/ExperimentalClassService.java | 17 ++++++++++- .../service/ExperimentallearningService.java | 28 +++++++++++-------- .../yipin/liuwanr/AliyunOssServiceTest.java | 28 +++++++++---------- 6 files changed, 58 insertions(+), 34 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/controller/ExperimentalClassController.java b/src/main/java/com/yipin/liuwanr/controller/ExperimentalClassController.java index 07440ab..47b21a8 100644 --- a/src/main/java/com/yipin/liuwanr/controller/ExperimentalClassController.java +++ b/src/main/java/com/yipin/liuwanr/controller/ExperimentalClassController.java @@ -297,7 +297,7 @@ public class ExperimentalClassController { Integer schoolId = experimentalClass.getSchoolId(); if (schoolId==null) { resp.setStatus(300); - resp.setErrmessage("Parameter Invalid"); + resp.setErrmessage("学校为空,新增失败!"); }else { HashMap ret = classService.addExperimentalClass(experimentalClass); Integer experimentalClassId = experimentalClass.getExperimentalClassId(); @@ -336,7 +336,7 @@ public class ExperimentalClassController { Integer experimentalClassId = experimentalClass.getExperimentalClassId(); if (experimentalClassId==null) { resp.setStatus(300); - resp.setErrmessage("Parameter cannot be empty"); + resp.setErrmessage("实验班级为空,删除失败!"); }else { HashMap ret = classService.deleteExperimentalClass(experimentalClassId); int status = (int) ret.get("retcode"); diff --git a/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java index 016c618..2762d03 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java @@ -14,8 +14,8 @@ import com.yipin.liuwanr.entity.Professional; import com.yipin.liuwanr.entity.StuProfessionalArchitecture; import com.yipin.liuwanr.entity.Student; -public interface ExperimentalClassMapper { +public interface ExperimentalClassMapper { @Insert("INSERT INTO experimental_class_student(studentId,experimentalClassId)" + "VALUES(#{studentId},#{experimentalClassId})") void experimentClassAddStudent(Student student); @@ -28,7 +28,7 @@ public interface ExperimentalClassMapper { + "VALUES(#{experimentalClassName},#{classSize},now(),#{founder},#{courseId},0,#{userId},#{schoolId})") @Options(useGeneratedKeys=true, keyProperty="experimentalClassId", keyColumn="experimentalClassId") void addExperimentalClass(ExperimentalClass experimentalClass); - + @Select({"