自动化立体仓库 - WMS系统
pang.jiabao
16 小时以前 973eed10d720c7dbd0020407c3b89fe1d385944f
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
41
42
43
44
45
46
package com.zy.asrs.controller;
 
import com.alibaba.fastjson.JSONObject;
import com.zy.asrs.entity.mes.TransParent;
import com.zy.asrs.entity.rcs.RcsReporterEqpt;
import com.zy.asrs.entity.rcs.RcsReporterTask;
import com.zy.asrs.entity.rcs.RcsReturn;
import com.zy.asrs.service.RcsService;
import com.zy.common.web.BaseController;
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.RestController;
 
import javax.annotation.Resource;
 
@RestController
@Slf4j
public class RcsController extends BaseController {
 
    @Resource
    private RcsService rcsService;
 
 
    // 反馈任务执行结果
    @PostMapping("/api/robot/reporter/task")
    public RcsReturn reporterTask(@RequestBody RcsReporterTask param){
        log.info("agv任务执行反馈请求:{}",param.toString());
        return rcsService.reporterTask(param);
    }
 
    // 反馈封锁区(自动门)申请
    @PostMapping("/api/robot/reporter/eqpt")
    public RcsReturn reporterEqpt(@RequestBody RcsReporterEqpt param){
 
        return rcsService.reporterEqpt(param);
    }
 
    // 华晓AGV申请进入产线(光幕)
    @PostMapping("/api/robot/apply/inLine")
    public JSONObject hxApplyInLine(@RequestBody TransParent param){
 
        return rcsService.hxApplyInLine(param);
    }
 
}