package com.ruoyi.web.modules.screen.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.modules.screen.service.ITradeSalesScreenService;

/**
 * 大屏 — 交易销售统计（只读）
 */
@RestController
@RequestMapping("/bigScreen/tradeSales")
public class TradeSalesScreenController extends BaseController
{
    @Autowired
    private ITradeSalesScreenService tradeSalesScreenService;

    @GetMapping("/dashboard")
    public AjaxResult dashboard(@RequestParam("statYear") String statYear)
    {
        return success(tradeSalesScreenService.loadDashboard(statYear));
    }
}
