Commit 8112ea73 by wuwenlong

daoutil bugfix;

parent 48b2df70
...@@ -233,7 +233,7 @@ public class DaoUtils { ...@@ -233,7 +233,7 @@ public class DaoUtils {
String userId; String userId;
try { try {
userId = MapUtils.getString(map, "updatedBy"); userId = MapUtils.getString(map, "updatedBy");
if (StringUtils.isEmpty(userId)) { if (StringUtils.isBlank(userId)) {
userId = UserSession.getLoginName(); userId = UserSession.getLoginName();
userId = userId == null || userId.length() > 32 ? "System" : userId; userId = userId == null || userId.length() > 32 ? "System" : userId;
} }
...@@ -244,7 +244,7 @@ public class DaoUtils { ...@@ -244,7 +244,7 @@ public class DaoUtils {
// 修改人名称 // 修改人名称
String userName = MapUtils.getString(map, "updatedName"); String userName = MapUtils.getString(map, "updatedName");
try { try {
if (StringUtils.isEmpty(userName)) { if (StringUtils.isBlank(userName)) {
userName = UserSession.getLoginCName(); userName = UserSession.getLoginCName();
} }
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment