diff --git a/src/main/java/com/lovenav/entity/CollectIconList.java b/src/main/java/com/lovenav/entity/CollectIconList.java index 3d999a7..783005c 100644 --- a/src/main/java/com/lovenav/entity/CollectIconList.java +++ b/src/main/java/com/lovenav/entity/CollectIconList.java @@ -14,21 +14,69 @@ public class CollectIconList implements Serializable { /** * 网址id */ - private String urlid; + private String url_id; /** * 图片地址 */ - private String iconUrl; + private String icon_url; /** * 二维码地址 */ - private String qrUrl; + private String qr_url; + /** * 状态 */ - private int status; + private Integer status; private static final long serialVersionUID = 1L; + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + CollectIconList other = (CollectIconList) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getUrl_id() == null ? other.getUrl_id() == null : this.getUrl_id().equals(other.getUrl_id())) + && (this.getIcon_url() == null ? other.getIcon_url() == null : this.getIcon_url().equals(other.getIcon_url())) + && (this.getQr_url() == null ? other.getQr_url() == null : this.getQr_url().equals(other.getQr_url())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getUrl_id() == null) ? 0 : getUrl_id().hashCode()); + result = prime * result + ((getIcon_url() == null) ? 0 : getIcon_url().hashCode()); + result = prime * result + ((getQr_url() == null) ? 0 : getQr_url().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", url_id=").append(url_id); + sb.append(", icon_url=").append(icon_url); + sb.append(", qr_url=").append(qr_url); + sb.append(", status=").append(status); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e9f506d..1ee784d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,7 +2,7 @@ spring: datasource: url: jdbc:mysql://localhost:3306/love-nav username: root - password: Cheng123... + password: 1611 driver-class-name: com.mysql.cj.jdbc.Driver redis: host: localhost diff --git a/src/main/resources/mybatis/CollectIconListDao.xml b/src/main/resources/mybatis/CollectIconListDao.xml index 310dd14..eb1e353 100644 --- a/src/main/resources/mybatis/CollectIconListDao.xml +++ b/src/main/resources/mybatis/CollectIconListDao.xml @@ -3,13 +3,13 @@ - - - - + + + + - id, url_id, icon_url,qrUrl,status + id, url_id, icon_url, qr_url, `status`