zhubaomin
2025-03-25 802fc74478ae3f2c4e8ab7cd417f97469c84f157
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
package com.dy.pipIrrGlobal.daoIr;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoIr.IrIrrigatePlan;
import com.dy.pipIrrGlobal.voIr.VoPlanSimple;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
 
/**
 * @author ZhuBaoMin
 * @date 2025-02-25 14:59
 * @LastEditTime 2025-02-25 14:59
 * @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);
 
    /**
     * 根据指定的计划ID获取启动模式
     * @param planId
     * @return
     */
    Byte getStartupMode(Long planId);
 
    /**
     * 根据指定的条件获取计划数量
     * @param params
     * @return
     */
    //Long getIrrigatePlanCount(Map<?, ?> params);
 
    /**
     * 根据指定的条件获取计划列表
     * @param params
     * @return
     */
    //List<VoIrrigatePlan> getIrrigatePlans(Map<?, ?> params);
 
    /**
     * 根据计划ID获取计划简单信息
     * @return
     */
    VoPlanSimple getPlanSimple(Long planId);
 
    /**
     * 根据计划ID更新计划信息(起止时间、计划状态)
     * @param planId
     * @return
     */
    Integer updatePlanTimes(@Param("planStartTime") Date planStartTime, @Param("planStopTime") Date planEndTime, @Param("planId")  Long planId);
}