}
}else if (fieldColName.startsWith("field") && current.get(fieldColName) != null && current.get(fieldColName).length() > 0) {
//普通字段
String fieldStr = templateFieldNameCache.get(fieldColName);
UUID fieldId = DataAccessFactory.getInstance().createUUID(fieldStr);
extValueMap.put(fieldId, new Pair<Object, Object>(null, current.get(fieldColName)));
}
}
}else {
for (String fieldColName : current.keySet()) {
if (current.get(fieldColName) == null && before.get(fieldColName) == null) {
continue;
}
if ((current.get(fieldColName) == null && before.get(fieldColName) != null)
||(current.get(fieldColName) != null && before.get(fieldColName) == null)
|| !current.get(fieldColName).equals(before.get(fieldColName))) {
if (fieldColName.equals("title") || fieldColName.equals("description") || fieldColName.equals("assignUser") || fieldColName.equals("statusId")) {
if( fieldColName.equals("statusId")){
baseValueMap.put(fieldColName, new Pair<Object, Object>(DataAccessFactory.getInstance().createUUID(before.get(fieldColName)), DataAccessFactory.getInstance().createUUID(current.get(fieldColName))));
}else {
baseValueMap.put(fieldColName, new Pair<Object, Object>(before.get(fieldColName), current.get(fieldColName)));
}
}else if (fieldColName.startsWith("field") && (current.get(fieldColName) != null || before.get(fieldColName) != null) && ((current.get(fieldColName) != null && current.get(fieldColName).length() > 0 )|| before.get(fieldColName) != null && before.get(fieldColName).length() > 0)) {
//普通字段
String fieldStr = templateFieldNameCache.get(fieldColName);
UUID fieldId = null;
if (fieldColName.equalsIgnoreCase("logActionId") && fieldStr.equals("48")) { //编辑
fieldId = null;
}else {
fieldId = DataAccessFactory.getInstance().createUUID(fieldStr);
}