/**查询所有网元的所有粒度**/ SELECT EMS_PM_LOG_ID, SUBNET_ID, AMOID, NE_TYPE, PO_ID, PO_TABLE, GP_BEGIN_TIME, LOG_TYPE, MIN(LOG_TIME) MIN_END_TIME, LOG_TIME, MAX(LOG_TIME) MAX_END_TIME, TIMESTAMPDIFF(MINUTE,GP_BEGIN_TIME, DELAY_TIME, COUNT(*) num FROM EMS_PM_LO…