| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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,String caller){
- return erpService.sendProd(master,ids,emCode,caller);
- }
- /**
- * 发送出入库信息
- */
- @RequestMapping(value="/erp/sendIO",method=RequestMethod.POST)
- @ResponseBody
- public Map<String, Object> sendIO(String master, String id,String emCode,String caller){
- return erpService.sendIO(master,id,emCode,caller);
- }
- /**
- * 取消出入库信息
- */
- @RequestMapping(value="/erp/cancelIO",method=RequestMethod.POST)
- @ResponseBody
- public Map<String, Object> cancelIO(String master, String id,String emCode,String caller,String op){
- return erpService.cancelIO(master,id,emCode,caller,op);
- }
- @RequestMapping(value="/erp/sendStockData",method=RequestMethod.POST)
- @ResponseBody
- public Map<String, Object> sendStockData(String master, String emCode){
- return erpService.sendStockData(master,emCode);
- }
- }
|