|
@ -16,6 +16,7 @@ import com.yihu.jw.im.util.ImUtil;
|
|
|
import com.yihu.jw.patient.dao.BasePatientBusinessDao;
|
|
|
import com.yihu.jw.utils.EntityUtils;
|
|
|
import com.yihu.mysql.query.BaseJpaService;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@ -222,7 +223,10 @@ public class KnowledgeArticleService extends BaseJpaService<KnowledgeArticleDO,
|
|
|
if (patientBusinessDO.getRelationType()==1){
|
|
|
KnowledgeArticleDO knowledgeArticleDO = knowledgeArticleDao.findByIdAndDel(patientBusinessDO.getRelationCode());
|
|
|
System.out.println("content:"+JSON.toJSONString(knowledgeArticleDO));
|
|
|
imUtil.sendImMsg(patientBusinessDO.getDoctor(), patientBusinessDO.getDoctorName(), patientBusinessDO.getSessionId(), "4", JSON.toJSONString(knowledgeArticleDO),"1");
|
|
|
Map<String,Object> map = new HashedMap();
|
|
|
map.put("title",knowledgeArticleDO.getTitle());
|
|
|
map.put("content",knowledgeArticleDO.getContent());
|
|
|
imUtil.sendImMsg(patientBusinessDO.getDoctor(), patientBusinessDO.getDoctorName(), patientBusinessDO.getSessionId(), "4", map.toString(),"1");
|
|
|
}
|
|
|
|
|
|
}
|