| | |
| | | package com.ycl.service.equipment.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.entity.equipment.Loudspeaker; |
| | | import com.ycl.entity.equipment.OrgGrid; |
| | | import com.ycl.mapper.equipment.OrgGridMapper; |
| | | import com.ycl.service.equipment.IOrgGridService; |
| | | import com.ycl.vo.cockpit.statisticsEvents.GridMapVO; |
| | | import com.ycl.vo.equipment.HandheldTerminalVo; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class OrgGridServiceImpl extends ServiceImpl<OrgGridMapper, OrgGrid> implements IOrgGridService { |
| | | |
| | | @Override |
| | | public IPage<OrgGrid> search(Integer pageSize, Integer currentPage, String name) { |
| | | Page<OrgGrid> page = new Page<>(currentPage, pageSize); |
| | | LambdaQueryWrapper<OrgGrid> queryWrapper = new LambdaQueryWrapper<OrgGrid>() |
| | | .like(StringUtils.isNotBlank(name), OrgGrid::getName, name) |
| | | .orderByDesc(OrgGrid::getId); |
| | | |
| | | return baseMapper.selectPage(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<GridMapVO> statisticsGridMap(String beginTime, String endTime) { |
| | | return baseMapper.statisticsGridMap(beginTime, endTime); |
| | | } |
| | | } |