package com.ym.mec.web.controller;

import com.ym.mec.biz.dal.entity.GoodsProcurement;
import com.ym.mec.biz.dal.page.GoodsProcurementQueryInfo;
import com.ym.mec.biz.service.GoodsProcurementService;
import com.ym.mec.common.controller.BaseController;
import com.ym.mec.common.entity.HttpResponseResult;
import com.ym.mec.common.page.PageInfo;
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;

/**
 * @Author Joburgess
 * @Date 2020.10.09
 */
@Api(tags = "进货清单")
@RestController
@RequestMapping("goodsProcurement")
public class GoodsProcurementContrller extends BaseController {

    @Autowired
    private GoodsProcurementService goodsProcurementService;

    @ApiOperation(value = "分页查询进货清单")
    @GetMapping("queryGoodsProcurements")
    public HttpResponseResult<PageInfo<GoodsProcurement>> queryGoodsProcurements(GoodsProcurementQueryInfo queryInfo){
        return succeed(goodsProcurementService.queryGoodsProcurements(queryInfo));
    }

}
