package com.sunda.spmsweb.wmscontroller;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmswms.service.IWhsStorageInventoryLastMonthService;

import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 上月底库存结余数量表 前端控制器
 * </p>
 *
 * @author Wayne
 * @since 2023-01-18
 */
@RestController
@RequestMapping("/StorageInventoryLastMonth")
public class WhsStorageInventoryLastMonthController {
	
	@Autowired
	IWhsStorageInventoryLastMonthService iWhsStorageInventoryLastMonthService;
	
	@RequestMapping("/getWhsStorageInventoryLastMonthList")
    @ApiOperation(value = "获取本月底库存数量",notes = "获取本月底库存数量 \n" +
            "{\n" +
            "}", httpMethod = "POST")
    public ResponseResult getWhsStorageInventoryLastMonthList(@RequestBody JSONObject jsonObject){
        try {
            return iWhsStorageInventoryLastMonthService.getWhsInventoryLastMonth();
        }catch (Exception e){
            e.printStackTrace();
            return ResponseResult.error("获取本月底库存数量出错");
        }
    }

}
