Commit 17715043feb55460402d1a991a74051f99cd6812
1 parent
d9b2b420
1.修复可重复任课bug
2.修改文案
Showing
3 changed files
with
8 additions
and
5 deletions
WebRoot/WEB-INF/jsp/sunvote/paper/test_list1.jsp
resources/mybatis1/sunvote/CourseManagementMapper.xml
src/com/fh/controller/sunvote/coursemanagement/CourseManagementController.java
... | ... | @@ -96,11 +96,14 @@ public class CourseManagementController extends BaseController { |
96 | 96 | pd.put("SUBJECT_ID", tpd.get("SUBJECT_IDS")); |
97 | 97 | if(coursemanagementService.findByCourse(pd) == null){ |
98 | 98 | coursemanagementService.save(pd); |
99 | + mv.addObject("msg","success"); | |
100 | + mv.setViewName("save_result2"); | |
99 | 101 | }else{ |
100 | 102 | //TODO |
103 | + mv.addObject("msg","不能重复任课,请检查后再试"); | |
104 | + mv.setViewName("save_result2"); | |
101 | 105 | } |
102 | - mv.addObject("msg","success"); | |
103 | - mv.setViewName("save_result2"); | |
106 | + | |
104 | 107 | return mv; |
105 | 108 | } |
106 | 109 | ... | ... |