skyouc
2024-12-31 07cdd2d370db314d237acb828c76283f1d1f4afd
zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/OutStockController.java
@@ -5,6 +5,7 @@
import com.zy.asrs.wms.apis.wcs.entity.request.ContainerArrivedParam;
import com.zy.asrs.wms.apis.wcs.entity.request.TasksStatusCallbackParam;
import com.zy.asrs.wms.apis.wcs.services.WcsApiService;
import com.zy.asrs.wms.system.controller.BaseController;
import io.netty.util.internal.StringUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -16,7 +17,7 @@
@Slf4j
@RestController
@RequestMapping("/out/stock/")
public class OutStockController {
public class OutStockController extends BaseController {
    @Autowired
    private WcsApiService wcsApiService;
@@ -35,7 +36,7 @@
            if (StringUtil.isNullOrEmpty(callbackParam.getTaskCode())) {
                return R.error("任务编码不能为空!!");
            }
            wcsApiService.receiveTaskStatus(callbackParam, "outStock");
            wcsApiService.receiveTaskStatus(callbackParam, "outStock", getHostId());
        } else {
            return R.error("上报事件类型不能为空!!");
        }
@@ -58,7 +59,7 @@
            return R.error("输送线节点编码不能为空!!");
        }
        return wcsApiService.containerArrivedNotify(arrivedParam, "outStock");
        return wcsApiService.containerArrivedNotify(arrivedParam, "outStock", getHostId());
    }