package cn.com.victorysoft.business.indicator.controller;

import cn.com.victorysoft.business.indicator.entity.UnitApproveThreshold;
import cn.com.victorysoft.business.indicator.service.UnitApproveThresholdService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "层段合格率采油厂审批阈值设置")
@RestController
@RequestMapping("indicator/threshold")
public class UnitApproveThresholdController {
    @Resource
    private UnitApproveThresholdService unitApproveThresholdService;

    @GetMapping("/list")
    @ApiOperation("查询列表")
    public List<UnitApproveThreshold> selectList(){
        return unitApproveThresholdService.selectList();
    }

    @PutMapping("/update")
    @ApiOperation("更新")
    public int unitChildrenExport(@RequestBody UnitApproveThreshold record){
        return unitApproveThresholdService.update(record);
    }

}
