|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoIr.IrIrrigateGroup; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoGroup; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoGroupDetail; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoGroupOne; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoGroupSimple; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.*; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | VoGroupDetail getGroupDetail(Long groupId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据灌溉计划ID获取计划发布结果 | 
|---|
|  |  |  | * @param planId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoGroupResult> getGroupResult(Long planId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据灌溉计划ID获取轮灌组终止结果 | 
|---|
|  |  |  | * @param planId | 
|---|
|  |  |  | * @param terminateTime | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoGroupResult> getGroupResult_terminate(@Param("planId") Long planId, @Param("terminateTime") Date terminateTime); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据轮灌组ID获取轮灌组详情 | 
|---|
|  |  |  | * @param groupId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoGroupIntakes> getGroupIntakes(Long groupId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据轮灌组ID获取轮灌组详情列表 | 
|---|
|  |  |  | * @param groupId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntake> getGroupIntakesList(Long groupId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据轮灌组名称统计记录数 | 
|---|
|  |  |  | * @param groupCode 轮灌组名称 | 
|---|
|  |  |  | * @return 匹配的记录数 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int countByGroupCode(@Param("groupCode") String groupCode); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据轮灌组名称统计记录数(排除指定ID) | 
|---|
|  |  |  | * @param groupCode 轮灌组名称 | 
|---|
|  |  |  | * @param excludeId 需要排除的轮灌组ID | 
|---|
|  |  |  | * @return 匹配的记录数 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int countByGroupCodeExcludeId(@Param("groupCode") String groupCode, @Param("excludeId") Long excludeId); | 
|---|
|  |  |  | } | 
|---|