package com.steerinfo.dil.feign; import com.steerinfo.framework.controller.RESTfulResult; import oracle.jdbc.proxy.annotation.Post; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.*; import java.math.BigDecimal; import java.text.ParseException; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author luobang * @create 2021-09-17 14:13 */ @FeignClient(value = "ANTAI-WMS-API",url = "${openfeign.WMSFeign.url}") public interface WMSFeign { @PostMapping("api/v1/wms/wmsslmdlivdirs/selectSaleOrderPage") Map selectSaleOrderPage(@RequestBody(required = false) HashMap parmas, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize); @PostMapping("api/v1/wms/wmsslmdlivdirs/add") RESTfulResult addet(@RequestBody HashMap params); @PostMapping(value = "api/v1/wms/wmsslmdlivdirs/selectDlivDirNo") public Map selectDlivDirNo(@RequestBody(required = false) HashMap params, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize); //==================实时库存 @PostMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsList") Map list(@RequestBody(required = false) Map map, @RequestParam Integer apiId, @RequestParam Integer pageNum, @RequestParam Integer pageSize); @PostMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsinsert") Map insert(@RequestBody(required = false) Map map); @PutMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsDelete") Map delete(@RequestBody(required = false) Map map); @PutMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsUpdate/{id}") Map update(@PathVariable BigDecimal id,@RequestBody(required = false) Map map); }