package com.dy.pipIrrGlobal.daoPr; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dy.pipIrrGlobal.pojoPr.PrController; import com.dy.pipIrrGlobal.voPr.VoController; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * @author ZhuBaoMin * @date 2023-12-29 9:59 * @LastEditTime 2024-01-02 16:22 * @Description */ @Mapper public interface PrControllerMapper extends BaseMapper { int deleteByPrimaryKey(Long id); int insert(PrController record); int insertSelective(PrController record); PrController selectByPrimaryKey(Long id); int updateByPrimaryKeySelective(PrController record); int updateByPrimaryKey(PrController record); /** * 根据指定获取控制器记录数 * @param params * @return */ Long getRecordCount(Map params); /** * 根据指定获取控制器记录 * @param params * @return */ List getControllers(Map params); /** * 根据控制器编号获取控制器列表 * @param controllerCode * @return */ List> getControllersByCode(@Param("controllerCode") String controllerCode); /** * 根据控制器编号逻辑删除控制 * @param controllerId * @return */ Integer deleteControllerById(@Param("controllerId") Long controllerId); /** * 根据控制器编号获取未删除的控制器数量 * @param controllerId * @return */ Integer getRecordCountOfController(@Param("controllerId") Long controllerId); }