package com.uas.eis.controller; import com.uas.eis.service.ERPService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import java.util.Map; /** * @author wuyx * @email wuyx@usoftchina.com * @date 2025-03-04 */ @RestController public class ERPController { @Autowired private ERPService erpService; /** * 发送商品信息 */ @RequestMapping(value="/erp/sendProd",method=RequestMethod.POST) @ResponseBody public Map sendProd(String master, String ids,String emCode){ return erpService.sendProd(master,ids,emCode); } /** * 发送供应商信息 */ @RequestMapping(value="/erp/sendVend",method=RequestMethod.POST) @ResponseBody public Map sendVend(String master, String ids,String emCode){ return erpService.sendVend(master,ids,emCode); } /** * 发送客户信息 */ @RequestMapping(value="/erp/sendCust",method=RequestMethod.POST) @ResponseBody public Map sendCust(String master, String ids,String emCode){ return erpService.sendCust(master,ids,emCode); } }