This commit is contained in:
machey
2018-11-27 22:39:49 +08:00
parent b97d377d83
commit f1710f1c7f

View File

@@ -285,7 +285,10 @@ public class FlatMessage implements Serializable {
if (flatMessage.getData() != null) { if (flatMessage.getData() != null) {
int idx = 0; int idx = 0;
for (Map<String, String> row : flatMessage.getData()) { for (Map<String, String> row : flatMessage.getData()) {
Map<String, String> o = flatMessage.getOld().get(idx); Map<String, String> o = null;
if (flatMessage.getOld() != null) {
o = flatMessage.getOld().get(idx);
}
String value; String value;
// 如果old中有pk值说明主键有修改, 以旧的主键值hash为准 // 如果old中有pk值说明主键有修改, 以旧的主键值hash为准
if (o != null && o.containsKey(pk)) { if (o != null && o.containsKey(pk)) {