自动化立体仓库 - WCS系统
zyx
2024-02-06 429bf2ffe5bf78bb35347a051e45f329ab0e79d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.zy.asrs.controller;
 
import com.alibaba.fastjson.JSONObject;
import com.core.common.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * 对接AGV、输送线放货接口
 */
@Slf4j
@RestController
@RequestMapping("/agv")
public class AgvController {
 
    @PostMapping("/container/release")
    public R containerRelease(@RequestBody JSONObject jsonObject){
 
        System.out.println(jsonObject.toString());
        HashMap<String, String> map = new HashMap<>();
        map.put("allow","true");
        R r = new R(0, "");
 
        return r.add(map);
 
    }
 
    @PostMapping("/container/completed")
    public R containerCompleted(@RequestBody JSONObject jsonObject){
 
        return R.ok();
    }
 
}