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;
} }
MapRow rowThis = JsonHelper.to(this, MapRow.class); try {
MapRow rowThat = JsonHelper.to(that, MapRow.class); MapRow rowThis = JsonHelper.to(this, MapRow.class);
return rowThis.equals(rowThat); MapRow rowThat = JsonHelper.to(that, MapRow.class);
return rowThis.equals(rowThat);
} catch (Exception ex) {
ex.printStackTrace();
return super.equals(that);
}
} }
@Override @Override
public int hashCode() { public int hashCode() {
MapRow row = JsonHelper.to(this, MapRow.class); try {
return row.hashCode(); MapRow row = JsonHelper.to(this, MapRow.class);
return row.hashCode();
} catch (Exception ex) {
ex.printStackTrace();
return super.hashCode();
}
} }
@Override @Override
public String toString() { public String toString() {
return JsonHelper.serialize(this, true); try {
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