|
|
@ -41,7 +41,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "添加学生失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -59,7 +59,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "删除学生失败"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -74,7 +74,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "创建实验班级失败!"); |
|
|
|
throw e; |
|
|
|
throw e; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -89,7 +89,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询实验班级失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -104,7 +104,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询实验班级专业失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -119,7 +119,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询学生行政班级失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -150,7 +150,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询班级详情失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -172,7 +172,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -190,7 +190,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询专业失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -207,7 +207,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "查询班级失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -223,7 +223,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "删除实验班级失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -237,7 +237,7 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "更新实验班级失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
@ -252,21 +252,17 @@ public class ExperimentalClassService { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retcode", 500); |
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
resp.put("retvalue", "修改实验班级名称失败!"); |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
//——————————————————————————————全承珠
|
|
|
|
//——————————————————————————————全承珠
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private ExperimentalClassMapper mapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public HashMap<String, Object> queryGetByExperimentalClassName(String experimentalClassName){ |
|
|
|
public HashMap<String, Object> queryGetByExperimentalClassName(String experimentalClassName){ |
|
|
|
HashMap<String, Object> resp = new HashMap<String, Object>(); |
|
|
|
HashMap<String, Object> resp = new HashMap<String, Object>(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
resp.put("retvalue", mapper.queryGetByExperimentalClassName(experimentalClassName)); |
|
|
|
resp.put("retvalue", experimentalClassMapper.queryGetByExperimentalClassName(experimentalClassName)); |
|
|
|
resp.put("retcode", 200); |
|
|
|
resp.put("retcode", 200); |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage()); |
|
|
|