|
|
@@ -17,6 +17,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.fasterxml.jackson.databind.node.ArrayNode;
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
|
import jakarta.annotation.Resource;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
@@ -333,7 +334,7 @@ public class IscsInitApiImpl implements IscsInitApi {
|
|
|
" \"type\": \"isolation\",\n" +
|
|
|
" \"nodeId\": \"005\",\n" +
|
|
|
" \"icon\": \"6005.png\",\n" +
|
|
|
- " \"workerUserId\": \"181\",\n" +
|
|
|
+ " \"workerUserId\": \"\",\n" +
|
|
|
" \"remark\": \"\",\n" +
|
|
|
" \"formId\": \"\",\n" +
|
|
|
" \"isolationType\": \"1\",\n" +
|
|
|
@@ -381,7 +382,7 @@ public class IscsInitApiImpl implements IscsInitApi {
|
|
|
" \"type\": \"releaseIsolation\",\n" +
|
|
|
" \"nodeId\": \"006\",\n" +
|
|
|
" \"icon\": \"7007.png\",\n" +
|
|
|
- " \"workerUserId\": \"181\",\n" +
|
|
|
+ " \"workerUserId\": \"\",\n" +
|
|
|
" \"remark\": \"\",\n" +
|
|
|
" \"formId\": \"\",\n" +
|
|
|
" \"isolationType\": \"1\",\n" +
|
|
|
@@ -533,7 +534,8 @@ public class IscsInitApiImpl implements IscsInitApi {
|
|
|
} else {
|
|
|
ObjectNode dataNode = (ObjectNode) nodeObj.get("data");
|
|
|
// 替换节点负责人,处理null情况
|
|
|
- if (workerUserId != null) {
|
|
|
+ String workerUserIdText = nodeObj.get("workerUserId").asText();
|
|
|
+ if (workerUserId != null && StringUtils.isNotBlank(workerUserIdText)) {
|
|
|
dataNode.put("workerUserId", workerUserId);
|
|
|
} else {
|
|
|
dataNode.putNull("workerUserId"); // 若为null则设为JSON null
|