|
@ -8004,10 +8004,10 @@ public class StatisticsEsService {
|
|
|
//指标12,14,16
|
|
|
//接诊量
|
|
|
String indexSql = "SELECT COUNT(ct.id) FROM wlyy_consult_outpatient_info ct " +
|
|
|
"WHERE ct.type IN(1,9,12,15,16,17) and ct.visite_status=1 AND ct.create_time <'"+qvo.getEndDate()+" 23:59:59' AND ct.create_time >='"+qvo.getStartDate()+"' ";
|
|
|
"WHERE ct.type IN(1,9,12,15,16,17) and ct.visite_status=1 AND ct.create_time <'"+qvo.getEndDate()+" 23:59:59' AND ct.create_time >='"+qvo.getStartDate()+" 00:00:00' ";
|
|
|
|
|
|
String index5Sql = "SELECT COUNT(ct.id) FROM wlyy_consult_outpatient_info ct " +
|
|
|
"WHERE ct.type IN(1,9,12,15,16,17) AND ct.create_time <'"+qvo.getEndDate()+" 23:59:59' AND ct.create_time >='"+qvo.getStartDate()+"' ";
|
|
|
"WHERE ct.type IN(1,9,12,15,16,17) AND ct.create_time <'"+qvo.getEndDate()+" 23:59:59' AND ct.create_time >='"+qvo.getStartDate()+" 00:00:00' ";
|
|
|
|
|
|
String score = jdbcTemplate.queryForObject(scoreSql, String.class);
|
|
|
resultMap.put("score", score);//赋值评分
|
|
@ -8404,7 +8404,7 @@ public class StatisticsEsService {
|
|
|
"FROM\n" +
|
|
|
" wlyy_prescription p\n" +
|
|
|
" INNER JOIN wlyy_outpatient o ON p.outpatient_id = o.id \n" +
|
|
|
" INNER JOIN base_doctor_hospital a ON p.doctor=a.doctor_code\n" +
|
|
|
" INNER JOIN base_doctor_hospital a ON p.doctor=a.doctor_code and a.del=1 \n" +
|
|
|
"WHERE\n" +
|
|
|
" 1 = 1 \n" +
|
|
|
" AND p.STATUS >= 30\n";
|
|
@ -8425,7 +8425,7 @@ public class StatisticsEsService {
|
|
|
"FROM\n" +
|
|
|
" wlyy_outpatient o\n" +
|
|
|
" INNER JOIN base_business_order_pay bop ON o.id = bop.relation_code \n" +
|
|
|
" INNER JOIN base_doctor_hospital a ON o.doctor=a.doctor_code\n" +
|
|
|
" INNER JOIN base_doctor_hospital a ON o.doctor=a.doctor_code and a.del=1 \n" +
|
|
|
"WHERE\n" +
|
|
|
" o.pay_status = 1 \n" +
|
|
|
" AND o.`status` IN ( 1, 2, 3 )\n";
|