ERPController.java 829 B

123456789101112131415161718192021222324
  1. package com.uas.eis.controller;
  2. import com.uas.eis.service.SynaService;
  3. import io.xlate.edi.schema.EDISchemaException;
  4. import io.xlate.edi.stream.EDIStreamException;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.ResponseBody;
  8. import org.springframework.web.bind.annotation.RestController;
  9. import java.io.IOException;
  10. import java.util.Map;
  11. @RestController
  12. public class ERPController {
  13. @Autowired
  14. private SynaService synaService;
  15. @RequestMapping(value="/erp/sendPurchase")
  16. @ResponseBody
  17. public Map<String, Object> sendPurchase(String master,Integer id) throws EDISchemaException, EDIStreamException, IOException {
  18. return synaService.sendPurchaseToSyna(master,id);
  19. }
  20. }