yangyang
2025-06-21 66f482d6b979f4988f425d029ea4be3c6ec52471
zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/OutStockController.java
@@ -97,12 +97,17 @@
        if (Objects.isNull(request.get("eventCode"))){
            throw new CoolException("事件名称不能为空!!");
        }
        String tagCode = request.get("tagCode").toString();
        // 根据站点编码查播种站点信息
        CacheSite cacheSite = cacheSiteService.getOne(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getSiteNo, request.get("tagCode")));
        CacheSite cacheSite = cacheSiteService.getOne(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getSiteNo, tagCode));
        if (Objects.isNull(cacheSite)) {
            throw new CoolException("播种站点不存在!!");
        }
        // 根据播种站点信息条码,查任务
        Task task = taskService.getOne(new LambdaQueryWrapper<Task>().eq(Task::getBarcode, cacheSite.getBarcode()));
        if (Objects.isNull(task)) {
            throw new CoolException("任务不存在!!");
        }
        request.clear();
        request.put("taskNo", task.getTaskNo());
        request.put("orderNo",cacheSite.getOrderNo());
@@ -121,7 +126,7 @@
     * @return
     */
    @GetMapping("/container/converyor/{code}")
    public R containerConveyor(@PathVariable String code) {
    public R containerConveyor(@PathVariable String code) throws Exception {
        if (StringUtil.isNullOrEmpty(code)) {
            return R.error("容器编码不能为空!!!");
        }
@@ -150,9 +155,7 @@
            throw new CoolException("当前任务订单号不能为空!!");
        }
         wcsApiService.slapLightLogic(request);
        return R.ok();
       return wcsApiService.slapLightLogic(request);
    }