yeshijie %!s(int64=7) %!d(string=hai) anos
pai
achega
6cb9d42bd6

+ 6 - 5
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/consult/ConsultTeamService.java

@ -768,10 +768,10 @@ public class ConsultTeamService extends ConsultService {
        //自动关注 咨询关注
        ConcernDO concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
        if(concernDO==null){
            concernService.addConcern(patient,doctorCode,3);
            concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
        }
//        if(concernDO==null){
//            concernService.addConcern(patient,doctorCode,3);
//            concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
//        }
        if (exist(patient, ct.getType(),doctorCode)) {
            re.put("status",-1);
@ -812,11 +812,12 @@ public class ConsultTeamService extends ConsultService {
        ct.setConsult(consult.getCode());
        //设置服务团队
        ct.setTeam(concernDO.getTeamCode());
        ct.setDoctor(doctorCode);
        //推送给IM去创建议题,取得成员消息
        JSONObject messages = imUtill.getCreateTopicMessage(patient, tempPatient.getName(), consult.getTitle(), consult.getSymptoms(), consult.getImages(),agent);
        users.put(patient, 0);
        JSONObject obj = imUtill.createTopics(patient + "_" + ct.getTeam() + "_" + ct.getType(), consult.getCode(), tempPatient.getName(), users, messages, ImUtill.SESSION_TYPE_MUC);
        JSONObject obj = imUtill.createTopics(patient + "_" + ct.getDoctor() + "_" + ct.getType(), consult.getCode(), tempPatient.getName(), users, messages, ImUtill.SESSION_TYPE_MUC);
        if (obj == null) {
            throw new RuntimeException("IM消息发送异常!");
        }

+ 1 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/consult/ConsultController.java

@ -343,6 +343,7 @@ public class ConsultController extends WeixinBaseController {
     * @param images   图片URL地址,多图以逗号分隔
     * @param voice    语音URL地址
     * @param doctor   咨询医生code
     * @param guidance   指导id
     * @return
     */
    @RequestMapping(value = "add")

+ 2 - 2
patient-co/patient-co-wlyy/src/main/resources/application-dev.yml

@ -31,8 +31,8 @@ wlyy:
  hospital: 49229004X # 默认医院code
im:
  im_list_get: http://172.19.103.88:3000/
  data_base_name: ichat
  im_list_get: http://192.168.131.24:3000/
  data_base_name: im_sr
#物联网配置
iot: