diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
index 027533b..2388fe7 100644
--- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
+++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
@@ -253,11 +253,16 @@ public class WcsServiceImpl implements WcsService {
                 if (destinationLocation == null) {
                     throw new JeecgBootException("创建移库任务失败, 目标库位为空");
                 }
-                Result result = taskHeaderService.createTransferTask(insideLocation.getCode(), destinationLocation.getCode(), warehouseCode);
+                Result<TaskHeader> result = taskHeaderService.createTransferTask(insideLocation.getCode(), destinationLocation.getCode(), warehouseCode);
                 if (!result.isSuccess()) {
                     throw new JeecgBootException("创建移库任务失败");
                 }
-                return Result.ok("移库任务先执行");
+                preTaskNo = result.getResult().getId();
+                taskHeader.setPreTaskNo(preTaskNo);
+                success = taskHeaderService.updatePreTaskNoById(preTaskNo, taskHeader.getId());
+                if (!success) {
+                    throw new JeecgBootException("更新任务状态失败");
+                }
             }
         } else {
             Location outSideLocation = locationService.getOutSideNear(location);