添加配置检查策略.
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user