InventoryApi.java 1.24 KB
package com.huaheng.api.general.Controller;

import com.alibaba.fastjson.JSON;
import com.huaheng.api.general.service.InventoryAPIService;
import com.huaheng.common.utils.http.HttpUtils;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.inventory.inventory.domain.Inventory;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *  库存实时查询接口
 *   @author huaheng
 *   @date 2019-1-4
 */

@RestController
@RequestMapping("/api/inventory")
@Api(tags = {"inventory"}, description = "库存查询接口")
public class InventoryApi extends BaseController {
    @Autowired
    private InventoryAPIService inventoryAPIService;

    @Log(title = "库存查询", action = BusinessType.INSERT)
    @PostMapping("/select")
    @ApiOperation("库存查询公共接口")
    @ResponseBody
    public AjaxResult select(@RequestBody Inventory inventory)
    {
        return inventoryAPIService.select(inventory);
    }
}