Commit 55c7636d0b74bf89c4999b2c058f3a80bf53e17f

Authored by liquanyu
1 parent 5c2d156310

孕妇学校

Showing 2 changed files with 28 additions and 10 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/ConnTools.java View file @ 55c7636
... ... @@ -36,16 +36,16 @@
36 36 private static String fmPassword = "LYMS";
37 37  
38 38  
39   - private static String clDirverClassName = "oracle.jdbc.driver.OracleDriver";
40   - private static String clUrl = "jdbc:oracle:thin:@168.254.0.80:1521:jhemr";
41   - private static String clUser = "lyms";
42   - private static String clPassword = "lyms";
  39 +// private static String clDirverClassName = "oracle.jdbc.driver.OracleDriver";
  40 +// private static String clUrl = "jdbc:oracle:thin:@168.254.0.80:1521:jhemr";
  41 +// private static String clUser = "lyms";
  42 +// private static String clPassword = "lyms";
43 43  
44 44  
45   -// private static String clDirverClassName = "com.mysql.jdbc.Driver";
46   -// private static String clUrl = "jdbc:mysql://119.90.57.26:3306/platform?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8";
47   -// private static String clUser = "platform";
48   -// private static String clPassword = "platform123";
  45 + private static String clDirverClassName = "com.mysql.jdbc.Driver";
  46 + private static String clUrl = "jdbc:mysql://119.90.57.26:3306/platform?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8";
  47 + private static String clUser = "platform";
  48 + private static String clPassword = "platform123";
49 49  
50 50  
51 51 public static Connection makeHisConnection() {
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientCourseController.java View file @ 55c7636
... ... @@ -72,7 +72,7 @@
72 72 @RequestParam(required = true) String courseId,
73 73 HttpServletRequest request) {
74 74  
75   - return patientCourseFacade.queryOrderPatient(queryNo,courseId, getUserId(request));
  75 + return patientCourseFacade.queryOrderPatient(queryNo, courseId, getUserId(request));
76 76 }
77 77  
78 78  
... ... @@ -90,7 +90,7 @@
90 90 @RequestParam(required = true) String courseId,
91 91 HttpServletRequest request) {
92 92  
93   - return patientCourseFacade.querySignPatient(queryNo,courseId, getUserId(request));
  93 + return patientCourseFacade.querySignPatient(queryNo, courseId, getUserId(request));
94 94 }
95 95  
96 96  
... ... @@ -125,6 +125,24 @@
125 125 @RequestMapping(method = RequestMethod.GET, value = "/signCourse")
126 126 @ResponseBody
127 127 public BaseResponse signCourse(
  128 + @RequestParam(required = true) String patientCourseId,
  129 + @RequestParam(required = true) String courseId,
  130 + HttpServletRequest request) {
  131 +
  132 + return patientCourseFacade.signCourse(patientCourseId, courseId, getUserId(request));
  133 + }
  134 +
  135 +
  136 + /**
  137 + * 获取小程序的孕妇学校列表
  138 + * @param patientCourseId
  139 + * @param courseId
  140 + * @param request
  141 + * @return
  142 + */
  143 + @RequestMapping(method = RequestMethod.GET, value = "/getAppPatientCourseList")
  144 + @ResponseBody
  145 + public BaseResponse getAppPatientCourseList(
128 146 @RequestParam(required = true) String patientCourseId,
129 147 @RequestParam(required = true) String courseId,
130 148 HttpServletRequest request) {