Commit 7fe178a9b17601fc0c7dd8b3189f3ea8f5836ec3
1 parent
1f469ae8e4
Exists in
master
and in
6 other branches
孕妇课程
Showing 3 changed files with 31 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CourseController.java
View file @
7fe178a
... | ... | @@ -70,6 +70,23 @@ |
70 | 70 | null, null, null, null, getUserId(request), null); |
71 | 71 | } |
72 | 72 | |
73 | + /** | |
74 | + * 小程序获取可以签到的列表 | |
75 | + * @param hospitalId | |
76 | + * @param request | |
77 | + * @return | |
78 | + */ | |
79 | + @RequestMapping(method = RequestMethod.GET, value = "/getAppYfbCoureseList") | |
80 | + @ResponseBody | |
81 | + @TokenRequired | |
82 | + public BaseResponse getAppYfbCoureseList( | |
83 | + @RequestParam(required = false) String hospitalId, | |
84 | + HttpServletRequest request) { | |
85 | + | |
86 | + return courseFacade.getCoureseListResp(null, 2, null, null, | |
87 | + null, null, null, null, null, hospitalId); | |
88 | + } | |
89 | + | |
73 | 90 | |
74 | 91 | |
75 | 92 | /** |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CourseFacade.java
View file @
7fe178a
... | ... | @@ -114,11 +114,22 @@ |
114 | 114 | return model; |
115 | 115 | } |
116 | 116 | |
117 | - public BaseResponse getCoureseList(String courseTypeId, Integer status,String courseName,String courseSpeaker, | |
117 | + public BaseResponse getCoureseList(String courseTypeId, Integer status, | |
118 | + String courseName,String courseSpeaker, | |
118 | 119 | String createdTime, String courseTime, |
119 | - Integer page, Integer limit, Integer userId,String isPage) { | |
120 | + Integer page, Integer limit, | |
121 | + Integer userId,String isPage) { | |
120 | 122 | |
121 | 123 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
124 | + BaseListResponse objectResponse = getCoureseListResp(courseTypeId, status, courseName, courseSpeaker, createdTime, courseTime, page, limit, isPage, hospitalId); | |
125 | + return objectResponse; | |
126 | + } | |
127 | + | |
128 | + public BaseListResponse getCoureseListResp(String courseTypeId, Integer status, | |
129 | + String courseName, String courseSpeaker, | |
130 | + String createdTime, String courseTime, | |
131 | + Integer page, Integer limit, | |
132 | + String isPage, String hospitalId) { | |
122 | 133 | List<CourseResult> results = new ArrayList<>(); |
123 | 134 | CourseQuery query = new CourseQuery(); |
124 | 135 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientCourseFacade.java
View file @
7fe178a