package com.ruoyi.powerdistribution.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.powerdistribution.domain.vo.StopTargetAndRecords;
import com.ruoyi.powerdistribution.service.IPdmStopTargeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 停电完成情况Controller
 *
 * @author ruoyi
 * @date 2024-12-09
 */
@RestController
@Api(value = "StopTargetAndActualController", tags = "停电完成情况")
@RequestMapping("/power/stopActual")
public class StopTargetAndActualController extends BaseController {

    @Autowired
    private IPdmStopTargeService pdmStopTargeService;

    /**
     * 查询停电完成情况
     */
    @ApiOperation(value = "查询停电完成情况")
    @GetMapping("/list")
    public TableDataInfo list(String reportYear)
    {
        List<StopTargetAndRecords> list = pdmStopTargeService.selectTargetAndActual(reportYear);
        return getDataTable(list);
    }


}
