|
@ -28,11 +28,11 @@ import com.yihu.wlyy.service.app.label.SignPatientLabelInfoService;
|
|
|
import com.yihu.wlyy.service.app.message.MessageService;
|
|
|
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
|
|
|
import com.yihu.wlyy.service.app.team.AdminTeamService;
|
|
|
import com.yihu.wlyy.service.third.fzzb.HealthEducationArticleService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwArchivesService;
|
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
|
import com.yihu.wlyy.task.SignUploadTask;
|
|
|
import com.yihu.wlyy.util.*;
|
|
|
import com.yihu.wlyy.web.third.gateway.controller.doctor.GcDoctorController;
|
|
|
import com.yihu.wlyy.wechat.util.WeiXinAccessTokenUtils;
|
|
|
import com.yihu.wlyy.wechat.util.WeiXinOpenIdUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@ -139,6 +139,8 @@ public class FamilyContractService extends BaseService {
|
|
|
private JwArchivesService jwArchivesService;
|
|
|
@Autowired
|
|
|
private FamilyContractService familyContractService;
|
|
|
@Autowired
|
|
|
private HealthEducationArticleService healthEducationArticleService;
|
|
|
|
|
|
@Autowired
|
|
|
private ImUtill ImUtill;
|
|
@ -368,6 +370,41 @@ public class FamilyContractService extends BaseService {
|
|
|
return json;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询集美医生主页信息
|
|
|
*
|
|
|
* @param doctor 医生标识
|
|
|
* @param patient 患者标识
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject findJiMeiDoctorMainPage(String patient, String doctor) {
|
|
|
JSONObject json = new JSONObject();
|
|
|
// 查询医生基本信息
|
|
|
Doctor d = doctorDao.findByCode(doctor);
|
|
|
json.put("doctor", d.getCode());
|
|
|
json.put("evaluateScore", d.getEvaluateScore());
|
|
|
json.put("name", d.getName());
|
|
|
json.put("photo", d.getPhoto());
|
|
|
json.put("sex", d.getSex());
|
|
|
json.put("job", d.getJob());
|
|
|
json.put("jobName", d.getJobName());
|
|
|
json.put("hospital", d.getHospitalName());
|
|
|
json.put("dept", d.getDeptName());
|
|
|
json.put("intro", d.getIntroduce());
|
|
|
json.put("expertise", d.getExpertise());
|
|
|
json.put("level", d.getLevel());
|
|
|
|
|
|
//获取健康文章
|
|
|
com.alibaba.fastjson.JSONArray jsonArray = new com.alibaba.fastjson.JSONArray();
|
|
|
try {
|
|
|
jsonArray = healthEducationArticleService.getDoctorArticalByUserId(null,1,null,0,3,doctor);
|
|
|
}catch (Exception e){
|
|
|
logger.error("获取福州健康文章失败,"+e.getMessage());
|
|
|
}
|
|
|
json.put("healthEduArticles",jsonArray);
|
|
|
return json;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询患者与医生的签约信息
|
|
|
*
|