ERPController.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.RequestMapping;
  5. import org.springframework.web.bind.annotation.RequestMethod;
  6. import org.springframework.web.bind.annotation.ResponseBody;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import java.util.Map;
  9. /**
  10. * @author wuyx
  11. * @email wuyx@usoftchina.com
  12. * @date 2025-03-04
  13. */
  14. @RestController
  15. public class ERPController {
  16. @Autowired
  17. private ERPService erpService;
  18. /**
  19. * 发送商品信息
  20. */
  21. @RequestMapping(value="/erp/sendProd",method=RequestMethod.POST)
  22. @ResponseBody
  23. public Map<String, Object> sendProd(String master, String ids,String emCode,String caller){
  24. return erpService.sendProd(master,ids,emCode,caller);
  25. }
  26. /**
  27. * 发送出入库信息
  28. */
  29. @RequestMapping(value="/erp/sendIO",method=RequestMethod.POST)
  30. @ResponseBody
  31. public Map<String, Object> sendIO(String master, String id,String emCode,String caller){
  32. return erpService.sendIO(master,id,emCode,caller);
  33. }
  34. /**
  35. * 取消出入库信息
  36. */
  37. @RequestMapping(value="/erp/cancelIO",method=RequestMethod.POST)
  38. @ResponseBody
  39. public Map<String, Object> cancelIO(String master, String id,String emCode,String caller,String op){
  40. return erpService.cancelIO(master,id,emCode,caller,op);
  41. }
  42. @RequestMapping(value="/erp/sendStockData",method=RequestMethod.POST)
  43. @ResponseBody
  44. public Map<String, Object> sendStockData(String master, String emCode){
  45. return erpService.sendStockData(master,emCode);
  46. }
  47. }