|
@ -2,15 +2,15 @@ package com.yihu.wlyy.service.synergy;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.yihu.edu.entity.dataClean.NewArticleModel;
|
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
|
import com.yihu.wlyy.entity.education.HealthEduArticle;
|
|
|
import com.yihu.wlyy.entity.followup.Followup;
|
|
|
import com.yihu.wlyy.entity.message.Message;
|
|
|
import com.yihu.wlyy.entity.organization.Hospital;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.entity.patient.SignFamily;
|
|
|
import com.yihu.wlyy.jkedu.repository.JkeduArticleDao;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
|
import com.yihu.wlyy.repository.education.HealthEduArticleDao;
|
|
|
import com.yihu.wlyy.repository.followup.FollowUpDao;
|
|
|
import com.yihu.wlyy.repository.organization.HospitalDao;
|
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
@ -54,7 +54,7 @@ public class SynergyManageService extends BaseService {
|
|
|
@Autowired
|
|
|
private HospitalDao hospitalDao;
|
|
|
@Autowired
|
|
|
private HealthEduArticleDao healthEduArticleDao;
|
|
|
private JkeduArticleDao jkeduArticleDao;
|
|
|
|
|
|
public JSONObject getWorkOrderInfo(String workorderCode, String patient, Integer role) throws Exception {
|
|
|
Map<String, Object> param = new HashedMap();
|
|
@ -192,9 +192,9 @@ public class SynergyManageService extends BaseService {
|
|
|
object.put("createUserRole",1);
|
|
|
}else if (type == 1){
|
|
|
object.put("relationCode",objectId);
|
|
|
HealthEduArticle healthEduArticle = healthEduArticleDao.findByCode(objectId);
|
|
|
if (healthEduArticle != null){
|
|
|
object.put("relationCodeName",healthEduArticle.getTitle());
|
|
|
NewArticleModel articleModel = jkeduArticleDao.findByCode(objectId);
|
|
|
if (articleModel != null){
|
|
|
object.put("relationCodeName",articleModel.getArticleTitle());
|
|
|
}
|
|
|
object.put("createUserRole",1);
|
|
|
}else if (type == 5){
|