WMSController.java 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.annotaion.LogAround;
  3. import com.steerinfo.dil.feign.WMSFeign;
  4. import com.steerinfo.dil.util.BaseRESTfulController;
  5. import com.steerinfo.framework.controller.RESTfulResult;
  6. import io.swagger.annotations.ApiImplicitParam;
  7. import io.swagger.annotations.ApiImplicitParams;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.transaction.annotation.Transactional;
  11. import org.springframework.web.bind.annotation.*;
  12. import java.math.BigDecimal;
  13. import java.util.HashMap;
  14. import java.util.List;
  15. import java.util.Map;
  16. /**
  17. * @author luobang
  18. * @create 2021-09-17 14:09
  19. */
  20. @RestController
  21. @RequestMapping("${api.version}/wms")
  22. public class WMSController extends BaseRESTfulController {
  23. @Autowired
  24. WMSFeign wmsFeign;
  25. @ApiOperation(value="查询", notes = "分页查询销售订单")
  26. @ApiImplicitParams({
  27. @ApiImplicitParam(name = "params", value = "查询条件", required = false, dataType = "HashMap"),
  28. @ApiImplicitParam(name = "apiId", value = "表单ID", required = false, dataType = "Integer"),
  29. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  30. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
  31. })
  32. @PostMapping(value = "/selectSaleOrderPage")
  33. public Map<String, Object> selectSaleOrderPage(@RequestBody(required = false) HashMap parmas,
  34. Integer apiId,
  35. Integer pageNum,
  36. Integer pageSize) {
  37. return wmsFeign.selectSaleOrderPage(parmas == null ? new HashMap<>() : parmas, apiId, pageNum, pageSize);
  38. }
  39. @ApiOperation(value = "新增销售订单")
  40. @ApiImplicitParam(name = "map", value = "JSON格式数据", required = false, dataType = "Map<String, Object>")
  41. @PostMapping("/add")
  42. public RESTfulResult addet(@RequestBody(required = false) HashMap params) {
  43. return wmsFeign.addet(params);
  44. }
  45. @ApiOperation(value="查询", notes = "分页查询发货单")
  46. @ApiImplicitParams({
  47. @ApiImplicitParam(name = "params", value = "查询条件", required = false, dataType = "HashMap"),
  48. @ApiImplicitParam(name = "apiId", value = "表单ID", required = false, dataType = "Integer"),
  49. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  50. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
  51. })
  52. @PostMapping(value = "/selectDlivDirNo")
  53. public Map<String, Object> selectDlivDirNo(@RequestBody(required = false) HashMap parmas,
  54. Integer apiId,
  55. Integer pageNum,
  56. Integer pageSize) {
  57. return wmsFeign.selectDlivDirNo(parmas == null ? new HashMap<>() : parmas, apiId, pageNum, pageSize);
  58. }
  59. }