package com.fs.his.controller;

import com.fs.common.core.controller.BaseController;
import com.fs.common.core.page.TableDataInfo;
import com.fs.his.param.FsProjectRedDetailStatisticsParam;
import com.fs.his.service.IFsProjectRedDetailService;
import com.fs.his.vo.FsProjectRedDetailStatisticsVO;
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;

@RestController
@RequestMapping("/his/projectRedDetail")
public class FsProjectRedDetailController extends BaseController {

    @Autowired
    private IFsProjectRedDetailService fsProjectRedDetailService;


    /**
     * 理疗浏览统计
     */
    @GetMapping("/statistics")
    public TableDataInfo statistics(FsProjectRedDetailStatisticsParam param) {
        startPage();
        List<FsProjectRedDetailStatisticsVO> statisticsVOS = fsProjectRedDetailService.selectDetailStatisticsVOList(param);
        return getDataTable(statisticsVOS);
    }
}
