| | |
| | | import cn.gistack.sm.damSecurity.mapper.DamSecurityMapper; |
| | | import cn.gistack.sm.damSecurity.service.IDamSecurityService; |
| | | import cn.gistack.sm.damSecurity.vo.*; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.mysql.cj.protocol.x.ReusableInputStream; |
| | | import org.springblade.core.tool.utils.ObjectUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | return damSecurityMapper.getRegionList(damMonitor); |
| | | } |
| | | |
| | | @Override |
| | | public List<DamStatisticsRegion> getDamInfoCountByRegion(DamStatisticsRegion damStatisticsRegion) { |
| | | List<DamStatisticsRegion> list = new ArrayList<>(); |
| | | |
| | | if (damStatisticsRegion.getStatus().equals("total")){ |
| | | //点击总数 |
| | | if (damStatisticsRegion.getType().equals("sy")){ |
| | | list = damSecurityMapper.getDamSyRegion(damStatisticsRegion); |
| | | }else if (damStatisticsRegion.getType().equals("sl")){ |
| | | list = damSecurityMapper.getDamSlRegion(damStatisticsRegion); |
| | | }else if (damStatisticsRegion.getType().equals("wy")){ |
| | | list = damSecurityMapper.getDamWyRegion(damStatisticsRegion); |
| | | } |
| | | }else if (damStatisticsRegion.getStatus().equals("error")){ |
| | | //点异常 |
| | | list = damSecurityMapper.getErrorDamRegion(damStatisticsRegion); |
| | | }else if (damStatisticsRegion.getStatus().equals("normal")){ |
| | | //点正常 |
| | | if (damStatisticsRegion.getType().equals("sy")){ |
| | | list = damSecurityMapper.getDamSyRegionNormal(damStatisticsRegion); |
| | | }else if (damStatisticsRegion.getType().equals("sl")){ |
| | | list = damSecurityMapper.getDamSlRegionNormal(damStatisticsRegion); |
| | | }else if (damStatisticsRegion.getType().equals("wy")){ |
| | | list = damSecurityMapper.getDamWyRegionNormal(damStatisticsRegion); |
| | | } |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | } |