Quellcode durchsuchen

【集团EDI-新思&歌尔】【新思-867(POS) 】

DINGYL vor 1 Monat
Ursprung
Commit
a76ed92bdf

+ 16 - 0
src/main/java/com/uas/eis/controller/ERPController.java

@@ -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;
+    }
 }

+ 2 - 2
src/test/java/com/uas/eis/SynaTests.java

@@ -21,7 +21,7 @@ public class SynaTests {
 
 	@Test
 	public void TestPo() throws Exception {
-		synaService.sendPurchaseToSyna("N_HUASL_T",50847950);
+		synaService.sendPurchaseToSyna("N_HUASL_T",50848164);
 	}
 
 	@Test
@@ -31,7 +31,7 @@ public class SynaTests {
 
 	@Test
 	public void TestPos() throws Exception {
-		synaService.sendPosToSyna("N_HUASL_T",3001);
+		synaService.sendPosToSyna("N_HUASL_T",3020);
 	}
 
 	@Test