Browse Source

代码修改

LAPTOP-KB9HII50\70708 1 year ago
parent
commit
8b28e15a2d

+ 8 - 7
business/im-service/src/main/java/com/yihu/jw/im/service/ImService.java

@ -1025,6 +1025,14 @@ public class ImService {
        String title = "专家咨询";
        if(ct.getType()==28){
            title = "康复咨询";
            ServiceItemPlanDO serviceItemPlanDO = serviceItemPlanDao.findById(relationCode).orElse(null);
            if(serviceItemPlanDO!=null){
                if(!StringUtils.isEmpty(serviceItemPlanDO.getRelationCode())){
                    throw new RuntimeException("该计划已发起过咨询,请选择其他计划发起!");
                }
                serviceItemPlanDO.setRelationCode(ct.getConsult());
                serviceItemPlanDao.save(serviceItemPlanDO);
            }
        }
@ -1087,13 +1095,6 @@ public class ImService {
        ct.setStartMsgId(obj.get("start_msg_id").toString());
        consultTeamDao.save(ct);
        consultDao.save(consult);
        if(ct.getType()==28){
            ServiceItemPlanDO serviceItemPlanDO = serviceItemPlanDao.findById(relationCode).orElse(null);
            if(serviceItemPlanDO!=null){
                serviceItemPlanDO.setRelationCode(ct.getConsult());
                serviceItemPlanDao.save(serviceItemPlanDO);
            }
        }
        JSONArray doctors = new JSONArray();
        for (String key : users.keySet()) {
            if (patient.equals(key)) {