|  | @@ -17,7 +17,10 @@ import com.xunmei.mediator.api.video.mapper.IotDvrHardDiskDetectionMapper;
 | 
	
		
			
				|  |  |  import com.xunmei.mediator.api.video.service.IotDvrDiskService;
 | 
	
		
			
				|  |  |  import com.xunmei.mediator.api.video.service.IotDvrHardDiskDetectionLogService;
 | 
	
		
			
				|  |  |  import com.xunmei.mediator.api.video.service.IotDvrHardDiskDetectionService;
 | 
	
		
			
				|  |  | +import com.xunmei.mediator.domain.dto.disk.VideoRecorderHardDiskDetectionReq;
 | 
	
		
			
				|  |  |  import com.xunmei.mediator.util.CheckDataUtil;
 | 
	
		
			
				|  |  | +import com.xunmei.mediator.websocket.constant.WebSocketConstants;
 | 
	
		
			
				|  |  | +import com.xunmei.mediator.websocket.service.RouterService;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.RemoteOrgService;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.domain.SysOrg;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.dto.protection.ReceiveErrorDto;
 | 
	
	
		
			
				|  | @@ -42,7 +45,7 @@ import java.util.*;
 | 
	
		
			
				|  |  |   * @since 2024-01-30
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  @Service
 | 
	
		
			
				|  |  | -public class IotDvrHardDiskDetectionServiceImpl extends ServiceImpl<IotDvrHardDiskDetectionMapper, IotDvrHardDiskDetection> implements IotDvrHardDiskDetectionService {
 | 
	
		
			
				|  |  | +public class IotDvrHardDiskDetectionServiceImpl extends ServiceImpl<IotDvrHardDiskDetectionMapper, IotDvrHardDiskDetection> implements IotDvrHardDiskDetectionService, RouterService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Resource
 | 
	
		
			
				|  |  |      RemoteOrgService remoteOrgService;
 | 
	
	
		
			
				|  | @@ -57,6 +60,29 @@ public class IotDvrHardDiskDetectionServiceImpl extends ServiceImpl<IotDvrHardDi
 | 
	
		
			
				|  |  |      private IotAlarmDataService iotAlarmDataService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | +    public String routerKey() {
 | 
	
		
			
				|  |  | +        StringJoiner sj = new StringJoiner(",");
 | 
	
		
			
				|  |  | +        sj.add(WebSocketConstants.DISK_STATUS);
 | 
	
		
			
				|  |  | +        return sj.toString();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  | +    public Object execute(String event, Object obj) {
 | 
	
		
			
				|  |  | +        try {
 | 
	
		
			
				|  |  | +            VideoRecorderHardDiskDetectionReq req = (VideoRecorderHardDiskDetectionReq) obj;
 | 
	
		
			
				|  |  | +            VideoRecorderHardDiskDetectionEditDto dto = new VideoRecorderHardDiskDetectionEditDto();
 | 
	
		
			
				|  |  | +            dto.setEquipmentCode(req.getDvsCode());
 | 
	
		
			
				|  |  | +            dto.setCheckStatus(req.getCheckStatus());
 | 
	
		
			
				|  |  | +            dto.setCheckTime(req.getCheckTime());
 | 
	
		
			
				|  |  | +            dto.setDetailInfo(req.getDetailInfo());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            return saveData(dto, "");
 | 
	
		
			
				|  |  | +        } catch (IllegalAccessException e) {
 | 
	
		
			
				|  |  | +            throw new RuntimeException(e);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  |      public IotDvrHardDiskDetection findTopByEquipmentCodeAndOrgId(String equipmentCode, Long orgId) {
 | 
	
		
			
				|  |  |          return lambdaQuery()
 | 
	
		
			
				|  |  |                  .eq(IotDvrHardDiskDetection::getEquipmentCode, equipmentCode)
 |