pang.jiabao
1 天以前 be322af3013501b822e4dab60ca348cc3db8bcbc
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
package com.zy.controller;
 
import com.alibaba.fastjson.JSONObject;
import com.zy.common.web.BaseController;
import com.zy.entity.RcsReporterTask;
import com.zy.entity.RcsReturn;
import com.zy.service.RcsService;
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任务执行反馈请求:{}",JSONObject.toJSONString(param));
        return rcsService.reporterTask(param);
    }
 
}