Commit 6fd9b15a authored by yanzg's avatar yanzg

身份证识别

parent d9c406cf
...@@ -19,19 +19,34 @@ public class BaseVo implements Serializable { ...@@ -19,19 +19,34 @@ public class BaseVo implements Serializable {
if (!(that instanceof BaseVo)) { if (!(that instanceof BaseVo)) {
return false; return false;
} }
try {
MapRow rowThis = JsonHelper.to(this, MapRow.class); MapRow rowThis = JsonHelper.to(this, MapRow.class);
MapRow rowThat = JsonHelper.to(that, MapRow.class); MapRow rowThat = JsonHelper.to(that, MapRow.class);
return rowThis.equals(rowThat); return rowThis.equals(rowThat);
} catch (Exception ex) {
ex.printStackTrace();
return super.equals(that);
}
} }
@Override @Override
public int hashCode() { public int hashCode() {
try {
MapRow row = JsonHelper.to(this, MapRow.class); MapRow row = JsonHelper.to(this, MapRow.class);
return row.hashCode(); return row.hashCode();
} catch (Exception ex) {
ex.printStackTrace();
return super.hashCode();
}
} }
@Override @Override
public String toString() { public String toString() {
try {
return JsonHelper.serialize(this, true); return JsonHelper.serialize(this, true);
} catch (Exception ex) {
ex.printStackTrace();
return super.toString();
}
} }
} }
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