Commit 1cc2499a690e97fb99553f1f56db810634d61f9a
1 parent
902fb5942d
Exists in
master
and in
6 other branches
孕妇学校
Showing 3 changed files with 16 additions and 4 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CourseService.java
View file @
1cc2499
... | ... | @@ -58,5 +58,17 @@ |
58 | 58 | } |
59 | 59 | return null; |
60 | 60 | } |
61 | + | |
62 | + public CourseModel getCourseByCourseTypeId(String typeId) { | |
63 | + CourseQuery query = new CourseQuery(); | |
64 | + query.setYn(YnEnums.YES.getId()); | |
65 | + query.setCourseTypeId(typeId); | |
66 | + List<CourseModel> list = queryCourseList(query); | |
67 | + if (CollectionUtils.isNotEmpty(list)) | |
68 | + { | |
69 | + return list.get(0); | |
70 | + } | |
71 | + return null; | |
72 | + } | |
61 | 73 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CourseTypeController.java
View file @
1cc2499
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CourseTypeFacade.java
View file @
1cc2499
... | ... | @@ -84,7 +84,7 @@ |
84 | 84 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
85 | 85 | CourseTypeQuery query = new CourseTypeQuery(); |
86 | 86 | query.setId(id); |
87 | - query.setNeed("true"); | |
87 | + // query.setNeed("true"); | |
88 | 88 | query.setHospitalId(hospitalId); |
89 | 89 | query.setYn(YnEnums.YES.getId()); |
90 | 90 | |
... | ... | @@ -147,7 +147,7 @@ |
147 | 147 | |
148 | 148 | public BaseResponse deleteCoureseTypeById(String id) { |
149 | 149 | BaseResponse objectResponse = new BaseResponse(); |
150 | - CourseModel courseModel = courseService.getCourseById(id); | |
150 | + CourseModel courseModel = courseService.getCourseByCourseTypeId(id); | |
151 | 151 | if (courseModel != null) |
152 | 152 | { |
153 | 153 | objectResponse.setErrorcode(ErrorCodeConstants.DONT_DELETE); |