Commit e0b926dc17ff4c7963d3b61f23c0b7bd6c727dcb
1 parent
e558b93918
Exists in
master
and in
6 other branches
孕妇课程调查
Showing 2 changed files with 10 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CourseFacade.java
View file @
e0b926d
| ... | ... | @@ -381,6 +381,8 @@ |
| 381 | 381 | { |
| 382 | 382 | for (CourseModel model : courseModels) |
| 383 | 383 | { |
| 384 | + | |
| 385 | + System.out.println("course====" + model.getCourseName()); | |
| 384 | 386 | model.setStatus(CourseStatusEnums.YJS.getId()); |
| 385 | 387 | courseService.updateCourse(model); |
| 386 | 388 | |
| 387 | 389 | |
| ... | ... | @@ -390,11 +392,13 @@ |
| 390 | 392 | //状态 1预约,2签到 |
| 391 | 393 | patientCourseQuery.setStatus(2); |
| 392 | 394 | List<PatientCourseModel> patientCourseModels = patientCourseService.queryPatientCourseList(patientCourseQuery); |
| 395 | + System.out.println("course====" + patientCourseModels.size()); | |
| 393 | 396 | if (CollectionUtils.isNotEmpty(patientCourseModels)) |
| 394 | 397 | { |
| 395 | 398 | CourseQuery query1 = new CourseQuery(); |
| 396 | 399 | for (PatientCourseModel patientCourseModel : patientCourseModels) |
| 397 | 400 | { |
| 401 | + System.out.println("course====" + patientCourseModel.getPhone()); | |
| 398 | 402 | query1.setYn(YnEnums.YES.getId()); |
| 399 | 403 | query1.setId(patientCourseModel.getCourseId()); |
| 400 | 404 | List<CourseModel> courseModels1 = courseService.queryCourseList(query); |
| 401 | 405 | |
| 402 | 406 | |
| 403 | 407 | |
| ... | ... | @@ -413,23 +417,24 @@ |
| 413 | 417 | } |
| 414 | 418 | |
| 415 | 419 | String courseName = CollectionUtils.isNotEmpty(courseModels1) ? courseModels1.get(0).getCourseName() : ""; |
| 416 | - saveMsg(patientCourseModel.getHospitalId(),patientCourseModel.getPhone(),patientCourseModel.getPhone(),courseName,speaker,patientCourseModel.getId()); | |
| 420 | + saveMsg(patientCourseModel.getHospitalId(),patientCourseModel.getPhone(),patientCourseModel.getPhone(), | |
| 421 | + courseName,speaker,patientCourseModel.getId(),patientCourseModel.getCourseId()); | |
| 417 | 422 | } |
| 418 | 423 | } |
| 419 | 424 | } |
| 420 | 425 | } |
| 421 | 426 | } |
| 422 | 427 | |
| 423 | - private void saveMsg(String hospitalId,String phone,String patientId,String courseName,String doctorName,String patientCourseId) | |
| 428 | + private void saveMsg(String hospitalId,String phone,String patientId,String courseName,String doctorName,String patientCourseId,String courseId) | |
| 424 | 429 | { |
| 425 | 430 | //判断医院是否启动和对应的服务项是否启用 |
| 426 | 431 | SmsConfigModel configModel = new SmsConfigModel(); |
| 427 | 432 | // 1 推送服务, 2 推送和短信服务 3短信服务, |
| 428 | 433 | int startType = smsConfigFacade.hospitalIsStart(hospitalId, configModel, SmsServiceEnums.YFXXKCTX.getId()); |
| 434 | + System.out.println("course====" + startType); | |
| 429 | 435 | if (startType == 0) { |
| 430 | 436 | return; |
| 431 | 437 | } |
| 432 | - | |
| 433 | 438 | //短信前缀 |
| 434 | 439 | String messagePrefix = configModel.getHospitalPrefix(); |
| 435 | 440 | List<MsgRequest> messages = new ArrayList<>(); |
| ... | ... | @@ -451,7 +456,7 @@ |
| 451 | 456 | |
| 452 | 457 | mr.setKeyword1(courseName); |
| 453 | 458 | mr.setKeyword2(doctorName); |
| 454 | - mr.setRemark(""); | |
| 459 | + mr.setRemark(courseId); | |
| 455 | 460 | mr.setCreated(DateUtil.getyyyy_MM_dd_hms(new Date())); |
| 456 | 461 | mr.setSmsStatus(SmsStatusEnums.WFS.getId()); |
| 457 | 462 | mr.setServiceType(startType); |
platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
e0b926d
| ... | ... | @@ -219,7 +219,7 @@ |
| 219 | 219 | <!-- 要调用的bean --> |
| 220 | 220 | <property name="targetObject" ref="courseFacade"></property> |
| 221 | 221 | <!-- 要调用的Method --> |
| 222 | - <property name="targetMethod" value="handCoureseEnd"></property> | |
| 222 | + <property name="targetMethod" value="handCoureseEndOnline"></property> | |
| 223 | 223 | <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 --> |
| 224 | 224 | <property name="concurrent" value="false"></property> |
| 225 | 225 | </bean> |