zhubaomin
6 天以前 346b480ab7848c742065e9bf989abaf43b515613
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.dy.pipIrrGlobal.daoIr;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoIr.IrIrrigateGroup;
import com.dy.pipIrrGlobal.voIr.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2025-03-18 11:21
 * @LastEditTime 2025-03-18 11:21
 * @Description
 */
 
@Mapper
public interface IrIrrigateGroupMapper extends BaseMapper<IrIrrigateGroup> {
    int deleteByPrimaryKey(Long id);
 
    int insert(IrIrrigateGroup record);
 
    int insertSelective(IrIrrigateGroup record);
 
    IrIrrigateGroup selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(IrIrrigateGroup record);
 
    int updateByPrimaryKey(IrIrrigateGroup record);
 
    int deleteLogicById(Long id);
 
    //查一个
    VoGroupOne selectById(Long id);
 
    /**
     * 根据指定条件获取取水口记录数
     *
     * @param params
     * @return
     */
    Long getRecordCount(Map<?, ?> params);
 
    /**
     * 根据指定条件获取取水口记录
     *
     * @param params
     * @return
     */
    List<VoGroup> getIrrigateGroups(Map<?, ?> params);
 
    /**
     * 根据指定条件获取轮灌组记录数
     * @param params
     * @return
     */
    Long getSimpleGroupCount(Map<?, ?> params);
 
    /**
     * 根据指定条件获取轮灌组列表
     * @param params
     * @return
     */
    List<VoGroupSimple> getSimpleGroups(Map<?, ?> params);
 
    /**
     * 根据轮灌组ID获取轮灌组详情
     * @param groupId
     * @return
     */
    VoGroupDetail getGroupDetail(Long groupId);
 
    /**
     * 根据灌溉计划ID获取计划发布结果
     * @param planId
     * @return
     */
    List<VoGroupResult> getGroupResult(Long planId);
 
    /**
     * 根据灌溉计划ID获取轮灌组终止结果
     * @param planId
     * @param terminateTime
     * @return
     */
    List<VoGroupResult> getGroupResult_terminate(@Param("planId") Long planId, @Param("terminateTime") Date terminateTime);
 
    /**
     * 根据轮灌组ID获取轮灌组详情
     * @param groupId
     * @return
     */
    List<VoGroupIntakes> getGroupIntakes(Long groupId);
 
    /**
     * 根据轮灌组ID获取轮灌组详情列表
     * @param groupId
     * @return
     */
    List<VoIntake> getGroupIntakesList(Long groupId);
}