|
@ -4200,7 +4200,7 @@ public class StatisticsService extends BaseService {
|
|
|
String totalSql =
|
|
|
"SELECT count(DISTINCT batchNo) AS batchCount, count(*) AS articleCount,doctorCode" +
|
|
|
" FROM " +esType+
|
|
|
" where adminTeamCode = "+teamCode+" and " +
|
|
|
" where userType =1 and adminTeamCode = "+teamCode+" and " +
|
|
|
" createTime <= '"+endDate+"' group by doctorCode";
|
|
|
if ("0".equals(sort)) {
|
|
|
//降序
|
|
@ -4222,7 +4222,7 @@ public class StatisticsService extends BaseService {
|
|
|
String addSql=
|
|
|
"SELECT count(DISTINCT batchNo) AS addBatchno, count(*) AS addCount,doctorCode" +
|
|
|
" FROM " +esType+
|
|
|
" where adminTeamCode = "+teamCode+" and " +
|
|
|
" where userType =1 and adminTeamCode = "+teamCode+" and " +
|
|
|
"createTime >= '"+startDate+"' and createTime <= '"+endDate+"' group by doctorCode";
|
|
|
if ("0".equals(sort)) {
|
|
|
if ("1".equals(sortType)) {
|