ReceiveGoodsController.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package com.tld.controller;
  2. import com.tld.model.ReceiveGoods;
  3. import com.tld.service.ReceiveGoodsSerivce;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import java.util.Map;
  9. /**
  10. * 线上收货
  11. */
  12. @RestController
  13. @RequestMapping("receiveGoods")
  14. public class ReceiveGoodsController {
  15. @Autowired
  16. private ReceiveGoodsSerivce receiveGoodsSerivce;
  17. /**
  18. * 查询采购单
  19. * @param receiveGoods 参数
  20. * @return 返回结果
  21. */
  22. @GetMapping("getReceiveGoods")
  23. public Map<String, Object> getReceiveGoods(ReceiveGoods receiveGoods){
  24. return receiveGoodsSerivce.getReceiveGoods(receiveGoods);
  25. }
  26. /**
  27. * 查询超时采购单
  28. * @param receiveGoods 参数
  29. * @return 返回结果
  30. */
  31. @GetMapping("getPastReceiveGoods")
  32. public Map<String, Object> getPastReceiveGoods(ReceiveGoods receiveGoods){
  33. return receiveGoodsSerivce.getPastReceiveGoods(receiveGoods);
  34. }
  35. /**
  36. * 查询采购单
  37. * @param receiveGoods 参数
  38. * @return 返回结果
  39. */
  40. @GetMapping("getPurchase")
  41. public Map<String, Object> getPurchase(ReceiveGoods receiveGoods){
  42. return receiveGoodsSerivce.getPurchase(receiveGoods);
  43. }
  44. /**
  45. * 查询超时采购单
  46. * @param receiveGoods 参数
  47. * @return 返回结果
  48. */
  49. @GetMapping("timeoutPurchase")
  50. public Map<String, Object> timeoutPurchase(ReceiveGoods receiveGoods){
  51. return receiveGoodsSerivce.timeoutPurchase(receiveGoods);
  52. }
  53. }