Commit dadf53bf76b0f5645ab9871406b83f8d06743be7
1 parent
fff1410263
Exists in
master
and in
6 other branches
孕妇课程调查
Showing 1 changed file with 11 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientCourseFacade.java
View file @
dadf53b
... | ... | @@ -520,7 +520,7 @@ |
520 | 520 | { |
521 | 521 | for (CourseModel model : courseModels) |
522 | 522 | { |
523 | - Map<String,String> result = new HashMap<>(); | |
523 | + Map<String,Object> result = new HashMap<>(); | |
524 | 524 | //课程id |
525 | 525 | result.put("courseId",model.getId()); |
526 | 526 | |
527 | 527 | |
... | ... | @@ -558,9 +558,19 @@ |
558 | 558 | if (CollectionUtils.isNotEmpty(typeModels)) |
559 | 559 | { |
560 | 560 | courseType = typeModels.get(0).getCourseTypeName(); |
561 | + result.put("typeAvg",typeModels.get(0).getAvg()); | |
561 | 562 | } |
562 | 563 | result.put("courseType",courseType); |
563 | 564 | |
565 | + | |
566 | + | |
567 | + //医生平均评分 | |
568 | + Integer docAvg = null; | |
569 | + if (model.getCourseSpeaker() != null && StringUtils.isNumeric(model.getCourseSpeaker())) | |
570 | + { | |
571 | + docAvg = usersService.findUserAvgScore(Integer.parseInt(model.getCourseSpeaker())); | |
572 | + } | |
573 | + result.put("docAvg", docAvg); | |
564 | 574 | |
565 | 575 | //课程上限人数 |
566 | 576 | result.put("limitNum", model.getLimitNum() == null ? "0" : String.valueOf(model.getLimitNum())); |