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
package com.dy.pipIrrGlobal.daoIr;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoIr.IrUnitClient;
import com.dy.pipIrrGlobal.voIr.VoUnitSimple;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2024-07-10 14:47
 * @LastEditTime 2024-07-10 14:47
 * @Description
 */
 
@Mapper
public interface IrUnitClientMapper extends BaseMapper<IrUnitClient> {
    int deleteByPrimaryKey(Long id);
 
    int insert(IrUnitClient record);
 
    int insertSelective(IrUnitClient record);
 
    IrUnitClient selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(IrUnitClient record);
 
    int updateByPrimaryKey(IrUnitClient record);
 
    /**
     * 根据农户编号获取灌溉单元数量
     * @param params
     * @return
     */
    Long getUnitCountByClientId(Map<?, ?> params);
 
    /**
     * 根据农户编号获取灌溉单元列表
     * @param params
     * @return
     */
    List<VoUnitSimple> getUnitsByClientId(Map<?, ?> params);
}