com.gccloud.starter.common.mybatis.utils.WrapperUtils Maven / Gradle / Ivy
package com.gccloud.starter.common.mybatis.utils;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.gccloud.starter.common.entity.SysUserEntity;
import lombok.extern.slf4j.Slf4j;
/**
* @author liuchengbiao
* @date 2020-07-13 15:05
*/
@Slf4j
public class WrapperUtils {
/**
* 这个和mp扫描的xml顺序有关
*/
public static final SFunction CREATE_BY = SysUserEntity::getCreateBy;
public static final SFunction TENANT_ID = SysUserEntity::getTenantId;
public static final SFunction ORG_ID = SysUserEntity::getOrgId;
public WrapperUtils() {
throw new IllegalStateException("不允许实例化");
}
}