小车车 3 месяцев назад
Родитель
Сommit
e6c49335ec

+ 2 - 2
yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/api/task/IscsInitApiImpl.java

@@ -534,11 +534,11 @@ public class IscsInitApiImpl implements IscsInitApi {
                     } else {
                         ObjectNode dataNode = (ObjectNode) nodeObj.get("data");
                         // 替换节点负责人,处理null情况
-                        String workerUserIdText = nodeObj.get("workerUserId").asText();
+                        String workerUserIdText = dataNode.get("workerUserId").asText();
                         if (workerUserId != null && StringUtils.isNotBlank(workerUserIdText)) {
                             dataNode.put("workerUserId", workerUserId);
                         } else {
-                            dataNode.putNull("workerUserId"); // 若为null则设为JSON null
+                            // dataNode.putNull("workerUserId"); // 若为null则设为JSON null
                         }
                     }