Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
6a62267d
提交
6a62267d
authored
11月 09, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor:优化授权查询模型
上级
f32ba3be
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
1019 行增加
和
0 行删除
+1019
-0
VAuthModel.java
...end/src/main/java/io/dataease/base/domain/VAuthModel.java
+24
-0
VAuthModelExample.java
.../main/java/io/dataease/base/domain/VAuthModelExample.java
+691
-0
VAuthModelWithBLOBs.java
...ain/java/io/dataease/base/domain/VAuthModelWithBLOBs.java
+18
-0
VAuthModelMapper.java
...c/main/java/io/dataease/base/mapper/VAuthModelMapper.java
+28
-0
VAuthModelMapper.xml
...rc/main/java/io/dataease/base/mapper/VAuthModelMapper.xml
+258
-0
没有找到文件。
backend/src/main/java/io/dataease/base/domain/VAuthModel.java
0 → 100644
浏览文件 @
6a62267d
package
io
.
dataease
.
base
.
domain
;
import
java.io.Serializable
;
import
lombok.Data
;
@Data
public
class
VAuthModel
implements
Serializable
{
private
String
id
;
private
String
pid
;
private
String
nodeType
;
private
String
modelType
;
private
String
modelInnerType
;
private
String
authType
;
private
String
createBy
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
backend/src/main/java/io/dataease/base/domain/VAuthModelExample.java
0 → 100644
浏览文件 @
6a62267d
package
io
.
dataease
.
base
.
domain
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
VAuthModelExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
VAuthModelExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
();
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
String
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
String
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
String
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
String
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLike
(
String
value
)
{
addCriterion
(
"id like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotLike
(
String
value
)
{
addCriterion
(
"id not like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidIsNull
()
{
addCriterion
(
"pid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidIsNotNull
()
{
addCriterion
(
"pid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidEqualTo
(
String
value
)
{
addCriterion
(
"pid ="
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidNotEqualTo
(
String
value
)
{
addCriterion
(
"pid <>"
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidGreaterThan
(
String
value
)
{
addCriterion
(
"pid >"
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pid >="
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidLessThan
(
String
value
)
{
addCriterion
(
"pid <"
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pid <="
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidLike
(
String
value
)
{
addCriterion
(
"pid like"
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidNotLike
(
String
value
)
{
addCriterion
(
"pid not like"
,
value
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidIn
(
List
<
String
>
values
)
{
addCriterion
(
"pid in"
,
values
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"pid not in"
,
values
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pid between"
,
value1
,
value2
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPidNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pid not between"
,
value1
,
value2
,
"pid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeIsNull
()
{
addCriterion
(
"node_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeIsNotNull
()
{
addCriterion
(
"node_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeEqualTo
(
String
value
)
{
addCriterion
(
"node_type ="
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"node_type <>"
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeGreaterThan
(
String
value
)
{
addCriterion
(
"node_type >"
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"node_type >="
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeLessThan
(
String
value
)
{
addCriterion
(
"node_type <"
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"node_type <="
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeLike
(
String
value
)
{
addCriterion
(
"node_type like"
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeNotLike
(
String
value
)
{
addCriterion
(
"node_type not like"
,
value
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"node_type in"
,
values
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"node_type not in"
,
values
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"node_type between"
,
value1
,
value2
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNodeTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"node_type not between"
,
value1
,
value2
,
"nodeType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeIsNull
()
{
addCriterion
(
"model_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeIsNotNull
()
{
addCriterion
(
"model_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeEqualTo
(
String
value
)
{
addCriterion
(
"model_type ="
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"model_type <>"
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeGreaterThan
(
String
value
)
{
addCriterion
(
"model_type >"
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"model_type >="
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeLessThan
(
String
value
)
{
addCriterion
(
"model_type <"
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"model_type <="
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeLike
(
String
value
)
{
addCriterion
(
"model_type like"
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeNotLike
(
String
value
)
{
addCriterion
(
"model_type not like"
,
value
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"model_type in"
,
values
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"model_type not in"
,
values
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"model_type between"
,
value1
,
value2
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"model_type not between"
,
value1
,
value2
,
"modelType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeIsNull
()
{
addCriterion
(
"model_inner_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeIsNotNull
()
{
addCriterion
(
"model_inner_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeEqualTo
(
String
value
)
{
addCriterion
(
"model_inner_type ="
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"model_inner_type <>"
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeGreaterThan
(
String
value
)
{
addCriterion
(
"model_inner_type >"
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"model_inner_type >="
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeLessThan
(
String
value
)
{
addCriterion
(
"model_inner_type <"
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"model_inner_type <="
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeLike
(
String
value
)
{
addCriterion
(
"model_inner_type like"
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeNotLike
(
String
value
)
{
addCriterion
(
"model_inner_type not like"
,
value
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"model_inner_type in"
,
values
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"model_inner_type not in"
,
values
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"model_inner_type between"
,
value1
,
value2
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModelInnerTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"model_inner_type not between"
,
value1
,
value2
,
"modelInnerType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeIsNull
()
{
addCriterion
(
"auth_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeIsNotNull
()
{
addCriterion
(
"auth_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeEqualTo
(
String
value
)
{
addCriterion
(
"auth_type ="
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"auth_type <>"
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeGreaterThan
(
String
value
)
{
addCriterion
(
"auth_type >"
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"auth_type >="
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeLessThan
(
String
value
)
{
addCriterion
(
"auth_type <"
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"auth_type <="
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeLike
(
String
value
)
{
addCriterion
(
"auth_type like"
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeNotLike
(
String
value
)
{
addCriterion
(
"auth_type not like"
,
value
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"auth_type in"
,
values
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"auth_type not in"
,
values
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"auth_type between"
,
value1
,
value2
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAuthTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"auth_type not between"
,
value1
,
value2
,
"authType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByIsNull
()
{
addCriterion
(
"create_by is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByIsNotNull
()
{
addCriterion
(
"create_by is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByEqualTo
(
String
value
)
{
addCriterion
(
"create_by ="
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotEqualTo
(
String
value
)
{
addCriterion
(
"create_by <>"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByGreaterThan
(
String
value
)
{
addCriterion
(
"create_by >"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"create_by >="
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByLessThan
(
String
value
)
{
addCriterion
(
"create_by <"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"create_by <="
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByLike
(
String
value
)
{
addCriterion
(
"create_by like"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotLike
(
String
value
)
{
addCriterion
(
"create_by not like"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByIn
(
List
<
String
>
values
)
{
addCriterion
(
"create_by in"
,
values
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"create_by not in"
,
values
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"create_by between"
,
value1
,
value2
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"create_by not between"
,
value1
,
value2
,
"createBy"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
protected
Criteria
()
{
super
();
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
backend/src/main/java/io/dataease/base/domain/VAuthModelWithBLOBs.java
0 → 100644
浏览文件 @
6a62267d
package
io
.
dataease
.
base
.
domain
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ToString
(
callSuper
=
true
)
public
class
VAuthModelWithBLOBs
extends
VAuthModel
implements
Serializable
{
private
String
name
;
private
String
label
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
backend/src/main/java/io/dataease/base/mapper/VAuthModelMapper.java
0 → 100644
浏览文件 @
6a62267d
package
io
.
dataease
.
base
.
mapper
;
import
io.dataease.base.domain.VAuthModel
;
import
io.dataease.base.domain.VAuthModelExample
;
import
io.dataease.base.domain.VAuthModelWithBLOBs
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
VAuthModelMapper
{
long
countByExample
(
VAuthModelExample
example
);
int
deleteByExample
(
VAuthModelExample
example
);
int
insert
(
VAuthModelWithBLOBs
record
);
int
insertSelective
(
VAuthModelWithBLOBs
record
);
List
<
VAuthModelWithBLOBs
>
selectByExampleWithBLOBs
(
VAuthModelExample
example
);
List
<
VAuthModel
>
selectByExample
(
VAuthModelExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
VAuthModelWithBLOBs
record
,
@Param
(
"example"
)
VAuthModelExample
example
);
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
VAuthModelWithBLOBs
record
,
@Param
(
"example"
)
VAuthModelExample
example
);
int
updateByExample
(
@Param
(
"record"
)
VAuthModel
record
,
@Param
(
"example"
)
VAuthModelExample
example
);
}
\ No newline at end of file
backend/src/main/java/io/dataease/base/mapper/VAuthModelMapper.xml
0 → 100644
浏览文件 @
6a62267d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"io.dataease.base.mapper.VAuthModelMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"io.dataease.base.domain.VAuthModel"
>
<result
column=
"id"
jdbcType=
"VARCHAR"
property=
"id"
/>
<result
column=
"pid"
jdbcType=
"VARCHAR"
property=
"pid"
/>
<result
column=
"node_type"
jdbcType=
"VARCHAR"
property=
"nodeType"
/>
<result
column=
"model_type"
jdbcType=
"VARCHAR"
property=
"modelType"
/>
<result
column=
"model_inner_type"
jdbcType=
"VARCHAR"
property=
"modelInnerType"
/>
<result
column=
"auth_type"
jdbcType=
"VARCHAR"
property=
"authType"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
<result
column=
"name"
jdbcType=
"LONGVARCHAR"
property=
"name"
/>
<result
column=
"label"
jdbcType=
"LONGVARCHAR"
property=
"label"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, pid, node_type, model_type, model_inner_type, auth_type, create_by
</sql>
<sql
id=
"Blob_Column_List"
>
`name`, `label`
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"io.dataease.base.domain.VAuthModelExample"
resultMap=
"ResultMapWithBLOBs"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from v_auth_model
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"io.dataease.base.domain.VAuthModelExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from v_auth_model
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<delete
id=
"deleteByExample"
parameterType=
"io.dataease.base.domain.VAuthModelExample"
>
delete from v_auth_model
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
insert into v_auth_model (id, pid, node_type,
model_type, model_inner_type, auth_type,
create_by, `name`, `label`
)
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{nodeType,jdbcType=VARCHAR},
#{modelType,jdbcType=VARCHAR}, #{modelInnerType,jdbcType=VARCHAR}, #{authType,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{name,jdbcType=LONGVARCHAR}, #{label,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
insert into v_auth_model
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"pid != null"
>
pid,
</if>
<if
test=
"nodeType != null"
>
node_type,
</if>
<if
test=
"modelType != null"
>
model_type,
</if>
<if
test=
"modelInnerType != null"
>
model_inner_type,
</if>
<if
test=
"authType != null"
>
auth_type,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"label != null"
>
`label`,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=VARCHAR},
</if>
<if
test=
"pid != null"
>
#{pid,jdbcType=VARCHAR},
</if>
<if
test=
"nodeType != null"
>
#{nodeType,jdbcType=VARCHAR},
</if>
<if
test=
"modelType != null"
>
#{modelType,jdbcType=VARCHAR},
</if>
<if
test=
"modelInnerType != null"
>
#{modelInnerType,jdbcType=VARCHAR},
</if>
<if
test=
"authType != null"
>
#{authType,jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
#{createBy,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=LONGVARCHAR},
</if>
<if
test=
"label != null"
>
#{label,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"io.dataease.base.domain.VAuthModelExample"
resultType=
"java.lang.Long"
>
select count(*) from v_auth_model
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update v_auth_model
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=VARCHAR},
</if>
<if
test=
"record.pid != null"
>
pid = #{record.pid,jdbcType=VARCHAR},
</if>
<if
test=
"record.nodeType != null"
>
node_type = #{record.nodeType,jdbcType=VARCHAR},
</if>
<if
test=
"record.modelType != null"
>
model_type = #{record.modelType,jdbcType=VARCHAR},
</if>
<if
test=
"record.modelInnerType != null"
>
model_inner_type = #{record.modelInnerType,jdbcType=VARCHAR},
</if>
<if
test=
"record.authType != null"
>
auth_type = #{record.authType,jdbcType=VARCHAR},
</if>
<if
test=
"record.createBy != null"
>
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=LONGVARCHAR},
</if>
<if
test=
"record.label != null"
>
`label` = #{record.label,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
update v_auth_model
set id = #{record.id,jdbcType=VARCHAR},
pid = #{record.pid,jdbcType=VARCHAR},
node_type = #{record.nodeType,jdbcType=VARCHAR},
model_type = #{record.modelType,jdbcType=VARCHAR},
model_inner_type = #{record.modelInnerType,jdbcType=VARCHAR},
auth_type = #{record.authType,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=LONGVARCHAR},
`label` = #{record.label,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update v_auth_model
set id = #{record.id,jdbcType=VARCHAR},
pid = #{record.pid,jdbcType=VARCHAR},
node_type = #{record.nodeType,jdbcType=VARCHAR},
model_type = #{record.modelType,jdbcType=VARCHAR},
model_inner_type = #{record.modelInnerType,jdbcType=VARCHAR},
auth_type = #{record.authType,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论