|
@ -1770,6 +1770,7 @@ class EsStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "doctor", value = "医生id") @RequestParam(value = "doctor", required = false) String doctor,
|
|
|
@ApiParam(name = "title", value = "咨询标题关键字") @RequestParam(value = "title", required = false) String title,
|
|
|
@ApiParam(name = "patient", value = "患者id") @RequestParam(value = "patient", required = false) String patient,
|
|
|
@ApiParam(name = "dept", value = "科室编码") @RequestParam(value = "dept", required = false) String dept,
|
|
|
@ApiParam(name = "id", value = "咨询ID") @RequestParam(value = "id", required = false) String id,
|
|
|
@ApiParam(name = "type", value = "咨询类型") @RequestParam(value = "type", required = true) String type,
|
|
|
@ApiParam(name = "status", value = "咨询状态:0全部,1候诊中,2就诊中,3结束") @RequestParam(value = "status", required = true) Integer status,
|
|
@ -1779,7 +1780,8 @@ class EsStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "pagesize", value = "分页大小") @RequestParam(value = "pagesize", required = false) int pagesize
|
|
|
) throws Exception {
|
|
|
try {
|
|
|
List<Map<String, Object>> data = imService.findConsultRecordByDoctorNew(doctor, id, type, status, page, pagesize, title, start_time, end_time, patient);
|
|
|
List<Map<String, Object>> data = imService.findConsultRecordByDoctorNew(doctor, id, type, status, page,
|
|
|
pagesize,dept, title, start_time, end_time, patient);
|
|
|
|
|
|
if (data != null) {
|
|
|
for (Map<String, Object> consult : data) {
|
|
@ -1799,7 +1801,7 @@ class EsStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Long total = imService.countConsultRecordByDoctor2(doctor, id, type, status, title, start_time, end_time);
|
|
|
Long total = imService.countConsultRecordByDoctor2(doctor, id, type, status, title, start_time, end_time,dept);
|
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
result.put("total", total);
|
|
@ -1810,6 +1812,34 @@ class EsStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "orgConsultPatient")
|
|
|
@ApiOperation(value = "全院诊室患者")
|
|
|
public ObjEnvelop orgConsultPatient(@ApiParam(name = "startTime", value = "开始时间 YYYY-MM-DD HH:MM:SS")
|
|
|
@RequestParam(value = "startTime", required = false) String startTime,
|
|
|
@ApiParam(name = "endTime", value = "结束时间 YYYY-MM-DD HH:MM:SS")
|
|
|
@RequestParam(value = "endTime", required = false) String endTime) {
|
|
|
try {
|
|
|
JSONObject result = statisticsEsService.orgConsultPatient(startTime,endTime);
|
|
|
return ObjEnvelop.getSuccess("查询成功",result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return ObjEnvelop.getError("查询失败");
|
|
|
}
|
|
|
}
|
|
|
@GetMapping(value = "deptConsultPatient")
|
|
|
@ApiOperation(value = "科室诊室患者")
|
|
|
public ListEnvelop deptConsultPatient(@ApiParam(name = "startTime", value = "开始时间 YYYY-MM-DD HH:MM:SS")
|
|
|
@RequestParam(value = "startTime", required = false) String startTime,
|
|
|
@ApiParam(name = "endTime", value = "结束时间 YYYY-MM-DD HH:MM:SS")
|
|
|
@RequestParam(value = "endTime", required = false) String endTime) {
|
|
|
try {
|
|
|
List<Map<String,Object>> result = statisticsEsService.deptConsultPatient(startTime,endTime);
|
|
|
return ListEnvelop.getSuccess("查询成功",result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return ListEnvelop.getError("查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取i健康的医生信息登录大屏
|