package com.bonus.system.att.controller;

import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.page.TableDataInfo;
import com.bonus.common.log.annotation.Log;
import com.bonus.common.log.enums.BusinessType;
import com.bonus.common.security.annotation.RequiresPermissions;
import com.bonus.system.att.entity.AttExceptionBean;
import com.bonus.system.att.service.AttExceptionHandleService;
import lombok.extern.slf4j.Slf4j;
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;
import java.util.List;

/**
 * 轮休临时外出异常数据
 *
 * @author hongchao
 */
@RestController
@RequestMapping("/attExceptionHandle")
@Slf4j
public class AttExceptionHandleController2 extends BaseController {

    /*@Resource(name = "attExceptionHandle")
    private AttExceptionHandleService attExceptionHandle;

    @RequiresPermissions("att:exception:query")
    @GetMapping("/getAttExceptionList")
    @Log(title = "异常处理->异常数据->列表查询", businessType = BusinessType.QUERY)
    public TableDataInfo getAttExceptionList(AttExceptionBean data) {
        startPage();
        return attExceptionHandle.selectAttExceptionList(data);
    }

    @RequiresPermissions("att:exception:query")
    @GetMapping("/getAttExceptionListByMonth")
    @Log(title = "异常处理->异常报表->列表查询", businessType = BusinessType.QUERY)
    public TableDataInfo getAttExceptionListByMonth(AttExceptionBean data) {
        startPage();
        List<AttExceptionBean> list = attExceptionHandle.getDetailException(data);
        return getDataTable(list);
    }*/

}
