| | |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getAnimalStatis(AnimalHeatVo animalHeatVo) { |
| | | if(null!= animalHeatVo.getStatus()){ |
| | | if(null!= animalHeatVo.getType()){ |
| | | //查询当天的统计数据 |
| | | if (animalHeatVo.getStatus()==0){ |
| | | if (animalHeatVo.getType()==0){ |
| | | return baseMapper.getAnimalStatis(); |
| | | } |
| | | //查询本周的统计数据 |
| | | if (animalHeatVo.getStatus()==1){ |
| | | if (animalHeatVo.getType()==1){ |
| | | return baseMapper.getAnimalStatisWeek(); |
| | | } |
| | | //查询本月的统计数据 |
| | | if (animalHeatVo.getStatus()==2){ |
| | | if (animalHeatVo.getType()==2){ |
| | | return baseMapper.getAnimalStatisMonth(); |
| | | } |
| | | } |