package com.docus.server.report.controller;

import com.docus.infrastructure.web.api.CommonResult;
import com.docus.server.report.job.FetchPacsBase64Job;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@Api(tags = "pacs获取base64异常相关接口")
@RestController
@RequestMapping("/api/fetchPacsBase64Except")
public class FetchPacsBase64ExceptController {
    @Resource
    private FetchPacsBase64Job fetchPacsBase64Job;


    @ApiOperation(value = "根据异常数据表的id补偿")
    @GetMapping("/compenstateById")
    public CommonResult<Object> compenstateById(@Param("id") Long exceptId) {
        fetchPacsBase64Job.compensateFetchBase64Report(exceptId);
        return CommonResult.success("完成");
    }





}
