/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package org.springblade.modules.farm.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import org.apache.ibatis.annotations.Param;
|
import org.springblade.modules.farm.entity.FarmingRecord;
|
import org.springblade.modules.farm.vo.FarmingRecordVO;
|
import org.springblade.modules.farm.vo.FarmingStatisVO;
|
import org.springblade.modules.recovery.vo.RecoveryVO;
|
|
import java.util.List;
|
|
/**
|
* 农事记录Mapper 接口
|
* @since 2022-05-13
|
* @author zhongrj
|
*/
|
public interface FarmingRecordMapper extends BaseMapper<FarmingRecord> {
|
|
/**
|
* 自定义分页
|
*
|
* @param page
|
* @param farm
|
* @return
|
*/
|
List<FarmingRecordVO> selectFarmingRecordPage(@Param("page") IPage page,@Param("farmingRecord") FarmingRecordVO farm);
|
List<FarmingRecordVO> selectFarmingRecordPages(@Param("farmingRecord") FarmingRecordVO farm);
|
|
/**
|
* 查询统计本年农事记录操作总数
|
* @return
|
*/
|
Integer getFarmingCount(String deptId);
|
|
/**
|
* 查询统计本年农事记录操作,按分类统计
|
* @return
|
*/
|
List<FarmingStatisVO> getFarmingStatis(String deptId);
|
//今年农资使用量
|
Double selectJyCount(String deptId);
|
//去年农资使用量
|
Double selectQyCount(String deptId);
|
//本月农资使用量
|
Double selectByCount(String deptId);
|
|
/**
|
* 查询农事记录信息(种植开始起)
|
* @param recoveryVO 采收信息
|
* @return
|
*/
|
List<FarmingRecordVO> getFarmingRecordByFarmPlantId(@Param("recovery") RecoveryVO recoveryVO);
|
}
|