|
@ -3339,7 +3339,7 @@ public class StatisticsService extends BaseService {
|
|
|
" wlyy_patient_reservation w " +
|
|
|
" WHERE " +
|
|
|
" w.admin_team_code = " + teamCode +
|
|
|
" AND w.doctor_code = '" + doctor + "'" +
|
|
|
" AND w.doctor = '" + doctor + "'" +
|
|
|
" AND w.czrq <= '" + endDate + "' " +
|
|
|
" AND w.czrq >= '" + startDate + "' " +
|
|
|
" GROUP BY dateNo";
|
|
@ -3353,7 +3353,7 @@ public class StatisticsService extends BaseService {
|
|
|
" wlyy_patient_reservation w " +
|
|
|
" WHERE " +
|
|
|
" w.admin_team_code = " + teamCode +
|
|
|
" AND w.doctor_code = '" + doctor + "'" +
|
|
|
" AND w.doctor = '" + doctor + "'" +
|
|
|
" AND w.czrq <= '" + endDate + "' " +
|
|
|
" AND w.czrq >= '" + startDate + "' " +
|
|
|
" GROUP BY weekOfMonth";
|
|
@ -3375,8 +3375,8 @@ public class StatisticsService extends BaseService {
|
|
|
" LEFT JOIN ( " +
|
|
|
" SELECT " +
|
|
|
" COUNT(1) AS reservationCount, " +
|
|
|
" w.doctor_code AS doctorCode, " +
|
|
|
" w.doctor AS name " +
|
|
|
" w.doctor AS doctorCode, " +
|
|
|
" w.dname AS name " +
|
|
|
" FROM " +
|
|
|
" wlyy_patient_reservation w " +
|
|
|
" WHERE " +
|
|
@ -3403,8 +3403,8 @@ public class StatisticsService extends BaseService {
|
|
|
" LEFT JOIN ( " +
|
|
|
" SELECT " +
|
|
|
" COUNT(1) AS reservationCount, " +
|
|
|
" w.doctor_code AS doctorCode, " +
|
|
|
" w.doctor AS name " +
|
|
|
" w.doctor AS doctorCode, " +
|
|
|
" w.dname AS name " +
|
|
|
" FROM " +
|
|
|
" wlyy_patient_reservation w " +
|
|
|
" WHERE " +
|
|
@ -3482,7 +3482,7 @@ public class StatisticsService extends BaseService {
|
|
|
" wlyy_patient_reservation w " +
|
|
|
" WHERE " +
|
|
|
" w.admin_team_code = " + teamCode +
|
|
|
" AND w.doctor_code ='" + doctor + "' " +
|
|
|
" AND w.doctor ='" + doctor + "' " +
|
|
|
" AND w.czrq <= '" + endDate + "' ";
|
|
|
|
|
|
String addSQL = "SELECT " +
|
|
@ -3491,7 +3491,7 @@ public class StatisticsService extends BaseService {
|
|
|
" wlyy_patient_reservation w " +
|
|
|
" WHERE " +
|
|
|
" w.admin_team_code = " + teamCode +
|
|
|
" AND w.doctor_code ='" + doctor + "' " +
|
|
|
" AND w.doctor ='" + doctor + "' " +
|
|
|
" AND w.czrq <= '" + endDate + "' " +
|
|
|
" AND w.czrq >= '" + startDate + "'";
|
|
|
JSONObject rs = new JSONObject();
|