package com.uas.eis.controller; import com.uas.eis.service.SynaService; import io.xlate.edi.schema.EDISchemaException; import io.xlate.edi.stream.EDIStreamException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import java.io.IOException; import java.util.Map; @RestController public class ERPController { @Autowired private SynaService synaService; @RequestMapping(value="/erp/sendPurchase") @ResponseBody public Map sendPurchase(String master,Integer id) throws EDISchemaException, EDIStreamException, IOException { return synaService.sendPurchaseToSyna(master,id); } }