ERPController.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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){
  24. return erpService.sendProd(master,ids,emCode);
  25. }
  26. /**
  27. * 发送供应商信息
  28. */
  29. @RequestMapping(value="/erp/sendVend",method=RequestMethod.POST)
  30. @ResponseBody
  31. public Map<String, Object> sendVend(String master, String ids,String emCode){
  32. return erpService.sendVend(master,ids,emCode);
  33. }
  34. /**
  35. * 发送客户信息
  36. */
  37. @RequestMapping(value="/erp/sendCust",method=RequestMethod.POST)
  38. @ResponseBody
  39. public Map<String, Object> sendCust(String master, String ids,String emCode){
  40. return erpService.sendCust(master,ids,emCode);
  41. }
  42. }