|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.dict.service.BaseDictJobTitleService;
|
|
|
import com.yihu.jw.dict.service.HospitalDeptService;
|
|
|
import com.yihu.jw.doctor.dao.BaseDoctorDao;
|
|
|
import com.yihu.jw.doctor.dao.BaseDoctorHospitalDao;
|
|
|
import com.yihu.jw.doctor.service.BaseDoctorInfoService;
|
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
@ -21,6 +22,7 @@ import com.yihu.jw.entity.hospital.httplog.WlyyHttpLogDO;
|
|
|
import com.yihu.jw.entity.hospital.message.SystemMessageDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.*;
|
|
|
import com.yihu.jw.entity.order.BusinessOrderDO;
|
|
|
import com.yihu.jw.entity.util.AesEncryptUtils;
|
|
|
import com.yihu.jw.entity.ylzinfo.OauthYlzConfigDO;
|
|
|
import com.yihu.jw.es.service.StatisticsEsService;
|
|
|
import com.yihu.jw.file_upload.FileUploadService;
|
|
@ -59,6 +61,7 @@ import com.yihu.jw.sms.service.YkyyINSMSService;
|
|
|
import com.yihu.jw.util.common.FileUtil;
|
|
|
import com.yihu.jw.util.common.XMLUtil;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
|
import com.yihu.jw.util.http.HttpClientUtil;
|
|
|
import com.yihu.jw.wechat.dao.BasePatientWechatDao;
|
|
|
import com.yihu.jw.wechat.dao.WechatDao;
|
|
|
import com.yihu.jw.wechat.service.WechatInfoService;
|
|
@ -76,6 +79,9 @@ import io.swagger.annotations.ApiParam;
|
|
|
import net.sf.json.JSONArray;
|
|
|
import org.apache.axis.utils.StringUtils;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.http.NameValuePair;
|
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
|
import org.apache.jasper.tagplugins.jstl.core.Url;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -86,8 +92,8 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
import java.io.*;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.nio.charset.Charset;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
@ -108,8 +114,6 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@Autowired
|
|
|
private BusinessOrderService businessOrderService;
|
|
|
@Autowired
|
|
|
private BaseDoctorInfoService baseDoctorInfoService;
|
|
|
@Autowired
|
|
|
private PrescriptionExpressageService sfexpressService;
|
|
|
@Autowired
|
|
|
private QrcodeService qrcodeService;
|
|
@ -209,6 +213,8 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
private String upload_temp_path;
|
|
|
@Autowired
|
|
|
private ConsultTeamDao consultTeamDao;
|
|
|
@Autowired
|
|
|
private BaseDoctorDao baseDoctorDao;
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.findDoctorByHospitalAndDiseaseAndDept)
|
|
|
@ApiOperation(value = "根据疾病名称,热门部门查询医生", notes = "根据疾病名称,热门部门查询医生")
|
|
@ -247,7 +253,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
) throws Exception{
|
|
|
|
|
|
logger.info("findDoctorByHospitalAndDiseaseAndDept start:"+ DateUtil.dateToStr(new Date(),"yyyy-MM-dd HH:mm:ss:SSS"));
|
|
|
return prescriptionService.findDoctorByHospitalAndDiseaseAndDept(iswork,patientid,
|
|
|
return prescriptionService.findDoctorByHospitalAndDiseaseAndDept2(iswork,patientid,
|
|
|
orgCode,dept,
|
|
|
diseaseKey,doctorNameKey,
|
|
|
jobTitleNameKey,outpatientType,
|
|
@ -436,7 +442,6 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
return success("请求成功",result);
|
|
|
}
|
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.getUpcomingByDoctor)
|
|
|
@ApiOperation(value = "获取医生待办详情", notes = "获取医生待办详情")
|
|
|
public Envelop getUpcomingByDoctor(@ApiParam(name = "doctorIdcard", value = "doctorIdcard", required = true)
|
|
@ -1502,7 +1507,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
public Envelop popularityIncrease (
|
|
|
@ApiParam(name = "doctor", value = "医生id")
|
|
|
@RequestParam(value = "doctor", required = false) String doctor) throws Exception {
|
|
|
BaseDoctorDO baseDoctorDO=baseDoctorInfoService.popularityIncrease(doctor);
|
|
|
BaseDoctorDO baseDoctorDO=baseDoctorService.popularityIncrease(doctor);
|
|
|
return success("操作成功",baseDoctorDO);
|
|
|
}
|
|
|
@ApiOperation("查询赠送锦旗")
|
|
@ -1854,4 +1859,29 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
|
|
|
}
|
|
|
@GetMapping("/doctorReviewConsultCount")
|
|
|
@ApiOperation(value = "提供给i健康:图文复诊、视频复诊咨询数量、协同门诊候诊数量", notes = "提供给i健康:图文复诊、视频复诊咨询数量、协同门诊候诊数量")
|
|
|
public Envelop doctorReviewConsultCount(@ApiParam(name = "doctorIdcard", value = "医生CODE")
|
|
|
@RequestParam(value = "doctorIdcard",required = true) String doctorIdcard){
|
|
|
JSONObject result = new JSONObject();
|
|
|
String doctor ="";
|
|
|
BaseDoctorDO baseDoctorDO = baseDoctorDao.findByIdcardAndDel(doctorIdcard);
|
|
|
if (baseDoctorDO!=null){
|
|
|
doctor = baseDoctorDO.getId();
|
|
|
}
|
|
|
logger.info("action:doctorReviewConsultCount--start:doctor"+doctor);
|
|
|
result.put("imgCount",prescriptionService.getWaitVideoCount(doctor,"1","1",wxId));//图文复诊数量
|
|
|
result.put("videoCount",prescriptionService.getWaitVideoCount(doctor,"2","1",wxId));//视频复诊数量
|
|
|
result.put("xtCount",prescriptionService.getWaitVideoCount(doctor,"","2",wxId));//协同门诊候诊数量
|
|
|
result.put("imgConsultCount",prescriptionService.getWaitVideoCount(doctor,"1","3",wxId));//图文咨询数量
|
|
|
result.put("videoConsultCount",prescriptionService.getWaitVideoCount(doctor,"2","3",wxId));//视频咨询数量
|
|
|
result.put("homeConsultCount",prescriptionService.getWaitVideoCount(doctor,"3","3",wxId));//家医咨询数量
|
|
|
Integer unreadMessageCount = imService.SessionsUnreadMessageCount(doctor,"1");
|
|
|
result.put("zjUnreadMessageCount",unreadMessageCount);//专家咨询未读数
|
|
|
if ("sd_tnzyy_wx".equalsIgnoreCase(wxId)){
|
|
|
result.put("doorServiceCount",prescriptionService.waitUpdoorCount(doctor));//上门服务数量
|
|
|
}
|
|
|
logger.info("action:doctorReviewConsultCount--end:"+DateUtil.dateToStrLong(new Date()));
|
|
|
return success("请求成功",result);
|
|
|
}
|
|
|
}
|