package com.nantian.cloud.jljc.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nantian.cloud.jljc.entity.AdvancedMaterial;
import com.nantian.cloud.jljc.entity.DataAudition;
import com.nantian.cloud.jljc.service.AdvancedMaterialService;
import com.nantian.cloud.jljc.service.DataAuditionService;
import com.nantian.sc.cloud.common.core.util.R;
import com.nantian.sc.cloud.common.log.annotation.SysLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;


/**
 * 先进技术资料
 *
 * @author
 * @date 2018-09-27 15:20:44
 */
@CrossOrigin
@RestController
@AllArgsConstructor
@RequestMapping("/DataAudition")
@Api(value = "DataAudition", tags = "资料审核")
public class DataAuditionController {
    private final DataAuditionService dataAuditionService;


    /**
     * 分页查询
     *
     * @param page             分页对象
     * @param dataAudition
     * @return
     */
    @GetMapping("/selectall")
    @SysLog("审核资料查询")
    @ApiOperation(value = "审核资料查询", notes = "审核资料查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page", value = "分页对象", required = false, dataType = "json", paramType = "path"),
            @ApiImplicitParam(name = "dataAudition", value = "资料审查", required = false, dataType = "json", paramType = "path")
    })
    public R selectall(Page page, DataAudition dataAudition) {
        return R.ok(dataAuditionService.selectall(page,dataAudition));
    }



}
