package com.huaheng.api.U8.controller; import com.huaheng.framework.aspectj.lang.annotation.Log; import com.huaheng.framework.aspectj.lang.constant.BusinessType; import com.huaheng.framework.web.domain.AjaxResult; import com.huaheng.pc.u8.domain.ICSInventory; import com.huaheng.pc.u8.service.ICSInventoryAPIService; 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-5 */ @RestController @RequestMapping("/api/icsInventory") @Api(tags = {"icsInventory"}, description = "库存查询接口") public class ICSInventoryApi { @Autowired private ICSInventoryAPIService icsInventoryAPIService; @Log(title = "库存查询", action = BusinessType.INSERT) @PostMapping("/GetCurrentStock") @ApiOperation("ICS库存查询接口") @ResponseBody public AjaxResult GetCurrentStock(@RequestBody ICSInventory icsInventory) { return icsInventoryAPIService.GetCurrentStock(icsInventory); } }