Commit 6fd9b15a authored by yanzg's avatar yanzg

身份证识别

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