|
@ -3,7 +3,9 @@ package com.yihu.jw.hospital.endpoint.patient;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.yihu.jw.dict.service.BaseDictJobTitleService;
|
|
import com.yihu.jw.dict.service.BaseDictJobTitleService;
|
|
|
|
import com.yihu.jw.dict.service.HospitalDeptService;
|
|
import com.yihu.jw.doctor.service.BaseDoctorInfoService;
|
|
import com.yihu.jw.doctor.service.BaseDoctorInfoService;
|
|
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
import com.yihu.jw.entity.base.dict.DictJobTitleDO;
|
|
import com.yihu.jw.entity.base.dict.DictJobTitleDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
import com.yihu.jw.entity.ylzinfo.OauthYlzConfigDO;
|
|
import com.yihu.jw.entity.ylzinfo.OauthYlzConfigDO;
|
|
@ -80,6 +82,8 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
private StringRedisTemplate redisTemplate;
|
|
private StringRedisTemplate redisTemplate;
|
|
@Autowired
|
|
@Autowired
|
|
private OauthYlzConfigDao oauthYlzConfigDao;
|
|
private OauthYlzConfigDao oauthYlzConfigDao;
|
|
|
|
@Autowired
|
|
|
|
private HospitalDeptService hospitalDeptService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -137,7 +141,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
@ApiOperation(value = "居民获取当日就诊列表", notes = "居民获取当日就诊列表")
|
|
@ApiOperation(value = "居民获取当日就诊列表", notes = "居民获取当日就诊列表")
|
|
public ListEnvelop getTodayOutpatinetList(@ApiParam(name = "patient", value = "居民ID")
|
|
public ListEnvelop getTodayOutpatinetList(@ApiParam(name = "patient", value = "居民ID")
|
|
@RequestParam(value = "patient", required = true) String patient){
|
|
@RequestParam(value = "patient", required = true) String patient){
|
|
return success(prescriptionService.getTodayOutpatinetList(patient));
|
|
|
|
|
|
return success(prescriptionService.getTodayOutpatinetList(patient,wxId));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -189,6 +193,25 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
return success("请求成功",consultCode);
|
|
return success("请求成功",consultCode);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据机构编码获取部门列表信息
|
|
|
|
* @param orgCode
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@GetMapping(value = "/getDeptByOrgCode")
|
|
|
|
@ApiOperation(value = "根据机构编码获取部门列表信息", notes = "基础数据获取")
|
|
|
|
public Envelop getDeptByOrgCode(
|
|
|
|
@ApiParam(name = "orgCode", value = "机构编码")
|
|
|
|
@RequestParam(value = "orgCode", required = false) String orgCode,
|
|
|
|
@ApiParam(name = "consultDeptFlag", value = "是否是就诊科室,1为查询门诊,不传为全部")
|
|
|
|
@RequestParam(value = "consultDeptFlag", required = false) String consultDeptFlag) {
|
|
|
|
List<DictHospitalDeptDO> res = hospitalDeptService.getHosDeptByCode(orgCode,consultDeptFlag);
|
|
|
|
if(res != null && res.size() > 0 ){
|
|
|
|
return success(res);
|
|
|
|
}else{
|
|
|
|
return success("无法获取该机构的部门列表信息!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取机构职称信息
|
|
* 获取机构职称信息
|