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); } }