ERPProdController.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package com.uas.eis.controller;
  2. import com.uas.eis.service.ERPService;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.web.bind.annotation.PostMapping;
  5. import org.springframework.web.bind.annotation.RequestBody;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import java.util.Map;
  9. /**
  10. * @author koul
  11. * @email koul@usoftchina.com
  12. * @date 2021-12-07 9:31
  13. */
  14. @RestController
  15. public class ERPProdController {
  16. @Autowired
  17. private ERPService erpService;
  18. /**
  19. * 小米推送采购单到华信科
  20. * @param data
  21. * @return
  22. */
  23. @PostMapping("/prod/savePurchase")
  24. public Map<String, Object> savePurchase(@RequestBody String data){
  25. return erpService.savePurchase(data);
  26. }
  27. /**
  28. * 华信科采购单确认接口
  29. * @param data
  30. * @return
  31. */
  32. @RequestMapping("/prod/confirmPurchase")
  33. public void confirmPurchase(String id){
  34. erpService.confirmPurchase(id);
  35. }
  36. /**
  37. * 小米推送采购单到华信科
  38. * @param data
  39. * @return
  40. */
  41. @RequestMapping("/prod/closePurchase")
  42. public Map<String, Object> closePurchase(String data){
  43. return erpService.closePurchase(data);
  44. }
  45. /**
  46. * 小米推送送货指令到华信科
  47. * @param data
  48. * @return
  49. */
  50. @PostMapping("/prod/deliInstruction")
  51. public Map<String, Object> deliInstruction(@RequestBody String data){
  52. return erpService.deliInstruction(data);
  53. }
  54. /**
  55. * 6:外部供应商创建小米SRM ASN公用X5同步接口
  56. * @param data
  57. * @return
  58. */
  59. @RequestMapping("/prod/createASN")
  60. public Map<String, Object> createASN(String id){
  61. return erpService.createASN(id);
  62. }
  63. /**
  64. * 7:外部供应商推送ASN箱单信息至小米SRM公用X5同步接口
  65. * @param data
  66. * @return
  67. */
  68. @RequestMapping("/prod/createPackingASN")
  69. public Map<String, Object> createPackingASN(String id){
  70. return erpService.createPackingASN(id);
  71. }
  72. /**
  73. * 10:外部供应商请求小米SRM打印采购订单公用X5同步接口
  74. * @param data
  75. * @return
  76. */
  77. @RequestMapping("/prod/purchasePrint")
  78. public Map<String, Object> purchasePrint(String id){
  79. return erpService.purchasePrint(id);
  80. }
  81. /**
  82. * 12:小米SRM推送ASN入库结果至外部供应商公用X5同步接口
  83. * @param data
  84. * @return
  85. */
  86. @PostMapping("/prod/asnProdIn")
  87. public Map<String, Object> asnProdIn(@RequestBody String data){
  88. return erpService.asnProdIn(data);
  89. }
  90. }