zhubaomin
2025-02-25 356331d8401267aa7aeb409d1314537aa25ac5ad
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
package com.dy.pipIrrGlobal.daoIr;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoIr.IrIrrigatePlan;
import com.dy.pipIrrGlobal.voIr.VoIrrigatePlan;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2025-02-20 15:33
 * @LastEditTime 2025-02-20 15:33
 * @Description
 */
 
@Mapper
public interface IrIrrigatePlanMapper extends BaseMapper<IrIrrigatePlan> {
    int deleteByPrimaryKey(Long id);
 
    int insert(IrIrrigatePlan record);
 
    int insertSelective(IrIrrigatePlan record);
 
    IrIrrigatePlan selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(IrIrrigatePlan record);
 
    int updateByPrimaryKey(IrIrrigatePlan record);
 
    /**
     * 发布指定的灌溉计划
     * @param planId
     * @return
     */
    int publishIrrigatePlan(Long planId);
 
    /**
     * 根据指定的条件获取计划数量
     * @param params
     * @return
     */
    Long getIrrigatePlanCount(Map<?, ?> params);
 
    /**
     * 根据指定的条件获取计划列表
     * @param params
     * @return
     */
    List<VoIrrigatePlan> getIrrigatePlans(Map<?, ?> params);
}