| | |
| | | import com.ycl.platform.mapper.DynamicColumnMapper; |
| | | import com.ycl.platform.mapper.TMonitorMapper; |
| | | import com.ycl.platform.mapper.WorkOrderMapper; |
| | | import com.ycl.platform.mapper.YwPointMapper; |
| | | import com.ycl.platform.service.ITMonitorService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.system.entity.SysDictData; |
| | |
| | | import org.springframework.data.mongodb.core.query.Query; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import pojo.ExcelExp; |
| | | import utils.poi.ExcelUtilManySheet; |
| | |
| | | public class TMonitorServiceImpl extends ServiceImpl<TMonitorMapper, TMonitor> implements ITMonitorService { |
| | | @Autowired |
| | | private TMonitorMapper tMonitorMapper; |
| | | @Autowired |
| | | private YwPointMapper pointMapper; |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | @Autowired |
| | |
| | | util.exportExcel(response, monitors, sheetName); |
| | | } |
| | | |
| | | /** |
| | | * 清理一机一档 |
| | | * @return |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result clearMonitor() { |
| | | tMonitorMapper.clearMonitor(); |
| | | pointMapper.clearMonitor(); |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public Result assetManagementCount(DataCenterQuery query) { |
| | | Map<String, String> map =tMonitorMapper.assetManagementCount(); |
| | | return Result.ok().data(map); |
| | | } |
| | | |
| | | |
| | | //首页车辆报表 |
| | | @Override |