|
|
@ -5,13 +5,16 @@ import com.bellmann.model.query.FaultQuery; |
|
|
|
import com.bellmann.model.vo.FaultBasicInfoVO; |
|
|
|
import com.bellmann.model.vo.FaultBasicInfoVO; |
|
|
|
import com.bellmann.model.vo.FaultDiagnosisResult; |
|
|
|
import com.bellmann.model.vo.FaultDiagnosisResult; |
|
|
|
import com.bellmann.model.vo.FaultQueryVO; |
|
|
|
import com.bellmann.model.vo.FaultQueryVO; |
|
|
|
|
|
|
|
import com.bellmann.security.util.SecurityUtils; |
|
|
|
import com.bellmann.service.FaultService; |
|
|
|
import com.bellmann.service.FaultService; |
|
|
|
|
|
|
|
import com.bellmann.service.RemoteOperateTaskService; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
@Tag(name = "33.故障管理") |
|
|
|
@Tag(name = "33.故障管理") |
|
|
|
@RestController |
|
|
|
@RestController |
|
|
@ -21,6 +24,8 @@ public class FaultController { |
|
|
|
|
|
|
|
|
|
|
|
private final FaultService faultService; |
|
|
|
private final FaultService faultService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final RemoteOperateTaskService remoteOperateTaskService; |
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "故障管理查询") |
|
|
|
@Operation(summary = "故障管理查询") |
|
|
|
@PostMapping("/query") |
|
|
|
@PostMapping("/query") |
|
|
|
public Result<List<FaultQueryVO>> queryList(@RequestBody FaultQuery query){ |
|
|
|
public Result<List<FaultQueryVO>> queryList(@RequestBody FaultQuery query){ |
|
|
@ -41,4 +46,12 @@ public class FaultController { |
|
|
|
FaultDiagnosisResult result = faultService.basicInfoDiagnosis(devId,remote); |
|
|
|
FaultDiagnosisResult result = faultService.basicInfoDiagnosis(devId,remote); |
|
|
|
return Result.success(result); |
|
|
|
return Result.success(result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "业务/终端状态") |
|
|
|
|
|
|
|
@GetMapping("/basic_info/service_status") |
|
|
|
|
|
|
|
public Result<Map<String,String>> serviceStatus(@RequestParam Long devId, @RequestParam String remote){ |
|
|
|
|
|
|
|
Long taskId = remoteOperateTaskService.sendTaskByDevId(devId, SecurityUtils.getUsername(),remote); |
|
|
|
|
|
|
|
Map<String,String> map = faultService.getServiceStatusResult(taskId); |
|
|
|
|
|
|
|
return Result.success(map); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|