package com.yh.saas.plugin.yiliangyiyun.controller;


import com.yh.saas.plugin.yiliangyiyun.entity.HistoricalInventoryInfo;
import com.yh.saas.plugin.yiliangyiyun.service.IHistoricalInventoryInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 记录历史库存信息 前端控制器
 * </p>
 *
 * @author Gdc
 * @since 2022-09-13
 */
@RestController
@RequestMapping("/historicalInventoryInfo")
public class HistoricalInventoryInfoController {
    @Autowired
    private IHistoricalInventoryInfoService historicalInventoryInfoService;
    /**
     * 导出历史库存记录
     *
     * @return
     * @throws Exception
     */
    @PostMapping("/exportHistoricalInventory")
    public void exportHistoricalInventory(@RequestBody HistoricalInventoryInfo example, HttpServletResponse response) throws Exception {
        historicalInventoryInfoService.exportHistoricalInventory(example,response);
    }
}

