mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-24 16:05:08 +08:00
CRM: 新增 CRM 分页查询工具类,实现通用构造 crm 数据类型数据分页查询条件
This commit is contained in:
@ -17,7 +17,8 @@ import java.util.Arrays;
|
||||
public enum CrmSceneEnum implements IntArrayValuable {
|
||||
|
||||
OWNER(1, "我负责的"),
|
||||
FOLLOW(2, "我关注的");
|
||||
FOLLOW(2, "我关注的"),
|
||||
SUBORDINATE(3, "下属负责的");
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmSceneEnum::getType).toArray();
|
||||
|
||||
@ -38,6 +39,10 @@ public enum CrmSceneEnum implements IntArrayValuable {
|
||||
return ObjUtil.equal(FOLLOW.getType(), type);
|
||||
}
|
||||
|
||||
public static boolean isSubordinate(Integer type) {
|
||||
return ObjUtil.equal(SUBORDINATE.getType(), type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
|
Reference in New Issue
Block a user