Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
00318e78
提交
00318e78
编写于
6月 24, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
f05711dc
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
23 行增加
和
12 行删除
+23
-12
default.less
app_web/src/styles/default.less
+2
-2
DictCatalogResource.java
...rc/main/java/cn/ibizlab/api/rest/DictCatalogResource.java
+2
-2
DictOptionResource.java
...src/main/java/cn/ibizlab/api/rest/DictOptionResource.java
+4
-4
IBZWFFallback.java
...l/src/main/java/cn/ibizlab/util/client/IBZWFFallback.java
+6
-1
IBZWFFeignClient.java
...rc/main/java/cn/ibizlab/util/client/IBZWFFeignClient.java
+4
-1
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+5
-2
未找到文件。
app_web/src/styles/default.less
浏览文件 @
00318e78
...
@@ -64,14 +64,14 @@
...
@@ -64,14 +64,14 @@
// tab分页模式首页布局
// tab分页模式首页布局
.index_tab_content{
.index_tab_content{
.view-container {
>
.view-container {
height: calc(100% - 65px);
height: calc(100% - 65px);
margin: 0px 12px;
margin: 0px 12px;
}
}
}
}
// 面包屑模式首页布局
// 面包屑模式首页布局
.index_route_content{
.index_route_content{
.view-container {
>
.view-container {
height: calc(100% - 36px);
height: calc(100% - 36px);
margin: 12px;
margin: 12px;
}
}
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/rest/DictCatalogResource.java
浏览文件 @
00318e78
...
@@ -137,7 +137,7 @@ public class DictCatalogResource {
...
@@ -137,7 +137,7 @@ public class DictCatalogResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dictcatalogService
.
checkKey
(
dictcatalogMapping
.
toDomain
(
dictcatalogdto
)));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dictcatalogService
.
checkKey
(
dictcatalogMapping
.
toDomain
(
dictcatalogdto
)));
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictCatalog-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictCatalog-
search
Default-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"字典"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"字典"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dictcatalogs/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dictcatalogs/fetchdefault"
)
public
ResponseEntity
<
List
<
DictCatalogDTO
>>
fetchDefault
(
DictCatalogSearchContext
context
)
{
public
ResponseEntity
<
List
<
DictCatalogDTO
>>
fetchDefault
(
DictCatalogSearchContext
context
)
{
...
@@ -150,7 +150,7 @@ public class DictCatalogResource {
...
@@ -150,7 +150,7 @@ public class DictCatalogResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictCatalog-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictCatalog-
search
Default-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"字典"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"字典"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictcatalogs/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictcatalogs/searchdefault"
)
public
ResponseEntity
<
Page
<
DictCatalogDTO
>>
searchDefault
(
@RequestBody
DictCatalogSearchContext
context
)
{
public
ResponseEntity
<
Page
<
DictCatalogDTO
>>
searchDefault
(
@RequestBody
DictCatalogSearchContext
context
)
{
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/rest/DictOptionResource.java
浏览文件 @
00318e78
...
@@ -137,7 +137,7 @@ public class DictOptionResource {
...
@@ -137,7 +137,7 @@ public class DictOptionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-
search
Default-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dictoptions/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dictoptions/fetchdefault"
)
public
ResponseEntity
<
List
<
DictOptionDTO
>>
fetchDefault
(
DictOptionSearchContext
context
)
{
public
ResponseEntity
<
List
<
DictOptionDTO
>>
fetchDefault
(
DictOptionSearchContext
context
)
{
...
@@ -150,7 +150,7 @@ public class DictOptionResource {
...
@@ -150,7 +150,7 @@ public class DictOptionResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-
search
Default-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictoptions/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictoptions/searchdefault"
)
public
ResponseEntity
<
Page
<
DictOptionDTO
>>
searchDefault
(
@RequestBody
DictOptionSearchContext
context
)
{
public
ResponseEntity
<
Page
<
DictOptionDTO
>>
searchDefault
(
@RequestBody
DictOptionSearchContext
context
)
{
...
@@ -267,7 +267,7 @@ public class DictOptionResource {
...
@@ -267,7 +267,7 @@ public class DictOptionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-
search
Default-all')"
)
@ApiOperation
(
value
=
"根据字典获取DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"根据字典获取DEFAULT"
)
@ApiOperation
(
value
=
"根据字典获取DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"根据字典获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dictcatalogs/{dictcatalog_id}/dictoptions/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dictcatalogs/{dictcatalog_id}/dictoptions/fetchdefault"
)
public
ResponseEntity
<
List
<
DictOptionDTO
>>
fetchDictOptionDefaultByDictCatalog
(
@PathVariable
(
"dictcatalog_id"
)
String
dictcatalog_id
,
DictOptionSearchContext
context
)
{
public
ResponseEntity
<
List
<
DictOptionDTO
>>
fetchDictOptionDefaultByDictCatalog
(
@PathVariable
(
"dictcatalog_id"
)
String
dictcatalog_id
,
DictOptionSearchContext
context
)
{
...
@@ -281,7 +281,7 @@ public class DictOptionResource {
...
@@ -281,7 +281,7 @@ public class DictOptionResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdict-DictOption-
search
Default-all')"
)
@ApiOperation
(
value
=
"根据字典查询DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"根据字典查询DEFAULT"
)
@ApiOperation
(
value
=
"根据字典查询DEFAULT"
,
tags
=
{
"字典项"
}
,
notes
=
"根据字典查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictcatalogs/{dictcatalog_id}/dictoptions/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictcatalogs/{dictcatalog_id}/dictoptions/searchdefault"
)
public
ResponseEntity
<
Page
<
DictOptionDTO
>>
searchDictOptionDefaultByDictCatalog
(
@PathVariable
(
"dictcatalog_id"
)
String
dictcatalog_id
,
@RequestBody
DictOptionSearchContext
context
)
{
public
ResponseEntity
<
Page
<
DictOptionDTO
>>
searchDictOptionDefaultByDictCatalog
(
@PathVariable
(
"dictcatalog_id"
)
String
dictcatalog_id
,
@RequestBody
DictOptionSearchContext
context
)
{
...
...
ibzdict-util/src/main/java/cn/ibizlab/util/client/IBZWFFallback.java
浏览文件 @
00318e78
package
cn
.
ibizlab
.
util
.
client
;
package
cn
.
ibizlab
.
util
.
client
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.
List
;
import
java.util.
*
;
@Component
@Component
public
class
IBZWFFallback
implements
IBZWFFeignClient
{
public
class
IBZWFFallback
implements
IBZWFFeignClient
{
...
@@ -15,4 +15,9 @@ public class IBZWFFallback implements IBZWFFeignClient {
...
@@ -15,4 +15,9 @@ public class IBZWFFallback implements IBZWFFeignClient {
public
List
<
String
>
getbusinesskeysByUserId
(
String
system
,
String
userId
,
String
entity
,
String
processDefinitionKey
,
String
taskDefinitionKey
)
{
public
List
<
String
>
getbusinesskeysByUserId
(
String
system
,
String
userId
,
String
entity
,
String
processDefinitionKey
,
String
taskDefinitionKey
)
{
return
null
;
return
null
;
}
}
@Override
public
Boolean
deployBpmnFile
(
List
<
Map
<
String
,
Object
>>
bpmnfiles
)
{
return
null
;
}
}
}
ibzdict-util/src/main/java/cn/ibizlab/util/client/IBZWFFeignClient.java
浏览文件 @
00318e78
...
@@ -2,7 +2,7 @@ package cn.ibizlab.util.client;
...
@@ -2,7 +2,7 @@ package cn.ibizlab.util.client;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.
List
;
import
java.util.
*
;
@FeignClient
(
value
=
"ibzwf-api"
,
fallback
=
IBZWFFallback
.
class
)
@FeignClient
(
value
=
"ibzwf-api"
,
fallback
=
IBZWFFallback
.
class
)
public
interface
IBZWFFeignClient
public
interface
IBZWFFeignClient
...
@@ -15,4 +15,7 @@ public interface IBZWFFeignClient
...
@@ -15,4 +15,7 @@ public interface IBZWFFeignClient
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/{system}-user-{userId}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/{system}-user-{userId}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks"
)
List
<
String
>
getbusinesskeysByUserId
(
@PathVariable
(
"system"
)
String
system
,
@PathVariable
(
"userId"
)
String
userId
,
List
<
String
>
getbusinesskeysByUserId
(
@PathVariable
(
"system"
)
String
system
,
@PathVariable
(
"userId"
)
String
userId
,
@PathVariable
(
"entity"
)
String
entity
,
@PathVariable
(
"processDefinitionKey"
)
String
processDefinitionKey
,
@PathVariable
(
"taskDefinitionKey"
)
String
taskDefinitionKey
);
@PathVariable
(
"entity"
)
String
entity
,
@PathVariable
(
"processDefinitionKey"
)
String
processDefinitionKey
,
@PathVariable
(
"taskDefinitionKey"
)
String
taskDefinitionKey
);
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/deploybpmn"
)
Boolean
deployBpmnFile
(
@RequestBody
List
<
Map
<
String
,
Object
>>
bpmnfiles
);
}
}
ibzdict-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
00318e78
...
@@ -11,7 +11,9 @@ import org.springframework.boot.ApplicationRunner;
...
@@ -11,7 +11,9 @@ import org.springframework.boot.ApplicationRunner;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.DigestUtils
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.util.*
;
/**
/**
* 权限:向uaa同步当前系统菜单、权限资源任务类
* 权限:向uaa同步当前系统菜单、权限资源任务类
...
@@ -21,15 +23,14 @@ import java.io.InputStream;
...
@@ -21,15 +23,14 @@ import java.io.InputStream;
@ConditionalOnProperty
(
name
=
"ibiz.enablePermissionValid"
,
havingValue
=
"true"
)
@ConditionalOnProperty
(
name
=
"ibiz.enablePermissionValid"
,
havingValue
=
"true"
)
public
class
PermissionSyncJob
implements
ApplicationRunner
{
public
class
PermissionSyncJob
implements
ApplicationRunner
{
@Autowired
@Autowired
@Lazy
@Lazy
private
IBZUAAFeignClient
client
;
private
IBZUAAFeignClient
client
;
@Value
(
"${ibiz.systemid:ibzdict}"
)
@Value
(
"${ibiz.systemid:ibzdict}"
)
private
String
systemId
;
private
String
systemId
;
@Override
@Override
public
void
run
(
ApplicationArguments
args
)
{
public
void
run
(
ApplicationArguments
args
)
{
try
{
try
{
...
@@ -40,6 +41,7 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -40,6 +41,7 @@ public class PermissionSyncJob implements ApplicationRunner {
system
.
put
(
"pssystemid"
,
systemId
);
system
.
put
(
"pssystemid"
,
systemId
);
system
.
put
(
"pssystemname"
,
systemId
);
system
.
put
(
"pssystemname"
,
systemId
);
system
.
put
(
"sysstructure"
,
JSONObject
.
parseObject
(
permissionResult
));
system
.
put
(
"sysstructure"
,
JSONObject
.
parseObject
(
permissionResult
));
system
.
put
(
"md5check"
,
DigestUtils
.
md5DigestAsHex
(
permissionResult
.
getBytes
()));
if
(
client
.
syncSysAuthority
(
system
)){
if
(
client
.
syncSysAuthority
(
system
)){
log
.
info
(
"向[UAA]同步系统资源成功"
);
log
.
info
(
"向[UAA]同步系统资源成功"
);
}
else
{
}
else
{
...
@@ -49,5 +51,6 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -49,5 +51,6 @@ public class PermissionSyncJob implements ApplicationRunner {
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
log
.
error
(
String
.
format
(
"向[UAA]同步系统资源失败,请检查[UAA]服务是否正常! [%s]"
,
ex
));
log
.
error
(
String
.
format
(
"向[UAA]同步系统资源失败,请检查[UAA]服务是否正常! [%s]"
,
ex
));
}
}
}
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录