package com.sundot.airport.web.controller.blocked;

import com.sundot.airport.blocked.service.IBlockedMissCheckStatisticsScreenService;
import com.sundot.airport.common.core.controller.BaseController;
import com.sundot.airport.common.core.domain.AjaxResult;
import com.sundot.airport.common.core.domain.BlockedMissCheckStatisticsQueryParamDto;
import com.sundot.airport.common.dto.BaseCommonDto;
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 wangxx
 * @date 2026-04-13
 */
@RestController
@RequestMapping("/blocked/missReview/screen")
public class BlockedMissCheckStatisticsScreenController extends BaseController {

    @Autowired
    private IBlockedMissCheckStatisticsScreenService blockedMissCheckStatisticsScreenService;

    /**
     * 月考成绩统计
     */
    @GetMapping("/monthlyAssessment")
    public AjaxResult monthlyAssessment(BlockedMissCheckStatisticsQueryParamDto dto) {
        List<BaseCommonDto> list = blockedMissCheckStatisticsScreenService.monthlyAssessment(dto);
        return success(list);
    }

    /**
     * 本月自测有无漏检统计
     */
    @GetMapping("/selfTestHasMissCheck")
    public AjaxResult selfTestHasMissCheck(BlockedMissCheckStatisticsQueryParamDto dto) {
        List<BaseCommonDto> list = blockedMissCheckStatisticsScreenService.selfTestHasMissCheck(dto);
        return success(list);
    }

}
