去掉sql语句的函数

master
wujingtao 2 years ago
parent eafd257f05
commit 9f126fabcf

@ -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");
sql.append(" tb.muid != :muid1 ");
sql.append(" and tb.muid != :muid2 ");
sql.append(" and tb.gmt_create >= :startDate ");

Loading…
Cancel
Save