Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
fe78d354
提交
fe78d354
编写于
8月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
68678a5a
变更
14
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
884 行增加
和
37 行删除
+884
-37
dropdown-list-mpicker.less
...mponents/dropdown-list-mpicker/dropdown-list-mpicker.less
+12
-1
dropdown-list-mpicker.vue
...omponents/dropdown-list-mpicker/dropdown-list-mpicker.vue
+121
-17
dropdown-list.less
app_web/src/components/dropdown-list/dropdown-list.less
+15
-4
dropdown-list.vue
app_web/src/components/dropdown-list/dropdown-list.vue
+86
-2
codelist-service.ts
app_web/src/service/app/codelist-service.ts
+1
-2
SysOpenAccess.java
...c/main/java/cn/ibizlab/core/uaa/domain/SysOpenAccess.java
+196
-0
SysUserAuth.java
...src/main/java/cn/ibizlab/core/uaa/domain/SysUserAuth.java
+1
-1
SysOpenAccessSearchContext.java
...n/ibizlab/core/uaa/filter/SysOpenAccessSearchContext.java
+60
-0
SysOpenAccessMapper.java
.../java/cn/ibizlab/core/uaa/mapper/SysOpenAccessMapper.java
+65
-0
ISysOpenAccessService.java
...va/cn/ibizlab/core/uaa/service/ISysOpenAccessService.java
+57
-0
SysOpenAccessServiceImpl.java
...izlab/core/uaa/service/impl/SysOpenAccessServiceImpl.java
+187
-0
SysUserAuthServiceImpl.java
...ibizlab/core/uaa/service/impl/SysUserAuthServiceImpl.java
+1
-1
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+36
-9
SysOpenAccessMapper.xml
...esources/mapper/uaa/sysopenaccess/SysOpenAccessMapper.xml
+46
-0
未找到文件。
app_web/src/components/dropdown-list-mpicker/dropdown-list-mpicker.less
浏览文件 @
fe78d354
.ivu-select-multiple .ivu-select-item-selected:after{
display: none;
}
.dropdown-list-mpicker-container{
.tree-dropdown-list-mpicker{
width: 100%;
.el-input__inner{
height: 32px !important;
line-height: 32px !important;
}
.el-input__icon{
line-height: 32px;
}
}
}
app_web/src/components/dropdown-list-mpicker/dropdown-list-mpicker.vue
浏览文件 @
fe78d354
<
template
>
<i-select
class=
'dropdown-list-mpicker'
multiple
:transfer=
"true"
transfer-class-name=
"dropdown-list-mpicker-transfer"
v-model=
"currentVal"
:disabled=
"disabled === true ? true : false"
:clearable=
"true"
:filterable=
"filterable === true ? true : false"
@
on-open-change=
"onClick"
:placeholder=
"$t('components.dropDownListMpicker.placeholder')"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.value.toString()"
:label=
"item.text"
>
<Checkbox
:value =
"(currentVal.indexOf(item.value.toString()))==-1?false:true"
>
{{
Object
.
is
(
codelistType
,
'STATIC'
)
?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
</Checkbox>
</i-option>
</i-select>
<div
class=
"dropdown-list-mpicker-container"
>
<i-select
v-if=
"!hasChildren"
class=
'dropdown-list-mpicker'
multiple
:transfer=
"true"
transfer-class-name=
"dropdown-list-mpicker-transfer"
v-model=
"currentVal"
:disabled=
"disabled === true ? true : false"
:clearable=
"true"
:filterable=
"filterable === true ? true : false"
@
on-open-change=
"onClick"
:placeholder=
"$t('components.dropDownListMpicker.placeholder')"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.value.toString()"
:label=
"item.text"
>
<Checkbox
:value =
"(currentVal.indexOf(item.value.toString()))==-1?false:true"
>
{{
Object
.
is
(
codelistType
,
'STATIC'
)
?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
</Checkbox>
</i-option>
</i-select>
<ibiz-select-tree
v-if=
"hasChildren"
class=
"tree-dropdown-list-mpicker"
:disabled=
"disabled"
:NodesData=
"items"
v-model=
"currentVal"
:multiple=
"true"
></ibiz-select-tree>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
CodeListService
from
"@service/app/codelist-service"
;
import
{
Util
}
from
'@/utils'
;
@
Component
({
})
export
default
class
DropDownListMpicker
extends
Vue
{
...
...
@@ -32,6 +37,13 @@ export default class DropDownListMpicker extends Vue {
*/
public
codeListService
:
CodeListService
=
new
CodeListService
({
$store
:
this
.
$store
});
/**
* 是否有子集
* @type {boolean}
* @memberof DropDownListMpicker
*/
public
hasChildren
:
boolean
=
false
;
/**
* 当前选中值
* @type {any}
...
...
@@ -131,6 +143,14 @@ export default class DropDownListMpicker extends Vue {
* @memberof DropDownListMpicker
*/
set
currentVal
(
val
:
any
)
{
if
(
this
.
hasChildren
&&
val
){
let
tempVal
:
any
=
JSON
.
parse
(
val
);
if
(
tempVal
.
length
>
0
){
val
=
tempVal
.
map
((
item
:
any
)
=>
{
return
item
.
value
;
})
}
}
const
type
:
string
=
this
.
$util
.
typeOf
(
val
);
val
=
Object
.
is
(
type
,
'null'
)
||
Object
.
is
(
type
,
'undefined'
)
?
[]
:
val
;
let
value
=
val
.
length
>
0
?
val
.
join
(
this
.
valueSeparator
)
:
''
;
...
...
@@ -143,9 +163,45 @@ export default class DropDownListMpicker extends Vue {
* @memberof DropDownListMpicker
*/
get
currentVal
()
{
if
(
this
.
hasChildren
){
if
(
this
.
itemValue
){
let
list
:
Array
<
any
>
=
[];
let
selectedvalueArray
:
Array
<
any
>
=
[];
let
curSelectedValue
:
Array
<
any
>
=
this
.
itemValue
.
split
(
this
.
valueSeparator
);
this
.
getItemList
(
list
,
this
.
items
);
if
(
curSelectedValue
.
length
>
0
){
curSelectedValue
.
forEach
((
selectedVal
:
any
)
=>
{
let
tempResult
:
any
=
list
.
find
((
item
:
any
)
=>
{
return
item
.
value
==
selectedVal
;
})
selectedvalueArray
.
push
(
tempResult
);
})
}
return
selectedvalueArray
.
length
>
0
?
JSON
.
stringify
(
selectedvalueArray
):
null
;
}
else
{
return
null
;
}
}
return
this
.
itemValue
?
this
.
itemValue
.
split
(
this
.
valueSeparator
):[];
}
/**
* 获取代码表列表
*
* @memberof DropDownListMpicker
*/
public
getItemList
(
list
:
Array
<
any
>
,
items
:
Array
<
any
>
){
if
(
items
&&
items
.
length
>
0
){
items
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
children
){
this
.
getItemList
(
list
,
item
.
children
);
}
list
.
push
(
item
);
})
}
}
/**
* 代码表
*
...
...
@@ -186,6 +242,7 @@ export default class DropDownListMpicker extends Vue {
const
codelist
=
this
.
$store
.
getters
.
getCodeList
(
this
.
tag
);
if
(
codelist
)
{
this
.
items
=
[...
JSON
.
parse
(
JSON
.
stringify
(
codelist
.
items
))];
this
.
handleLevelCodeList
(
Util
.
deepCopy
(
this
.
items
));
}
else
{
console
.
log
(
`----
${
this
.
tag
}
----
${(
this
.
$t
(
'app.commonWords.codeNotExist'
)
as
string
)}
`
);
}
...
...
@@ -198,6 +255,7 @@ export default class DropDownListMpicker extends Vue {
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
this
.
items
=
res
;
this
.
handleLevelCodeList
(
Util
.
deepCopy
(
this
.
items
));
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----
${(
this
.
$t
(
'app.commonWords.codeNotExist'
)
as
string
)}
`
);
});
...
...
@@ -220,11 +278,57 @@ export default class DropDownListMpicker extends Vue {
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
this
.
items
=
res
;
this
.
handleLevelCodeList
(
Util
.
deepCopy
(
this
.
items
));
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----
${(
this
.
$t
(
'app.commonWords.codeNotExist'
)
as
string
)}
`
);
});
}
}
/**
* 处理层级代码表
*
* @param {*} items
* @memberof DropDownListMpicker
*/
public
handleLevelCodeList
(
items
:
Array
<
any
>
){
if
(
items
&&
items
.
length
>
0
){
this
.
hasChildren
=
items
.
some
((
item
:
any
)
=>
{
return
item
.
pvalue
;
})
if
(
this
.
hasChildren
){
let
list
:
Array
<
any
>
=
[];
items
.
forEach
((
codeItem
:
any
)
=>
{
if
(
!
codeItem
.
pvalue
){
let
valueField
:
string
=
codeItem
.
value
;
this
.
setChildCodeItems
(
valueField
,
items
,
codeItem
);
list
.
push
(
codeItem
);
}
})
this
.
items
=
list
;
}
}
}
/**
* 计算子类代码表
*
* @param {*} items
* @memberof DropDownListMpicker
*/
public
setChildCodeItems
(
pValue
:
string
,
result
:
Array
<
any
>
,
codeItem
:
any
){
result
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
pvalue
==
pValue
){
let
valueField
:
string
=
item
.
value
;
this
.
setChildCodeItems
(
valueField
,
result
,
item
);
if
(
!
codeItem
.
children
){
codeItem
.
children
=
[];
}
codeItem
.
children
.
push
(
item
);
}
})
}
}
</
script
>
...
...
app_web/src/components/dropdown-list/dropdown-list.less
浏览文件 @
fe78d354
.dropdown-list{
display: inline-block;
}
.dropdown-list-container{
.dropdown-list{
display: inline-block;
}
.tree-dropdown-list{
width: 100%;
.el-input__inner{
height: 32px !important;
line-height: 32px !important;
}
.el-input__icon{
line-height: 32px;
}
}
}
\ No newline at end of file
app_web/src/components/dropdown-list/dropdown-list.vue
浏览文件 @
fe78d354
<
template
>
<i-select
<div
class=
"dropdown-list-container"
>
<i-select
v-if=
"!hasChildren"
class=
'dropdown-list'
:transfer=
"true"
v-model=
"currentVal"
...
...
@@ -9,12 +10,15 @@
@
on-open-change=
"onClick"
:placeholder=
"$t('components.dropDownList.placeholder')"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.value"
>
{{
(
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
!==
(
'codelist.'
+
tag
+
'.'
+
item
.
value
))?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
</i-option>
</i-select>
</i-select>
<ibiz-select-tree
v-if=
"hasChildren"
class=
"tree-dropdown-list"
:disabled=
"disabled"
:NodesData=
"items"
v-model=
"currentVal"
:multiple=
"false"
></ibiz-select-tree>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Watch
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
CodeListService
from
"@service/app/codelist-service"
;
import
{
Util
}
from
'@/utils'
;
@
Component
({
})
...
...
@@ -42,6 +46,13 @@ export default class DropDownList extends Vue {
*/
public
queryParam
:
any
;
/**
* 是否有子集
* @type {boolean}
* @memberof DropDownList
*/
public
hasChildren
:
boolean
=
false
;
/**
* 当前选中值
* @type {any}
...
...
@@ -152,6 +163,10 @@ export default class DropDownList extends Vue {
* @memberof DropDownList
*/
set
currentVal
(
val
:
any
)
{
if
(
this
.
hasChildren
&&
val
){
let
tempVal
:
any
=
JSON
.
parse
(
val
);
val
=
tempVal
.
length
>
0
?
tempVal
[
0
].
value
:
null
;
}
const
type
:
string
=
this
.
$util
.
typeOf
(
val
);
val
=
Object
.
is
(
type
,
'null'
)
||
Object
.
is
(
type
,
'undefined'
)
?
undefined
:
val
;
this
.
$emit
(
'change'
,
val
);
...
...
@@ -163,9 +178,33 @@ export default class DropDownList extends Vue {
* @memberof DropDownList
*/
get
currentVal
()
{
if
(
this
.
hasChildren
&&
this
.
itemValue
){
let
list
:
Array
<
any
>
=
[];
this
.
getItemList
(
list
,
this
.
items
);
let
result
:
any
=
list
.
find
((
item
:
any
)
=>
{
return
item
.
value
==
this
.
itemValue
;
})
return
JSON
.
stringify
([
result
]);
}
return
this
.
itemValue
;
}
/**
* 获取代码表列表
*
* @memberof DropDownList
*/
public
getItemList
(
list
:
Array
<
any
>
,
items
:
Array
<
any
>
){
if
(
items
&&
items
.
length
>
0
){
items
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
children
){
this
.
getItemList
(
list
,
item
.
children
);
}
list
.
push
(
item
);
})
}
}
/**
* 代码表
*
...
...
@@ -287,6 +326,51 @@ export default class DropDownList extends Vue {
}
catch
(
error
){
console
.
warn
(
'代码表值类型和属性类型不匹配,自动强制转换异常,请修正代码表值类型和属性类型匹配'
);
}
this
.
handleLevelCodeList
(
Util
.
deepCopy
(
this
.
items
));
}
/**
* 处理层级代码表
*
* @param {*} items
* @memberof DropDownList
*/
public
handleLevelCodeList
(
items
:
Array
<
any
>
){
if
(
items
&&
items
.
length
>
0
){
this
.
hasChildren
=
items
.
some
((
item
:
any
)
=>
{
return
item
.
pvalue
;
})
if
(
this
.
hasChildren
){
let
list
:
Array
<
any
>
=
[];
items
.
forEach
((
codeItem
:
any
)
=>
{
if
(
!
codeItem
.
pvalue
){
let
valueField
:
string
=
codeItem
.
value
;
this
.
setChildCodeItems
(
valueField
,
items
,
codeItem
);
list
.
push
(
codeItem
);
}
})
this
.
items
=
list
;
}
}
}
/**
* 计算子类代码表
*
* @param {*} items
* @memberof DropDownList
*/
public
setChildCodeItems
(
pValue
:
string
,
result
:
Array
<
any
>
,
codeItem
:
any
){
result
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
pvalue
==
pValue
){
let
valueField
:
string
=
item
.
value
;
this
.
setChildCodeItems
(
valueField
,
result
,
item
);
if
(
!
codeItem
.
children
){
codeItem
.
children
=
[];
}
codeItem
.
children
.
push
(
item
);
}
})
}
}
</
script
>
...
...
app_web/src/service/app/codelist-service.ts
浏览文件 @
fe78d354
...
...
@@ -69,7 +69,7 @@ export default class CodeListService {
if
(
isEnableCache
){
// 加载完成,从本地缓存获取
if
(
CodeListService
.
codelistCached
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
)){
let
items
:
any
=
CodeListService
.
codelistCached
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
);
let
items
:
any
=
CodeListService
.
codelistCached
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
)
.
items
;
if
(
items
.
length
>
0
){
if
(
cacheTimeout
!==
-
1
){
if
(
new
Date
().
getTime
()
>
_this
[
tag
].
expirationTime
){
...
...
@@ -91,7 +91,6 @@ export default class CodeListService {
if
(
_this
[
tag
])
{
const
callback
:
Function
=
(
context
:
any
=
{},
data
:
any
=
{},
tag
:
string
,
promise
:
Promise
<
any
>
)
=>
{
promise
.
then
((
result
:
any
)
=>
{
console
.
log
()
if
(
result
.
length
>
0
){
CodeListService
.
codelistCached
.
set
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
,{
items
:
result
});
return
resolve
(
result
);
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SysOpenAccess.java
0 → 100644
浏览文件 @
fe78d354
package
cn
.
ibizlab
.
core
.
uaa
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
/**
* 实体[第三方认证平台]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZOPENACCESS"
,
resultMap
=
"SysOpenAccessResultMap"
)
public
class
SysOpenAccess
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 开放平台接入标识
*/
@DEField
(
name
=
"accessid"
,
isKeyField
=
true
)
@TableId
(
value
=
"accessid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 开放平台
*/
@DEField
(
name
=
"accessname"
)
@TableField
(
value
=
"accessname"
)
@JSONField
(
name
=
"name"
)
@JsonProperty
(
"name"
)
private
String
name
;
/**
* 开放平台类型
*/
@DEField
(
name
=
"open_type"
)
@TableField
(
value
=
"open_type"
)
@JSONField
(
name
=
"open_type"
)
@JsonProperty
(
"open_type"
)
private
String
openType
;
/**
* AccessKey(AppId)
*/
@DEField
(
name
=
"access_key"
)
@TableField
(
value
=
"access_key"
)
@JSONField
(
name
=
"access_key"
)
@JsonProperty
(
"access_key"
)
private
String
accessKey
;
/**
* SecretKey(AppSecret)
*/
@DEField
(
name
=
"secret_key"
)
@TableField
(
value
=
"secret_key"
)
@JSONField
(
name
=
"secret_key"
)
@JsonProperty
(
"secret_key"
)
private
String
secretKey
;
/**
* RegionId
*/
@DEField
(
name
=
"region_id"
)
@TableField
(
value
=
"region_id"
)
@JSONField
(
name
=
"region_id"
)
@JsonProperty
(
"region_id"
)
private
String
regionId
;
/**
* 管理账号token
*/
@DEField
(
name
=
"access_token"
)
@TableField
(
value
=
"access_token"
)
@JSONField
(
name
=
"access_token"
)
@JsonProperty
(
"access_token"
)
private
String
accessToken
;
/**
* 管理账号token过期时间
*/
@DEField
(
name
=
"expires_time"
)
@TableField
(
value
=
"expires_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"expires_time"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"expires_time"
)
private
Timestamp
expiresTime
;
/**
* 是否禁用
*/
@DEField
(
defaultValue
=
"0"
)
@TableField
(
value
=
"disabled"
)
@JSONField
(
name
=
"disabled"
)
@JsonProperty
(
"disabled"
)
private
Integer
disabled
;
/**
* 设置 [开放平台]
*/
public
void
setName
(
String
name
){
this
.
name
=
name
;
this
.
modify
(
"accessname"
,
name
);
}
/**
* 设置 [开放平台类型]
*/
public
void
setOpenType
(
String
openType
){
this
.
openType
=
openType
;
this
.
modify
(
"open_type"
,
openType
);
}
/**
* 设置 [AccessKey(AppId)]
*/
public
void
setAccessKey
(
String
accessKey
){
this
.
accessKey
=
accessKey
;
this
.
modify
(
"access_key"
,
accessKey
);
}
/**
* 设置 [SecretKey(AppSecret)]
*/
public
void
setSecretKey
(
String
secretKey
){
this
.
secretKey
=
secretKey
;
this
.
modify
(
"secret_key"
,
secretKey
);
}
/**
* 设置 [RegionId]
*/
public
void
setRegionId
(
String
regionId
){
this
.
regionId
=
regionId
;
this
.
modify
(
"region_id"
,
regionId
);
}
/**
* 设置 [管理账号token]
*/
public
void
setAccessToken
(
String
accessToken
){
this
.
accessToken
=
accessToken
;
this
.
modify
(
"access_token"
,
accessToken
);
}
/**
* 设置 [管理账号token过期时间]
*/
public
void
setExpiresTime
(
Timestamp
expiresTime
){
this
.
expiresTime
=
expiresTime
;
this
.
modify
(
"expires_time"
,
expiresTime
);
}
/**
* 格式化日期 [管理账号token过期时间]
*/
public
String
formatExpiresTime
(){
if
(
this
.
expiresTime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
sdf
.
format
(
expiresTime
);
}
/**
* 设置 [是否禁用]
*/
public
void
setDisabled
(
Integer
disabled
){
this
.
disabled
=
disabled
;
this
.
modify
(
"disabled"
,
disabled
);
}
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SysUserAuth.java
浏览文件 @
fe78d354
...
...
@@ -29,7 +29,7 @@ import com.baomidou.mybatisplus.annotation.*;
import
cn.ibizlab.util.domain.EntityMP
;
/**
* 实体[
实体
]
* 实体[
账号绑定
]
*/
@Getter
@Setter
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/filter/SysOpenAccessSearchContext.java
0 → 100644
浏览文件 @
fe78d354
package
cn
.
ibizlab
.
core
.
uaa
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.core.uaa.domain.SysOpenAccess
;
/**
* 关系型数据实体[SysOpenAccess] 查询条件对象
*/
@Slf4j
@Data
public
class
SysOpenAccessSearchContext
extends
QueryWrapperContext
<
SysOpenAccess
>
{
private
String
n_accessname_like
;
//[开放平台]
public
void
setN_accessname_like
(
String
n_accessname_like
)
{
this
.
n_accessname_like
=
n_accessname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_accessname_like
)){
this
.
getSearchCond
().
like
(
"accessname"
,
n_accessname_like
);
}
}
private
String
n_open_type_eq
;
//[开放平台类型]
public
void
setN_open_type_eq
(
String
n_open_type_eq
)
{
this
.
n_open_type_eq
=
n_open_type_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_open_type_eq
)){
this
.
getSearchCond
().
eq
(
"open_type"
,
n_open_type_eq
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"accessname"
,
query
)
);
}
}
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/mapper/SysOpenAccessMapper.java
0 → 100644
浏览文件 @
fe78d354
package
cn
.
ibizlab
.
core
.
uaa
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.core.uaa.domain.SysOpenAccess
;
import
cn.ibizlab.core.uaa.filter.SysOpenAccessSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
SysOpenAccessMapper
extends
BaseMapper
<
SysOpenAccess
>{
Page
<
SysOpenAccess
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
SysOpenAccessSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
SysOpenAccess
>
wrapper
)
;
@Override
SysOpenAccess
selectById
(
Serializable
id
);
@Override
int
insert
(
SysOpenAccess
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
SysOpenAccess
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
SysOpenAccess
entity
,
@Param
(
"ew"
)
Wrapper
<
SysOpenAccess
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysOpenAccessService.java
0 → 100644
浏览文件 @
fe78d354
package
cn
.
ibizlab
.
core
.
uaa
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.core.uaa.domain.SysOpenAccess
;
import
cn.ibizlab.core.uaa.filter.SysOpenAccessSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[SysOpenAccess] 服务对象接口
*/
public
interface
ISysOpenAccessService
extends
IService
<
SysOpenAccess
>{
boolean
create
(
SysOpenAccess
et
)
;
void
createBatch
(
List
<
SysOpenAccess
>
list
)
;
boolean
update
(
SysOpenAccess
et
)
;
void
updateBatch
(
List
<
SysOpenAccess
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
SysOpenAccess
get
(
String
key
)
;
SysOpenAccess
getDraft
(
SysOpenAccess
et
)
;
boolean
checkKey
(
SysOpenAccess
et
)
;
boolean
save
(
SysOpenAccess
et
)
;
void
saveBatch
(
List
<
SysOpenAccess
>
list
)
;
Page
<
SysOpenAccess
>
searchDefault
(
SysOpenAccessSearchContext
context
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysOpenAccessServiceImpl.java
0 → 100644
浏览文件 @
fe78d354
package
cn
.
ibizlab
.
core
.
uaa
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysOpenAccess
;
import
cn.ibizlab.core.uaa.filter.SysOpenAccessSearchContext
;
import
cn.ibizlab.core.uaa.service.ISysOpenAccessService
;
import
cn.ibizlab.util.helper.CachedBeanCopier
;
import
cn.ibizlab.util.helper.DEFieldCacheMap
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.core.uaa.mapper.SysOpenAccessMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[第三方认证平台] 服务对象接口实现
*/
@Slf4j
@Service
(
"SysOpenAccessServiceImpl"
)
public
class
SysOpenAccessServiceImpl
extends
ServiceImpl
<
SysOpenAccessMapper
,
SysOpenAccess
>
implements
ISysOpenAccessService
{
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
SysOpenAccess
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getId
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
SysOpenAccess
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
SysOpenAccess
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"accessid"
,
et
.
getId
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getId
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
SysOpenAccess
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
SysOpenAccess
get
(
String
key
)
{
SysOpenAccess
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
SysOpenAccess
();
et
.
setId
(
key
);
}
else
{
}
return
et
;
}
@Override
public
SysOpenAccess
getDraft
(
SysOpenAccess
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
SysOpenAccess
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getId
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getId
())));
}
@Override
@Transactional
public
boolean
save
(
SysOpenAccess
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
SysOpenAccess
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
boolean
saveBatch
(
Collection
<
SysOpenAccess
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
SysOpenAccess
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
SysOpenAccess
>
searchDefault
(
SysOpenAccessSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
SysOpenAccess
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
SysOpenAccess
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysUserAuthServiceImpl.java
浏览文件 @
fe78d354
...
...
@@ -39,7 +39,7 @@ import com.alibaba.fastjson.JSONObject;
import
org.springframework.util.StringUtils
;
/**
* 实体[
实体
] 服务对象接口实现
* 实体[
账号绑定
] 服务对象接口实现
*/
@Slf4j
@Service
(
"SysUserAuthServiceImpl"
)
...
...
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
fe78d354
...
...
@@ -31,8 +31,34 @@
</changeSet>
<!--输出实体[SYS_OPEN_ACCESS]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_open_access-11-2"
>
<createTable
tableName=
"IBZOPENACCESS"
>
<column
name=
"ACCESSID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_OPEN_ACCESS_ACCESSID"
/>
</column>
<column
name=
"ACCESSNAME"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"OPEN_TYPE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"ACCESS_KEY"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"SECRET_KEY"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"REGION_ID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"ACCESS_TOKEN"
remarks=
""
type=
"VARCHAR(1000)"
>
</column>
<column
name=
"EXPIRES_TIME"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"DISABLED"
remarks=
""
type=
"INT"
>
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_PSSYSTEM]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_pssystem-39-
2
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_pssystem-39-
3
"
>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSSYSTEM_PSSYSTEMID"
/>
...
...
@@ -52,7 +78,7 @@
<!--输出实体[SYS_PERMISSION]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_permission-219-
3
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_permission-219-
4
"
>
<createTable
tableName=
"IBZPERMISSION"
>
<column
name=
"SYS_PERMISSIONID"
remarks=
""
type=
"VARCHAR(200)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PERMISSION_SYS_PERMISSI"
/>
...
...
@@ -74,7 +100,7 @@
<!--输出实体[SYS_ROLE]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_role-119-
4
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_role-119-
5
"
>
<createTable
tableName=
"IBZROLE"
>
<column
name=
"SYS_ROLEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_ROLE_SYS_ROLEID"
/>
...
...
@@ -98,7 +124,7 @@
<!--输出实体[SYS_ROLE_PERMISSION]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_role_permission-98-
5
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_role_permission-98-
6
"
>
<createTable
tableName=
"IBZROLE_PERMISSION"
>
<column
name=
"SYS_ROLE_PERMISSIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_ROLE_PERMISSION_SYS_ROL"
/>
...
...
@@ -118,7 +144,7 @@
<!--输出实体[SYS_USER_AUTH]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_user_auth-1
1-6
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_user_auth-1
3-7
"
>
<createTable
tableName=
"IBZUSERAUTH"
>
<column
name=
"AUTHID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_USER_AUTH_AUTHID"
/>
...
...
@@ -136,7 +162,7 @@
<!--输出实体[SYS_USER_ROLE]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_user_role-72-
7
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_user_role-72-
8
"
>
<createTable
tableName=
"IBZUSER_ROLE"
>
<column
name=
"SYS_USER_ROLEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_USER_ROLE_SYS_USER_ROLE"
/>
...
...
@@ -153,19 +179,20 @@
</changeSet>
<!--输出实体[SYS_AUTHLOG]外键关系 -->
<!--输出实体[SYS_OPEN_ACCESS]外键关系 -->
<!--输出实体[SYS_PSSYSTEM]外键关系 -->
<!--输出实体[SYS_PERMISSION]外键关系 -->
<!--输出实体[SYS_ROLE]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_role-119-
8
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_role-119-
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"PROLEID"
baseTableName=
"IBZROLE"
constraintName=
"DER1N_SYS_ROLE_SYS_ROLE_PROLEI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SYS_ROLEID"
referencedTableName=
"IBZROLE"
validate=
"true"
/>
</changeSet>
<!--输出实体[SYS_ROLE_PERMISSION]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_role_permission-98-
9
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_role_permission-98-
10
"
>
<addForeignKeyConstraint
baseColumnNames=
"SYS_PERMISSIONID"
baseTableName=
"IBZROLE_PERMISSION"
constraintName=
"DER1N_SYS_ROLE_PERMISSION_SYS_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SYS_PERMISSIONID"
referencedTableName=
"IBZPERMISSION"
validate=
"true"
/>
</changeSet>
<!--输出实体[SYS_USER_AUTH]外键关系 -->
<!--输出实体[SYS_USER_ROLE]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_user_role-72-1
1
"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_user_role-72-1
2
"
>
<addForeignKeyConstraint
baseColumnNames=
"SYS_ROLEID"
baseTableName=
"IBZUSER_ROLE"
constraintName=
"DER1N_SYS_USER_ROLE_SYS_ROLE_S"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SYS_ROLEID"
referencedTableName=
"IBZROLE"
validate=
"true"
/>
</changeSet>
...
...
ibzuaa-core/src/main/resources/mapper/uaa/sysopenaccess/SysOpenAccessMapper.xml
0 → 100644
浏览文件 @
fe78d354
<?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=
"cn.ibizlab.core.uaa.mapper.SysOpenAccessMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"SysOpenAccessResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`ACCESSID`, t1.`ACCESSNAME`, t1.`ACCESS_KEY`, t1.`ACCESS_TOKEN`, t1.`DISABLED`, t1.`EXPIRES_TIME`, t1.`OPEN_TYPE`, t1.`REGION_ID`, t1.`SECRET_KEY` FROM `IBZOPENACCESS` t1 ) t1 where accessid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"SysOpenAccessResultMap"
type=
"cn.ibizlab.core.uaa.domain.SysOpenAccess"
autoMapping=
"true"
>
<id
property=
"id"
column=
"accessid"
/>
<!--主键字段映射-->
<result
property=
"name"
column=
"accessname"
/>
<result
property=
"openType"
column=
"open_type"
/>
<result
property=
"accessKey"
column=
"access_key"
/>
<result
property=
"secretKey"
column=
"secret_key"
/>
<result
property=
"regionId"
column=
"region_id"
/>
<result
property=
"accessToken"
column=
"access_token"
/>
<result
property=
"expiresTime"
column=
"expires_time"
/>
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.uaa.filter.SysOpenAccessSearchContext"
resultMap=
"SysOpenAccessResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ACCESSID`, t1.`ACCESSNAME`, t1.`ACCESS_KEY`, t1.`ACCESS_TOKEN`, t1.`DISABLED`, t1.`EXPIRES_TIME`, t1.`OPEN_TYPE`, t1.`REGION_ID`, t1.`SECRET_KEY` FROM `IBZOPENACCESS` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ACCESSID`, t1.`ACCESSNAME`, t1.`ACCESS_KEY`, t1.`ACCESS_TOKEN`, t1.`DISABLED`, t1.`EXPIRES_TIME`, t1.`OPEN_TYPE`, t1.`REGION_ID`, t1.`SECRET_KEY` FROM `IBZOPENACCESS` t1
]]>
</sql>
</mapper>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录