智慧农业后台管理
xiebin
2022-08-01 d16174bd73148a2963f495a24ef97a40e62b4169
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 *      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> selectFarmingRecordPageByNz(@Param("page") IPage page,@Param("farmingRecord") FarmingRecordVO farm);
    List<FarmingRecordVO> selectFarmingRecordPages(@Param("farmingRecord") FarmingRecordVO farm);
 
    /**
     * 查询统计本年农事记录操作总数
     * @return
     */
    Integer getFarmingCount(String farmId);
 
    /**
     * 查询统计本年农事记录操作,按分类统计
     * @return
     */
    List<FarmingStatisVO> 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<FarmingRecordVO> getFarmingRecordByFarmPlantId(@Param("recovery") RecoveryVO recoveryVO);
 
    /**
     * 查询农事操作记录(不分页)
     * @param farm
     * @return
     */
    List<FarmingRecordVO> getFarmingRecordListfarm(@Param("farm") FarmingRecordVO farm);
}