|
|
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@@ -27,4 +28,19 @@ public class ERPController {
|
|
|
public Map<String, Object> sendPurchaseChange(String master,Integer id) throws EDISchemaException, EDIStreamException, IOException {
|
|
|
return synaService.sendPurchaseChangeToSyna(master,id);
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping(value="/erp/sendPOS")
|
|
|
+ @ResponseBody
|
|
|
+ public Map<String, Object> sendPOS(String master,Integer id) throws EDISchemaException, EDIStreamException, IOException {
|
|
|
+ return synaService.sendPosToSyna(master,id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping(value="/erp/testEIS")
|
|
|
+ @ResponseBody
|
|
|
+ public Map<String, Object> testEIS(String master,Integer id) throws EDISchemaException, EDIStreamException, IOException {
|
|
|
+ Map<String, Object> modelMap = new HashMap<String, Object>();
|
|
|
+ modelMap.put("master", master);
|
|
|
+ modelMap.put("success", true);
|
|
|
+ return modelMap;
|
|
|
+ }
|
|
|
}
|