skyouc
2024-12-23 2cf6f25ee51dea59dbd1e2183a06796961bb8644
zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/InStockController.java
File was renamed from zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WcsApiController.java
@@ -2,7 +2,6 @@
import com.zy.asrs.framework.common.R;
import com.zy.asrs.wms.apis.wcs.entity.request.ContainerArrivedParam;
import com.zy.asrs.wms.apis.wcs.entity.request.ConveyorStarParam;
import com.zy.asrs.wms.apis.wcs.entity.request.TasksStatusCallbackParam;
import com.zy.asrs.wms.apis.wcs.services.WcsApiService;
import io.netty.util.internal.StringUtil;
@@ -12,9 +11,9 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/openapi/")
@RequestMapping("/in/stock/")
@RestController
public class WcsApiController {
public class InStockController {
    @Autowired
    private WcsApiService wcsApiService;
@@ -35,7 +34,7 @@
            return R.error("输送线节点编码不能为空!!");
        }
        return wcsApiService.containerArrivedNotify(arrivedParam);
        return wcsApiService.containerArrivedNotify(arrivedParam, "inStock");
    }
@@ -54,28 +53,12 @@
            if (StringUtil.isNullOrEmpty(callbackParam.getTaskCode())) {
                return R.error("任务编码不能为空!!");
            }
            boolean result = wcsApiService.receiveTaskStatus(callbackParam);
           wcsApiService.receiveTaskStatus(callbackParam, "inStock");
        } else {
            return R.error("上报事件类型不能为空!!");
        }
        return R.success();
    }
//    /**
//     * 下发点对点搬运任务
//     * @param
//     * @return
//     */
//    @PostMapping("/carry")
//    public R publishTaskOfCarry() {
//        PublishTasksReponse reponse = wcsApiService.publishTaskOfCarry();
//        if (reponse.getCode() == 0) {
//            return R.ok(reponse.getData());
//        } else {
//            return R.error(reponse.getMsg());
//        }
//    }
}