| | |
| | | return page.setRecords(baseMapper.selectFarmProductStockPage(page, farmProductStock)); |
| | | } |
| | | |
| | | @Override |
| | | public List<FarmProductStockVO> selectFarmProductStockPages(FarmProductStockVO farmProductStock) { |
| | | return baseMapper.selectFarmProductStockPages(farmProductStock); |
| | | } |
| | | |
| | | /** |
| | | * 统计产量 |
| | | * @param farmProductStock |
| | |
| | | return baseMapper.statisticsStock(year,deptId); |
| | | } |
| | | @Override |
| | | public Map<String, String> statisticsStockMonth(String year,String deptId) { |
| | | return baseMapper.statisticsStockMonth(year,deptId); |
| | | public List<Map<String, String>> statisticsStockMonth(String year,String deptId) { |
| | | //按年统计 |
| | | if (year.length()==4){ |
| | | return baseMapper.statisticsStockYear(year,deptId); |
| | | } |
| | | //按月统计 |
| | | if (year.length()==7){ |
| | | return baseMapper.statisticsStockMonth(year,deptId); |
| | | } |
| | | //按日统计 |
| | | if (year.length()==10){ |
| | | return baseMapper.statisticsStockDay(year,deptId); |
| | | } |
| | | return null; |
| | | } |
| | | @Override |
| | | public Map<String, String> productsSupervise(String year,String deptId) { |