package com.zg.project.Inventory.Visualization.controller;

import com.zg.framework.web.controller.BaseController;
import com.zg.framework.web.domain.AjaxResult;
import com.zg.project.Inventory.AutoInventory.service.ISodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/Visual")
public class SodController extends BaseController {

    @Autowired
    private ISodService sodService;

    /**
     * 查询当前库存情况
     * @return
     */
    @GetMapping("/sodQueryAll")
    public AjaxResult queryAll() {

        Map<String, Object> resultMap = sodService.getAll();

        return AjaxResult.success(resultMap);
    }

}
