添加配置检查策略.

This commit is contained in:
lijiahang
2023-09-19 15:59:35 +08:00
parent 67ddf7c662
commit 39f975a93a
19 changed files with 385 additions and 129 deletions

View File

@@ -30,4 +30,6 @@ public class Const implements com.orion.lang.constant.Const {
public static final Long NONE_ID = -1L;
public static final Integer DEFAULT_VERSION = 1;
}

View File

@@ -0,0 +1,43 @@
package com.orion.ops.framework.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* boolean 枚举
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/9/19 10:32
*/
@Getter
@AllArgsConstructor
public enum BooleanBit {
/**
* 假
*/
FALSE(0),
/**
* 真
*/
TRUE(1),
;
private final Integer v;
public static BooleanBit of(Integer value) {
if (value == null) {
return null;
}
for (BooleanBit e : values()) {
if (e.v.equals(value)) {
return e;
}
}
return null;
}
}

View File

@@ -1,6 +1,8 @@
package com.orion.ops.framework.mybatis.core.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
/**
* 通用 join mapper
@@ -10,4 +12,14 @@ import com.github.yulichang.base.MPJBaseMapper;
* @since 2023/9/18 11:51
*/
public interface IJoinMapper<T> extends IMapper<T>, MPJBaseMapper<T> {
/**
* 获取 MPJLambdaWrapper 对象
*
* @return 获取 wrapper
*/
default MPJLambdaWrapper<T> join() {
return JoinWrappers.lambda();
}
}