package com.zd.laboratory.controller;

import com.zd.common.core.web.domain.AjaxResult;
import com.zd.laboratory.domain.LabRiskPlanAbnormalGroup;
import com.zd.laboratory.domain.vo.LabRiskPlanAbnormalGroupVO;
import com.zd.laboratory.service.ILabRiskPlanAbnormalGroupService;
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 cyl
 * @date 2021-10-09
 */
@RestController
@RequestMapping("/plan/group")
@Api(tags = {" 风险异常组"})
public class LabRiskPlanAbnormalGroupController {

    @Autowired
    private ILabRiskPlanAbnormalGroupService labRiskPlanAbnormalGroupService;

    /**
     * 风险异常组列表
     */
    @GetMapping("/getList")
    @ApiOperation(value = "查询风险异常日志列表")
    public AjaxResult getList(LabRiskPlanAbnormalGroup labRiskPlanAbnormalGroup) {
        List <LabRiskPlanAbnormalGroupVO> list = labRiskPlanAbnormalGroupService.selectLabRiskPlanAbnormalGroupList(labRiskPlanAbnormalGroup);
        return AjaxResult.success(list);
    }




}
