Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzwf
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzwf
提交
73b15d48
提交
73b15d48
编写于
11月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 部署微服务接口 [ibz-wf,microservice]
上级
10a776ad
变更
31
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
31 个修改的文件
包含
3123 行增加
和
72 行删除
+3123
-72
application-dev.yml
ibzwf-boot/src/main/resources/application-dev.yml
+52
-52
WFGroup.java
...rc/main/java/cn/ibizlab/core/workflow/domain/WFGroup.java
+1
-0
WFHistory.java
.../main/java/cn/ibizlab/core/workflow/domain/WFHistory.java
+1
-0
WFMember.java
...c/main/java/cn/ibizlab/core/workflow/domain/WFMember.java
+1
-0
WFProcessDefinition.java
.../cn/ibizlab/core/workflow/domain/WFProcessDefinition.java
+1
-0
WFProcessInstance.java
...va/cn/ibizlab/core/workflow/domain/WFProcessInstance.java
+1
-0
WFProcessNode.java
...n/java/cn/ibizlab/core/workflow/domain/WFProcessNode.java
+1
-0
WFREModel.java
.../main/java/cn/ibizlab/core/workflow/domain/WFREModel.java
+1
-0
WFSystem.java
...c/main/java/cn/ibizlab/core/workflow/domain/WFSystem.java
+1
-0
WFTask.java
...src/main/java/cn/ibizlab/core/workflow/domain/WFTask.java
+1
-0
WFTaskWay.java
.../main/java/cn/ibizlab/core/workflow/domain/WFTaskWay.java
+1
-0
WFUser.java
...src/main/java/cn/ibizlab/core/workflow/domain/WFUser.java
+1
-0
IWFGroupService.java
...ava/cn/ibizlab/core/workflow/service/IWFGroupService.java
+0
-1
IWFMemberService.java
...va/cn/ibizlab/core/workflow/service/IWFMemberService.java
+4
-5
IWFProcessDefinitionService.java
...ab/core/workflow/service/IWFProcessDefinitionService.java
+0
-1
IWFSystemService.java
...va/cn/ibizlab/core/workflow/service/IWFSystemService.java
+0
-1
IWFUserService.java
...java/cn/ibizlab/core/workflow/service/IWFUserService.java
+0
-1
WFGroupServiceImpl.java
...bizlab/core/workflow/service/impl/WFGroupServiceImpl.java
+1
-0
WFMemberServiceImpl.java
...izlab/core/workflow/service/impl/WFMemberServiceImpl.java
+1
-2
WFProcessDefinitionServiceImpl.java
...workflow/service/impl/WFProcessDefinitionServiceImpl.java
+1
-0
WFSystemServiceImpl.java
...izlab/core/workflow/service/impl/WFSystemServiceImpl.java
+1
-0
WFUserServiceImpl.java
...ibizlab/core/workflow/service/impl/WFUserServiceImpl.java
+1
-0
ibzwf.json
ibzwf-core/src/main/resources/sysmodel/ibzwf.json
+80
-0
pom.xml
ibzwf-dependencies/pom.xml
+2
-6
DEField.java
...til/src/main/java/cn/ibizlab/util/annotation/DEField.java
+10
-0
StaticDict.java
...f-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
+2913
-0
EntityClient.java
...il/src/main/java/cn/ibizlab/util/domain/EntityClient.java
+1
-1
DupCheck.java
ibzwf-util/src/main/java/cn/ibizlab/util/enums/DupCheck.java
+23
-0
ExceptionTranslator.java
...main/java/cn/ibizlab/util/errors/ExceptionTranslator.java
+11
-2
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+2
-0
AppController.java
...til/src/main/java/cn/ibizlab/util/rest/AppController.java
+9
-0
未找到文件。
ibzwf-boot/src/main/resources/application-dev.yml
浏览文件 @
73b15d48
...
...
@@ -4,57 +4,57 @@ server:
#zuul网关路由设置
zuul
:
routes
:
loginv7
:
path
:
/v7/login
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
changepwd
:
path
:
/v7/changepwd
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
uaa
:
path
:
/uaa/**
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
config
:
path
:
/configs/**
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
oucore
:
path
:
/ibzorganizations/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
oudict
:
path
:
/dictionarys/**/Ibzou**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
ou
:
path
:
/ibzdepartments/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
uaadict
:
path
:
/dictionarys/**/SysOperator
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
dict
:
path
:
/dictionarys/**
serviceId
:
${ibiz.ref.service.dict:ibzdict-api}
stripPrefix
:
false
disk
:
path
:
/net-disk/**
serviceId
:
${ibiz.ref.service.disk:ibzdisk-api}
stripPrefix
:
false
ou_sys_org
:
path
:
/sysorganizations/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
ou_sys_dept
:
path
:
/sysdepartments/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
lite-core
:
path
:
/lite/**
serviceId
:
${ibiz.ref.service.lite:ibzlite-api}
stripPrefix
:
false
loginv7
:
path
:
/v7/login
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
changepwd
:
path
:
/v7/changepwd
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
uaa
:
path
:
/uaa/**
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
config
:
path
:
/configs/**
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
oucore
:
path
:
/ibzorganizations/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
oudict
:
path
:
/dictionarys/**/Ibzou**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
ou
:
path
:
/ibzdepartments/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
uaadict
:
path
:
/dictionarys/**/SysOperator
serviceId
:
${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix
:
false
dict
:
path
:
/dictionarys/**
serviceId
:
${ibiz.ref.service.dict:ibzdict-api}
stripPrefix
:
false
disk
:
path
:
/net-disk/**
serviceId
:
${ibiz.ref.service.disk:ibzdisk-api}
stripPrefix
:
false
ou_sys_org
:
path
:
/sysorganizations/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
ou_sys_dept
:
path
:
/sysdepartments/**
serviceId
:
${ibiz.ref.service.ou:ibzou-api}
stripPrefix
:
false
lite-core
:
path
:
/lite/**
serviceId
:
${ibiz.ref.service.lite:ibzlite-api}
stripPrefix
:
false
sensitive-headers
:
-
Cookie,Set-Cookie,Authorization
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFGroup.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFHistory.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFMember.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFProcessDefinition.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFProcessInstance.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFProcessNode.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFREModel.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFSystem.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFTask.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFTaskWay.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFUser.java
浏览文件 @
73b15d48
...
...
@@ -19,6 +19,7 @@ import cn.ibizlab.util.annotation.DEField;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/IWFGroupService.java
浏览文件 @
73b15d48
...
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.workflow.domain.WFGroup
;
import
cn.ibizlab.core.workflow.filter.WFGroupSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/IWFMemberService.java
浏览文件 @
73b15d48
...
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.workflow.domain.WFMember
;
import
cn.ibizlab.core.workflow.filter.WFMemberSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
...
...
@@ -38,11 +37,11 @@ public interface IWFMemberService extends IService<WFMember>{
boolean
save
(
WFMember
et
)
;
void
saveBatch
(
List
<
WFMember
>
list
)
;
Page
<
WFMember
>
searchDefault
(
WFMemberSearchContext
context
)
;
List
<
WFMember
>
selectByGroupid
(
String
id
)
;
void
removeByGroupid
(
String
id
)
;
List
<
WFMember
>
selectByGroupid
(
String
id
);
void
removeByGroupid
(
String
id
);
void
saveByGroupid
(
String
id
,
List
<
WFMember
>
list
)
;
List
<
WFMember
>
selectByUserid
(
String
id
)
;
void
removeByUserid
(
String
id
)
;
List
<
WFMember
>
selectByUserid
(
String
id
);
void
removeByUserid
(
String
id
);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/IWFProcessDefinitionService.java
浏览文件 @
73b15d48
...
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.workflow.domain.WFProcessDefinition
;
import
cn.ibizlab.core.workflow.filter.WFProcessDefinitionSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/IWFSystemService.java
浏览文件 @
73b15d48
...
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.workflow.domain.WFSystem
;
import
cn.ibizlab.core.workflow.filter.WFSystemSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/IWFUserService.java
浏览文件 @
73b15d48
...
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.workflow.domain.WFUser
;
import
cn.ibizlab.core.workflow.filter.WFUserSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFGroupServiceImpl.java
浏览文件 @
73b15d48
...
...
@@ -198,6 +198,7 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFMemberServiceImpl.java
浏览文件 @
73b15d48
...
...
@@ -165,7 +165,6 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
public
List
<
WFMember
>
selectByGroupid
(
String
id
)
{
return
baseMapper
.
selectByGroupid
(
id
);
}
@Override
public
void
removeByGroupid
(
String
id
)
{
this
.
remove
(
new
QueryWrapper
<
WFMember
>().
eq
(
"groupid"
,
id
));
...
...
@@ -207,7 +206,6 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
public
List
<
WFMember
>
selectByUserid
(
String
id
)
{
return
baseMapper
.
selectByUserid
(
id
);
}
@Override
public
void
removeByUserid
(
String
id
)
{
this
.
remove
(
new
QueryWrapper
<
WFMember
>().
eq
(
"userid"
,
id
));
...
...
@@ -305,6 +303,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFProcessDefinitionServiceImpl.java
浏览文件 @
73b15d48
...
...
@@ -191,6 +191,7 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFSystemServiceImpl.java
浏览文件 @
73b15d48
...
...
@@ -191,6 +191,7 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFUserServiceImpl.java
浏览文件 @
73b15d48
...
...
@@ -213,6 +213,7 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
}
...
...
ibzwf-core/src/main/resources/sysmodel/ibzwf.json
浏览文件 @
73b15d48
此差异已折叠。
点击以展开。
ibzwf-dependencies/pom.xml
浏览文件 @
73b15d48
...
...
@@ -233,12 +233,6 @@
<version>
${jsonwebtoken-jjwt.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
<version>
${alibaba-druid.version}
</version>
</dependency>
<dependency>
<groupId>
org.zalando
</groupId>
<artifactId>
problem-spring-web
</artifactId>
...
...
@@ -351,6 +345,8 @@
</dependency>
</dependencies>
</project>
ibzwf-util/src/main/java/cn/ibizlab/util/annotation/DEField.java
浏览文件 @
73b15d48
...
...
@@ -2,6 +2,7 @@ package cn.ibizlab.util.annotation;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
...
...
@@ -66,5 +67,14 @@ public @interface DEField
* @return
*/
String
format
()
default
""
;
/**
* 重复性检查
* @return
*/
DupCheck
dupCheck
()
default
DupCheck
.
NONE
;
/**
* 范围属性
*/
String
dupCheckField
()
default
""
;
}
ibzwf-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
0 → 100644
浏览文件 @
73b15d48
此差异已折叠。
点击以展开。
ibzwf-util/src/main/java/cn/ibizlab/util/domain/EntityClient.java
浏览文件 @
73b15d48
...
...
@@ -6,9 +6,9 @@ public class EntityClient extends EntityBase {
@Override
public
void
modify
(
String
field
,
Object
val
)
{
getExtensionparams
().
put
(
"dirtyflagenable"
,
true
);
if
(
val
==
null
){
this
.
getFocusNull
().
add
(
field
.
toLowerCase
());
getExtensionparams
().
put
(
"dirtyflagenable"
,
true
);
getExtensionparams
().
put
(
field
.
toLowerCase
()+
"dirtyflag"
,
true
);
}
else
{
...
...
ibzwf-util/src/main/java/cn/ibizlab/util/enums/DupCheck.java
0 → 100644
浏览文件 @
73b15d48
package
cn
.
ibizlab
.
util
.
enums
;
/**
* 属性重复值检查
*/
public
enum
DupCheck
{
/**
* 不检查
*/
NONE
,
/**
* 全部检查
*/
ALL
,
/**
* 非空检查
*/
NOTNULL
,
/**
* 指定范围检查
*/
RANGE
,
}
ibzwf-util/src/main/java/cn/ibizlab/util/errors/ExceptionTranslator.java
浏览文件 @
73b15d48
package
cn
.
ibizlab
.
util
.
errors
;
import
org.springframework.dao.
ConcurrencyFailureException
;
import
org.springframework.dao.
*
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.validation.BindingResult
;
...
...
@@ -90,9 +90,18 @@ public class ExceptionTranslator implements ProblemHandling {
return
create
(
ex
,
problem
,
request
);
}
@ExceptionHandler
(
DataAccessException
.
class
)
public
ResponseEntity
<
Problem
>
handlerDataAccessFailure
(
DataAccessException
ex
,
NativeWebRequest
request
){
Problem
problem
=
Problem
.
builder
()
.
withStatus
(
Status
.
INTERNAL_SERVER_ERROR
)
.
with
(
"message"
,
ex
.
getMessage
())
.
build
();
return
create
(
ex
,
problem
,
request
,
createFailureAlert
(
ex
.
getClass
().
getSimpleName
(),
ex
.
getClass
().
getSimpleName
(),
ex
.
getMessage
()));
}
public
static
HttpHeaders
createFailureAlert
(
String
entityName
,
String
errorKey
,
String
defaultMessage
)
{
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
add
(
"X-ibz-error"
,
"error."
+
errorKey
);
headers
.
add
(
"X-ibz-error"
,
errorKey
);
headers
.
add
(
"X-ibz-params"
,
entityName
);
return
headers
;
}
...
...
ibzwf-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
73b15d48
...
...
@@ -44,6 +44,7 @@ public class PermissionSyncJob implements ApplicationRunner {
@Lazy
IBZLiteFeignClient
liteFeignClient
;
@Override
public
void
run
(
ApplicationArguments
args
)
{
try
{
...
...
@@ -92,5 +93,6 @@ public class PermissionSyncJob implements ApplicationRunner {
}
catch
(
Exception
e
)
{
log
.
error
(
"推送消息模板失败"
);
}
}
}
\ No newline at end of file
ibzwf-util/src/main/java/cn/ibizlab/util/rest/AppController.java
浏览文件 @
73b15d48
...
...
@@ -59,6 +59,7 @@ public class AppController {
appData
.
put
(
"enablepermissionvalid"
,
false
);
else
appData
.
put
(
"enablepermissionvalid"
,
enablePermissionValid
);
fillAppData
(
appData
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
appData
);
}
...
...
@@ -87,4 +88,12 @@ public class AppController {
throw
new
BadRequestAlertException
(
"获取配置失败,参数缺失"
,
"IBZConfig"
,
configType
);
return
ResponseEntity
.
ok
(
ibzConfigService
.
getConfig
(
configType
,
targetType
,
userId
));
}
/**
* 应用参数扩展
* @param appData
*/
protected
void
fillAppData
(
JSONObject
appData
){
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录