|
@ -2591,8 +2591,8 @@ public class StatisticsService extends BaseService {
|
|
|
String imDataBaseName = im_dataBase_name;
|
|
|
String sql;
|
|
|
String totalSql;
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
if ("0".equals(type)) {
|
|
|
//按周统计
|
|
|
sql = "SELECT " +
|
|
@ -2701,8 +2701,8 @@ public class StatisticsService extends BaseService {
|
|
|
*/
|
|
|
public JSONArray getMemberConsultList(String teamCode, String startDate, String endDate, String sort, String sortType) {
|
|
|
String imDataBaseName = im_dataBase_name;
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
// 未回复咨询总量
|
|
|
String onReySQL = "SELECT " +
|
|
|
" IFNULL(c.total,0) AS noRely, " +
|
|
@ -2915,8 +2915,8 @@ public class StatisticsService extends BaseService {
|
|
|
|
|
|
public JSONObject getDoctorConsultTitle(String doctor, String teamCode, String startDate, String endDate) {
|
|
|
String imDataBaseName = im_dataBase_name;
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
//获取咨询总数
|
|
|
String couTotalSQL = "SELECT " +
|
|
|
" COUNT(1) total " +
|
|
@ -3170,8 +3170,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONArray getDoctorTeamFolList(String startDate, String endDate, String teamCode, String sort, String sortType) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String totalSQL = "SELECT " +
|
|
|
" IFNULL(c.followupCount,0) AS followupCount, " +
|
|
|
" d.`code` AS doctorCode, " +
|
|
@ -3464,8 +3464,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONArray getTeamDoctorResLine(String teamCode, String startDate, String endDate, String type, String doctor) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String totalSql;
|
|
|
if ("0".equals(type)) {
|
|
|
//查周
|
|
@ -3500,8 +3500,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONArray getTeamDoctorResList(String teamCode, String startDate, String endDate, String sort, String sortType) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String totalSql = "SELECT " +
|
|
|
" IFNULL(c.reservationCount,0) AS reservationCount, " +
|
|
|
" d.`code` AS doctorCode, " +
|
|
@ -3610,8 +3610,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONObject getTeamDoctorResTitle(String teamCode, String doctor, String startDate, String endDate) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String totalSQL = "SELECT " +
|
|
|
" COUNT(1) AS reservationCount " +
|
|
|
" FROM " +
|
|
@ -3909,8 +3909,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONArray getTeamDoctorEduLine(String teamCode, String startDate, String endDate, String type, String doctor) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String sql;
|
|
|
|
|
|
if ("0".equals(type)) {
|
|
@ -3944,8 +3944,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONArray getTeamEduList(String teamCode, String startDate, String endDate, String sort, String sortType) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String totalSql = "SELECT " +
|
|
|
" IFNULL(c.articleCount,0) AS articleCount, " +
|
|
|
" IFNULL(c.batchno,0) AS batchno, " +
|
|
@ -4081,8 +4081,8 @@ public class StatisticsService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONObject getTeamDoctorEduTitle(String teamCode, String startDate, String endDate, String doctor) {
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
String totalSql = "SELECT " +
|
|
|
" COUNT(1) AS articleCount, " +
|
|
|
" COUNT(DISTINCT w.batch_no) batchno " +
|
|
@ -6722,8 +6722,8 @@ public class StatisticsService extends BaseService {
|
|
|
public List<Map<String, Object>> getCousultTotalForEsGetTeamConsultCount(String teamCode, String startDate, String endDate, String type) {
|
|
|
String imDataBaseName = im_dataBase_name;
|
|
|
String totalSql;
|
|
|
startDate = startDate + " 00:00:00";
|
|
|
endDate = endDate + " 23:59:59";
|
|
|
startDate = startDate + " 17:00:00";
|
|
|
endDate = endDate + " 17:00:00";
|
|
|
if ("0".equals(type)) {
|
|
|
//按周统计
|
|
|
totalSql = "SELECT " +
|