Commit b1dac781 authored by Quxl's avatar Quxl

x

parent 63106b0f
package com.schneider_distributor;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
@RestController
@RequestMapping
public class TestController {
......@@ -11,9 +17,17 @@ public class TestController {
@Autowired
ZMISD009SOCREATIONTask task;
@RequestMapping("/EX009")
public void executeZMISD009SOCREATIONTask() {
@RequestMapping(method = {RequestMethod.GET, RequestMethod.POST})
public String list() {
Map<String, String> map = new HashMap<String, String>();
map.put("009_SO_CREATION", "分销商采购(特价采购)订单,EDI平台调用SAP接口上传数据");
return JSON.toJSONString(map, true);
}
@RequestMapping(value= {"/009_SO_CREATION"}, method = {RequestMethod.GET, RequestMethod.POST})
public String executeZMISD009SOCREATIONTask() {
task.runTask();
return "OK";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment