From c8edb2fc9223740d05ebc8db66fe10cbbb70f76b Mon Sep 17 00:00:00 2001 From: "zhiyong.ning" <354350178@qq.com> Date: Thu, 23 Jul 2020 16:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95=E3=80=81?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/ExperimentalClassService.java | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/service/ExperimentalClassService.java b/src/main/java/com/yipin/liuwanr/service/ExperimentalClassService.java index faabf17..d01501b 100644 --- a/src/main/java/com/yipin/liuwanr/service/ExperimentalClassService.java +++ b/src/main/java/com/yipin/liuwanr/service/ExperimentalClassService.java @@ -41,7 +41,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "添加学生失败!"); return resp; } return resp; @@ -59,7 +59,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "删除学生失败"); return resp; } return resp; @@ -74,7 +74,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "创建实验班级失败!"); throw e; } return resp; @@ -89,7 +89,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询实验班级失败!"); return resp; } return resp; @@ -104,7 +104,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询实验班级专业失败!"); return resp; } return resp; @@ -119,7 +119,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询学生行政班级失败!"); return resp; } return resp; @@ -150,7 +150,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询班级详情失败!"); return resp; } return resp; @@ -172,7 +172,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询失败!"); return resp; } return resp; @@ -190,7 +190,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询专业失败!"); return resp; } return resp; @@ -207,7 +207,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "查询班级失败!"); return resp; } return resp; @@ -223,7 +223,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "删除实验班级失败!"); return resp; } return resp; @@ -237,7 +237,7 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "更新实验班级失败!"); return resp; } return resp; @@ -252,21 +252,17 @@ public class ExperimentalClassService { } catch (RuntimeException e) { logger.error(e.getMessage()); resp.put("retcode", 500); - resp.put("retvalue", "Inquiry Failed"); + resp.put("retvalue", "修改实验班级名称失败!"); return resp; } return resp; } //——————————————————————————————全承珠 - @Autowired - private ExperimentalClassMapper mapper; - - public HashMap queryGetByExperimentalClassName(String experimentalClassName){ HashMap resp = new HashMap(); try { - resp.put("retvalue", mapper.queryGetByExperimentalClassName(experimentalClassName)); + resp.put("retvalue", experimentalClassMapper.queryGetByExperimentalClassName(experimentalClassName)); resp.put("retcode", 200); } catch (RuntimeException e) { logger.error(e.getMessage());