首页>代码>springboot+mybatis职教务管理系统>/niceschoolapi/src/main/java/com/nsapi/niceschoolapi/common/base/BaseEntity.java
package com.nsapi.niceschoolapi.common.base; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.extension.activerecord.Model; import java.io.Serializable; public class BaseEntity<T extends Model> extends Model<T> { @TableId protected String id; public BaseEntity() { } @Override protected Serializable pkVal() { return this.id; } public BaseEntity(String id) { this.id = id; } public String getId() { return id; } public void setId(String id) { this.id = id; } public boolean equals(Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!getClass().equals(obj.getClass())) { return false; } BaseEntity<?> that = (BaseEntity<?>) obj; return null != this.getId() && this.getId().equals(that.getId()); } }
最近下载更多
最近浏览更多
1941549176
4月29日
暂无贡献等级
slf123
4月29日
暂无贡献等级
itlaolang LV6
4月28日
梁小贤 LV1
4月23日
ll时空幻境 LV1
4月22日
bai fei liu LV1
4月19日
不包邮
4月15日
暂无贡献等级
微信网友_6945567553622016 LV1
4月10日
wppppp LV3
4月5日
zolscy LV12
3月24日