@ -207,7 +207,7 @@ public class DmpMonitorNumServiceImpl implements DmpMonitorNumService {
sql.append(" group by imei,tag");
sql.append(" ) a group by a.tag,a.date");
}else{
sql.append("select substring_index(group_concat( DATE_FORMAT( tb.gmt_create, '%Y-%m-%d' )),',',-1) as date ,tb.imei as imei ,tb.tag as tag from ").append(tableName).append(" as tb where");
sql.append("select DATE_FORMAT( tb.gmt_create, '%Y-%m-%d' ) as date ,tb.imei as imei ,tb.tag as tag from ").append(tableName).append(" as tb where");
sql.append(" tb.imei != :imei1 ");
sql.append(" and tb.imei != :imei2 ");
sql.append(" and tb.gmt_create >= :startDate ");
@ -263,7 +263,7 @@ public class DmpMonitorNumServiceImpl implements DmpMonitorNumService {
sql.append(" group by muid,tag");
sql.append(" ) a group by a.tag,a.date");
}else{
sql.append("select substring_index(group_concat( DATE_FORMAT( tb.gmt_create, '%Y-%m-%d')),',',-1) as date ,tb.muid as imei ,tb.tag as tag from ").append(tableName).append(" as tb where");
sql.append("select DATE_FORMAT( tb.gmt_create, '%Y-%m-%d') as date ,tb.muid as imei ,tb.tag as tag from ").append(tableName).append(" as tb where");