/* * 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 { /** * 自定义分页 * * @param page * @param farm * @return */ List selectFarmingRecordPage(@Param("page") IPage page,@Param("farmingRecord") FarmingRecordVO farm); List selectFarmingRecordPageByNz(@Param("page") IPage page,@Param("farmingRecord") FarmingRecordVO farm); List selectFarmingRecordPages(@Param("farmingRecord") FarmingRecordVO farm); /** * 查询统计本年农事记录操作总数 * @return */ Integer getFarmingCount(String farmId); /** * 查询统计本年农事记录操作,按分类统计 * @return */ List getFarmingStatis(String farmId); //今年农资使用量 Double selectJyCount(@Param("farmId") String farmId); //去年农资使用量 Double selectQyCount(@Param("farmId") String deptId); //本月农资使用量 Double selectByCount(@Param("farmId") String deptId); /** * 查询农事记录信息(种植开始起) * @param recoveryVO 采收信息 * @return */ List getFarmingRecordByFarmPlantId(@Param("recovery") RecoveryVO recoveryVO); /** * 查询农事操作记录(不分页) * @param farm * @return */ List getFarmingRecordListfarm(@Param("farm") FarmingRecordVO farm); }