|
|
@@ -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
|
|
|
@@ -21,4 +22,17 @@ public class ERPController {
|
|
|
public Map<String, Object> sendProdIO(String master,Integer id,String action) throws Exception {
|
|
|
return erpService.sendProdIO(master,id, action);
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping(value="/erp/testConnect")
|
|
|
+ public String testConnect() {
|
|
|
+ return "test";
|
|
|
+ }
|
|
|
+ @RequestMapping(value="/erp/testParam")
|
|
|
+ public Map<String, Object> testParam(String master, Integer id, String action){
|
|
|
+ Map<String, Object> modelMap = new HashMap<String, Object>();
|
|
|
+ modelMap.put("master",master);
|
|
|
+ modelMap.put("id",id);
|
|
|
+ modelMap.put("action",action);
|
|
|
+ return modelMap;
|
|
|
+ }
|
|
|
}
|