首页>代码>springboot教务管理系统+微信小程序云开发>/新教务管理系统/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()); } }

tongguan00 LV2
4月1日
zolscy LV24
2024年11月27日
admin_z LV22
2024年1月9日
wbbhappy LV13
2024年1月9日
lkt123456 LV8
2024年1月6日
晴曛 LV6
2023年12月29日
微信网友_6709209201250304 LV2
2023年10月26日
kennyban LV1
2023年8月31日
syczzxj LV10
2023年8月1日
molu123456
2023年6月2日
暂无贡献等级

phoneant
4月15日
暂无贡献等级
tongguan00 LV2
4月1日
星星没有答案
3月27日
暂无贡献等级
微信网友_7398626323435520 LV3
2月25日
ma406805131 LV19
2月21日
quyan5632 LV2
2月10日
微信网友_7371218154688512 LV4
2月5日
wyx065747 LV67
1月29日
新哥新奇士橙 LV4
1月26日
AOAO1234 LV2
2024年12月23日