| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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<String, Object> sendProd(String master, String ids,String emCode){
- return erpService.sendProd(master,ids,emCode);
- }
- /**
- * 发送供应商信息
- */
- @RequestMapping(value="/erp/sendVend",method=RequestMethod.POST)
- @ResponseBody
- public Map<String, Object> sendVend(String master, String ids,String emCode){
- return erpService.sendVend(master,ids,emCode);
- }
- /**
- * 发送客户信息
- */
- @RequestMapping(value="/erp/sendCust",method=RequestMethod.POST)
- @ResponseBody
- public Map<String, Object> sendCust(String master, String ids,String emCode){
- return erpService.sendCust(master,ids,emCode);
- }
- }
|