浏览代码

日志保存不给userId和userName默认值

lirong 2 年之前
父节点
当前提交
f2731fd56f
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/ControlUtil.java

+ 2 - 6
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/ControlUtil.java

@@ -196,14 +196,10 @@ public class ControlUtil {
 				 JSONObject postParam2=new JSONObject();
 				postParam.put("groupCode", RepositoryContainer.RepositoryProject.groupCode);
 				postParam.put("projectId", RepositoryContainer.RepositoryProject.projectId);
-				if (userId == null || userId.length() == 0) {
-					postParam.put("userId", "systemId");
-				} else {
+				if (userId != null) {
 					postParam.put("userId", userId);
 				}
-				if (userName == null || userName.length() == 0) {
-					postParam.put("userName", "系统");
-				} else {
+				if (userName != null) {
 					postParam.put("userName", userName);
 				}
 					SceneDataObject sdo = sdoList.get(i);