|  |  | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoIr.IrIrrigatePlan; | 
 |  |  | import com.dy.pipIrrGlobal.voIr.VoIrrigatePlan; | 
 |  |  | import com.dy.pipIrrGlobal.voIr.VoPlanSimple; | 
 |  |  | import com.dy.pipIrrGlobal.voIr.VoPlans; | 
 |  |  | 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-02-20 15:33 | 
 |  |  |  * @LastEditTime 2025-02-20 15:33 | 
 |  |  |  * @date 2025-03-27 8:54 | 
 |  |  |  * @LastEditTime 2025-03-27 8:54 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  |  | 
 |  |  | 
 |  |  |     int updateByPrimaryKey(IrIrrigatePlan record); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 发布指定的灌溉计划 | 
 |  |  |      * 根据指定的计划ID获取启动模式 | 
 |  |  |      * @param planId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     int publishIrrigatePlan(Long planId); | 
 |  |  |     Byte getStartupMode(Long planId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据指定的条件获取计划数量 | 
 |  |  |      * @param params | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Long getIrrigatePlanCount(Map<?, ?> params); | 
 |  |  |     //Long getIrrigatePlanCount(Map<?, ?> params); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据指定的条件获取计划列表 | 
 |  |  |      * @param params | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoIrrigatePlan> getIrrigatePlans(Map<?, ?> params); | 
 |  |  |     //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); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取未完成的计划列表,小程序计划列表页使用 | 
 |  |  |      * 计划状态:1-草稿,2-未执行,3-执行中,4-已完成 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoPlans> getNotCompletePlans(); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取已完成的计划列表,小程序计划列表页使用 | 
 |  |  |      * 计划状态:1-草稿,2-未执行,3-执行中,4-已完成 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoPlans> getCompletedPlans(); | 
 |  |  | } |