WMSFeign.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.steerinfo.dil.feign;
  2. import com.steerinfo.framework.controller.RESTfulResult;
  3. import oracle.jdbc.proxy.annotation.Post;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.web.bind.annotation.*;
  6. import java.math.BigDecimal;
  7. import java.text.ParseException;
  8. import java.util.HashMap;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * @author luobang
  13. * @create 2021-09-17 14:13
  14. */
  15. @FeignClient(value = "ANTAI-WMS-API",url = "${openfeign.WMSFeign.url}")
  16. public interface WMSFeign {
  17. @PostMapping("api/v1/wms/wmsslmdlivdirs/selectSaleOrderPage")
  18. Map<String, Object> selectSaleOrderPage(@RequestBody(required = false) HashMap parmas,
  19. @RequestParam("apiId") Integer apiId,
  20. @RequestParam("pageNum") Integer pageNum,
  21. @RequestParam("pageSize") Integer pageSize);
  22. @PostMapping("api/v1/wms/wmsslmdlivdirs/add")
  23. RESTfulResult addet(@RequestBody HashMap params);
  24. @PostMapping(value = "api/v1/wms/wmsslmdlivdirs/selectDlivDirNo")
  25. public Map<String, Object> selectDlivDirNo(@RequestBody(required = false) HashMap params,
  26. @RequestParam("apiId") Integer apiId,
  27. @RequestParam("pageNum") Integer pageNum,
  28. @RequestParam("pageSize") Integer pageSize);
  29. //==================实时库存
  30. @PostMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsList")
  31. Map<String, Object> list(@RequestBody(required = false) Map<String, Object> map, @RequestParam Integer apiId,
  32. @RequestParam Integer pageNum,
  33. @RequestParam Integer pageSize);
  34. @PostMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsinsert")
  35. Map<String, Object> insert(@RequestBody(required = false) Map<String, Object> map);
  36. @PutMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsDelete")
  37. Map<String, Object> delete(@RequestBody(required = false) Map<String, Object> map);
  38. @PutMapping("api/v1/wms/wmsgridmaterials/wmsgridmaterialsUpdate/{id}")
  39. Map<String, Object> update(@PathVariable BigDecimal id,@RequestBody(required = false) Map<String, Object> map);
  40. }