| | |
| | | return R.status(farmService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 查询统计本年农事记录操作总数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getFarmingCount") |
| | | public R getFarmingCount(){ |
| | | return R.data(farmService.getFarmingCount()); |
| | | } |
| | | |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | List<FarmingRecordVO> selectFarmingRecordPage(@Param("page") IPage page,@Param("farmingRecord") FarmingRecordVO farm); |
| | | |
| | | /** |
| | | * 查询统计本年农事记录操作总数 |
| | | * @return |
| | | */ |
| | | Integer getFarmingCount(); |
| | | } |
| | |
| | | and sfr.operator = #{farmingRecord.operator} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询统计本年农事记录操作总数--> |
| | | <select id="getFarmingCount" resultType="java.lang.Integer"> |
| | | select ifnull(count(*),0) count from sys_farming_record |
| | | where 1=1 |
| | | and YEAR(time)=YEAR(NOW()) |
| | | </select> |
| | | </mapper> |
| | |
| | | * @return |
| | | */ |
| | | IPage<FarmingRecordVO> selectFarmingRecordPage(IPage<FarmingRecordVO> page, FarmingRecordVO farm); |
| | | |
| | | /** |
| | | * 查询统计本年农事记录操作总数 |
| | | * @return |
| | | */ |
| | | Object getFarmingCount(); |
| | | } |
| | |
| | | public IPage<FarmingRecordVO> selectFarmingRecordPage(IPage<FarmingRecordVO> page, FarmingRecordVO farm) { |
| | | return page.setRecords(baseMapper.selectFarmingRecordPage(page, farm)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询统计本年农事记录操作总数 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Object getFarmingCount() { |
| | | return baseMapper.getFarmingCount(); |
| | | } |
| | | } |