| New file | 
 |  |  | 
 |  |  | package com.dy.pipIrrGlobal.daoIr; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoIr.IrGroupUnit; | 
 |  |  | import org.apache.ibatis.annotations.Mapper; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author :WuZeYu | 
 |  |  |  * @Date :2024/5/22  13:41 | 
 |  |  |  * @LastEditTime :2024/5/22  13:41 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  | @Mapper | 
 |  |  | public interface IrGroupUnitMapper extends BaseMapper<IrGroupUnit> { | 
 |  |  |     //增 | 
 |  |  |     int insertSelective(IrGroupUnit record); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     //删by unitId groupId | 
 |  |  |     int deleteByUnitIdGroupId(IrGroupUnit record); | 
 |  |  |     //删by unitId | 
 |  |  |     int deleteByUnitId(Long unitId); | 
 |  |  |     //删by  groupId | 
 |  |  |     int deleteByGroupId(Long groupId); | 
 |  |  |  | 
 |  |  |     //查一个轮灌组绑定的灌溉单元id | 
 |  |  |     List<Long> getGroupBindUnits(Long groupId); | 
 |  |  |     //查未绑定轮灌组的灌溉单元id | 
 |  |  |     List<Long> getNotBindUnits(); | 
 |  |  | } |