| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.daoIr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoIr.IrIrrigateUnit; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoUnit; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoUnitOne; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author :WuZeYu | 
|---|
|  |  |  | * @Date :2024/5/16  18:23 | 
|---|
|  |  |  | * @LastEditTime :2024/5/16  18:23 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface IrIrrigateUnitMapper extends BaseMapper<IrIrrigateUnit> { | 
|---|
|  |  |  | //增 | 
|---|
|  |  |  | int insertSelective(IrIrrigateUnit record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //删 | 
|---|
|  |  |  | int deleteLogicById(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //改 | 
|---|
|  |  |  | int updateByPrimaryKeySelective(IrIrrigateUnit record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //查一个 | 
|---|
|  |  |  | VoUnitOne selectById(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件获取取水口记录数 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getRecordCount(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件获取取水口记录 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoUnit> getUnits(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据灌溉单元ID获取取水口ID | 
|---|
|  |  |  | * @param unitId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getIntakeIdByUnitId(Long unitId); | 
|---|
|  |  |  | } | 
|---|