|  |  | 
 |  |  | package com.dy.pipIrrGlobal.daoRm; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoRm.RmWorkReportHistory; | 
 |  |  | import com.dy.pipIrrGlobal.pojoRm.UgRtuController; | 
 |  |  | import com.dy.pipIrrGlobal.pojoUg.UgRtuController; | 
 |  |  | import com.dy.pipIrrGlobal.voPr.VoController; | 
 |  |  | import com.dy.pipIrrGlobal.voUg.VoUgResult; | 
 |  |  | import org.apache.ibatis.annotations.Mapper; | 
 |  |  | import org.apache.ibatis.annotations.Param; | 
 |  |  |  | 
 |  |  | 
 |  |  |      * @return deleteCount | 
 |  |  |      */ | 
 |  |  |     int deleteByPrimaryKey(Long id); | 
 |  |  |     /** | 
 |  |  |      * delete by task key | 
 |  |  |      * | 
 |  |  |      * @param taskId task id | 
 |  |  |      * @return deleteCount | 
 |  |  |      */ | 
 |  |  |     int deleteByTaskId(@Param("taskId")Long taskId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * insert record to table | 
 |  |  | 
 |  |  |     List<UgRtuController> selectAllConByTask(Long taskId) ; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 得到升级任务的所有对象控制器 | 
 |  |  |      * | 
 |  |  |      * @param taskId 升级任务id | 
 |  |  |      * @return object by primary key | 
 |  |  |      */ | 
 |  |  |     List<String> selectAllRtuAddrByTask(Long taskId) ; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据任务id和控制器id查询数量 | 
 |  |  |      * | 
 |  |  |      * @param taskId 升级任务id | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     Long selectCountByTaskAndCon(@Param("taskId") Long taskId, @Param("conId") Long conId) ; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 分页查询一个升级任务中所有控制器升级结查 数量 | 
 |  |  |      * | 
 |  |  |      * @param params | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Long selectControllerUpgradeResultsCount(Map<?, ?> params) ; | 
 |  |  |     /** | 
 |  |  |      * 分页查询一个升级任务中所有控制器升级结查 | 
 |  |  |      * @param params | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoUgResult> selectControllerUpgradeResults(Map<?, ?> params); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * update record selective | 
 |  |  | 
 |  |  |      * @return update count | 
 |  |  |      */ | 
 |  |  |     int updateByPrimaryKey(UgRtuController record); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 更新升级RTU的升级完成状态 | 
 |  |  |      * @param params | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     int updateRtuUpgradeState(Map<?, ?> params) ; | 
 |  |  | } |