Commit 0267377a authored by yanzg's avatar yanzg

身份证识别

parent 3cbdfb57
package com.yanzuoguang.util.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yanzuoguang.util.helper.JsonHelper;
import java.io.Serializable;
......@@ -12,4 +13,21 @@ import java.io.Serializable;
// @JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BaseVo implements Serializable {
@Override
public boolean equals(Object that) {
MapRow rowThis = JsonHelper.to(this, MapRow.class);
MapRow rowThat = JsonHelper.to(that, MapRow.class);
return rowThis.equals(rowThat);
}
@Override
public int hashCode() {
MapRow row = JsonHelper.to(this, MapRow.class);
return row.hashCode();
}
@Override
public String toString() {
return JsonHelper.serialize(this, true);
}
}
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