|
@ -3990,6 +3990,7 @@ public class StatisticsService extends BaseService {
|
|
" FROM " + esType+
|
|
" FROM " + esType+
|
|
" WHERE " +
|
|
" WHERE " +
|
|
" adminTeamCode =" + teamCode +
|
|
" adminTeamCode =" + teamCode +
|
|
|
|
" AND userType = 1"+
|
|
" AND doctorCode ='" + doctor + "'" +
|
|
" AND doctorCode ='" + doctor + "'" +
|
|
" AND createTime >= '?1' " +
|
|
" AND createTime >= '?1' " +
|
|
" AND createTime <= '?2' ";
|
|
" AND createTime <= '?2' ";
|
|
@ -4000,6 +4001,7 @@ public class StatisticsService extends BaseService {
|
|
" FROM " +esType+
|
|
" FROM " +esType+
|
|
" WHERE " +
|
|
" WHERE " +
|
|
" adminTeamCode =" + teamCode +
|
|
" adminTeamCode =" + teamCode +
|
|
|
|
" AND userType = 1"+
|
|
" AND doctorCode ='" + doctor + "'" +
|
|
" AND doctorCode ='" + doctor + "'" +
|
|
" AND createTime >= '?1' " +
|
|
" AND createTime >= '?1' " +
|
|
" AND createTime <= '?2' ";
|
|
" AND createTime <= '?2' ";
|
|
@ -4288,13 +4290,14 @@ public class StatisticsService extends BaseService {
|
|
|
|
|
|
String totalSql = "select count(*) as articleCount,count(DISTINCT batchNo) as batchCount " +
|
|
String totalSql = "select count(*) as articleCount,count(DISTINCT batchNo) as batchCount " +
|
|
" from " +esType+
|
|
" from " +esType+
|
|
" where adminTeamCode="+teamCode+" and doctorCode='"+doctor+"' and createTime <='"+endDate+"'";
|
|
|
|
|
|
" where userType =1 and adminTeamCode="+teamCode+" and doctorCode='"+doctor+"' and createTime <='"+endDate+"'";
|
|
String addSql = "SELECT " +
|
|
String addSql = "SELECT " +
|
|
" count(*) as addCount, " +
|
|
" count(*) as addCount, " +
|
|
" count(DISTINCT batchNo) as addBatchno " +
|
|
" count(DISTINCT batchNo) as addBatchno " +
|
|
" from " + esType +
|
|
" from " + esType +
|
|
" where " +
|
|
" where " +
|
|
" adminTeamCode =" + teamCode +
|
|
|
|
|
|
" userType=1" +
|
|
|
|
" and adminTeamCode =" + teamCode +
|
|
" and doctorCode ='" + doctor + "'" +
|
|
" and doctorCode ='" + doctor + "'" +
|
|
" and createTime <= '" + endDate + "' " +
|
|
" and createTime <= '" + endDate + "' " +
|
|
" and createTime >= '" + startDate + "'";
|
|
" and createTime >= '" + startDate + "'";
|