@ -244,7 +244,10 @@ public class BaseController<T, S extends IService<T>> {
wrapper.eq(fn, fn.apply(obj));
}
wrapper.ne(null != id, id, id.apply(obj));
if (null != id) {
// id非空 组装id条件
wrapper.ne(id, id.apply(obj));
boolean exists = service.getBaseMapper().exists(wrapper);
if (exists) {