Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
ecf67a75
提交
ecf67a75
编写于
12月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-dst,应用]
上级
8ca75dac
变更
15
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
475 行增加
和
387 行删除
+475
-387
data-dictionary.json
app_web/public/assets/json/data-dictionary.json
+4
-159
clrule-group.ts
app_web/src/codelist/clrule-group.ts
+133
-0
codelist-register.ts
app_web/src/codelist/codelist-register.ts
+1
-0
codelist_en_US.ts
app_web/src/locale/lanres/codelist/codelist_en_US.ts
+1
-15
codelist_zh_CN.ts
app_web/src/locale/lanres/codelist/codelist_zh_CN.ts
+0
-14
codelist.ts
app_web/src/mock/codelist/codelist.ts
+6
-161
main-form-base.vue
app_web/src/widgets/rule-engine/main-form/main-form-base.vue
+1
-1
main-grid-base.vue
app_web/src/widgets/rule-engine/main-grid/main-grid-base.vue
+2
-2
main-form-base.vue
app_web/src/widgets/rule-item/main-form/main-form-base.vue
+1
-1
main-grid-base.vue
app_web/src/widgets/rule-item/main-grid/main-grid-base.vue
+2
-2
RuntimeDict.json
ibzdst-core/src/main/resources/sysmodel/RuntimeDict.json
+278
-0
IBZDictFallback.java
...src/main/java/cn/ibizlab/util/client/IBZDictFallback.java
+13
-0
IBZDictFeignClient.java
.../main/java/cn/ibizlab/util/client/IBZDictFeignClient.java
+19
-0
StaticDict.java
...t-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
+0
-32
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+14
-0
未找到文件。
app_web/public/assets/json/data-dictionary.json
浏览文件 @
ecf67a75
...
...
@@ -347,165 +347,10 @@
{
"srfkey"
:
"CLRuleGroup"
,
"emptytext"
:
""
,
"codelisttype"
:
"static"
,
"items"
:
[
{
"id"
:
"TIME"
,
"label"
:
"时效预警(权利保障)"
,
"text"
:
"时效预警(权利保障)"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Time"
,
"value"
:
"TIME"
,
"disabled"
:
false
}
,
{
"id"
:
"FLOW"
,
"label"
:
"流程监控"
,
"text"
:
"流程监控"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Flow"
,
"value"
:
"FLOW"
,
"disabled"
:
false
}
,
{
"id"
:
"REP"
,
"label"
:
"汇总分析"
,
"text"
:
"汇总分析"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Rep"
,
"value"
:
"REP"
,
"disabled"
:
false
}
,
{
"id"
:
"CHECK"
,
"label"
:
"评查"
,
"text"
:
"评查"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Check"
,
"value"
:
"CHECK"
,
"disabled"
:
false
}
,
{
"id"
:
"AI"
,
"label"
:
"辅助审查"
,
"text"
:
"辅助审查"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Ai"
,
"value"
:
"AI"
,
"disabled"
:
false
}
,
{
"id"
:
"TEST"
,
"label"
:
"测试"
,
"text"
:
"测试"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Test"
,
"value"
:
"TEST"
,
"disabled"
:
false
}
,
{
"id"
:
"GJ_HFDF"
,
"label"
:
"高检-回复答复"
,
"text"
:
"高检-回复答复"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Gj_hfdf"
,
"color"
:
"rgba(0, 98, 255, 1)"
,
"value"
:
"GJ_HFDF"
,
"disabled"
:
false
}
,
{
"id"
:
"GJ_WSXF"
,
"label"
:
"高检-网上信访"
,
"text"
:
"高检-网上信访"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Gj_wsxf"
,
"color"
:
"rgba(0, 98, 255, 1)"
,
"value"
:
"GJ_WSXF"
,
"disabled"
:
false
}
,
{
"id"
:
"AGPC"
,
"label"
:
"案管-评查"
,
"text"
:
"案管-评查"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agpc"
,
"value"
:
"AGPC"
,
"disabled"
:
false
}
,
{
"id"
:
"AGQL"
,
"label"
:
"案管-权利"
,
"text"
:
"案管-权利"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agql"
,
"value"
:
"AGQL"
,
"disabled"
:
false
}
,
{
"id"
:
"AGLC"
,
"label"
:
"案管-流程"
,
"text"
:
"案管-流程"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Aglc"
,
"value"
:
"AGLC"
,
"disabled"
:
false
}
,
{
"id"
:
"AGPC2"
,
"label"
:
"案管-评查2.0"
,
"text"
:
"案管-评查2.0"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agpc2"
,
"value"
:
"AGPC2"
,
"disabled"
:
false
}
,
{
"id"
:
"AGQL2"
,
"label"
:
"案管-权利2.0"
,
"text"
:
"案管-权利2.0"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agql2"
,
"value"
:
"AGQL2"
,
"disabled"
:
false
}
,
{
"id"
:
"AGLC2"
,
"label"
:
"案管-流程2.0"
,
"text"
:
"案管-流程2.0"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Aglc2"
,
"value"
:
"AGLC2"
,
"disabled"
:
false
}
]
"codelisttype"
:
"dynamic"
,
"appdataentity"
:
""
,
"appdedataset"
:
""
,
"items"
:
[]
},
{
"srfkey"
:
"AppType"
,
...
...
app_web/src/codelist/clrule-group.ts
0 → 100644
浏览文件 @
ecf67a75
/**
* 代码表--规则分组
*
* @export
* @class CLRuleGroup
*/
export
default
class
CLRuleGroup
{
/**
* 是否启用缓存
*
* @type boolean
* @memberof CLRuleGroup
*/
public
isEnableCache
:
boolean
=
true
;
/**
* 过期时间
*
* @type any
* @memberof CLRuleGroup
*/
public
static
expirationTime
:
any
;
/**
* 预定义类型
*
* @type string
* @memberof CLRuleGroup
*/
public
predefinedType
:
string
=
'RUNTIME'
;
/**
* 缓存超长时长
*
* @type any
* @memberof CLRuleGroup
*/
public
cacheTimeout
:
any
=
-
1
;
/**
* 代码表模型对象
*
* @type any
* @memberof CLRuleGroup
*/
public
codelistModel
:
any
=
{
codelistid
:
"CLRuleGroup"
};
/**
* 获取过期时间
*
* @type any
* @memberof CLRuleGroup
*/
public
getExpirationTime
(){
return
CLRuleGroup
.
expirationTime
;
}
/**
* 设置过期时间
*
* @type any
* @memberof CLRuleGroup
*/
public
setExpirationTime
(
value
:
any
){
CLRuleGroup
.
expirationTime
=
value
;
}
/**
* 自定义参数集合
*
* @type any
* @memberof CLRuleGroup
*/
public
userParamNames
:
any
=
{
}
/**
* 查询参数集合
*
* @type any
* @memberof CLRuleGroup
*/
public
queryParamNames
:
any
=
{
}
/**
* 获取数据项
*
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CLRuleGroup
*/
public
getItems
(
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Promise
.
reject
([]);
}
/**
* 处理查询参数
* @param data 传入data
* @memberof CLRuleGroup
*/
public
handleQueryParam
(
data
:
any
){
let
tempData
:
any
=
data
?
JSON
.
parse
(
JSON
.
stringify
(
data
)):{};
if
(
this
.
userParamNames
&&
Object
.
keys
(
this
.
userParamNames
).
length
>
0
){
Object
.
keys
(
this
.
userParamNames
).
forEach
((
name
:
string
)
=>
{
if
(
!
name
)
{
return
;
}
let
value
:
string
|
null
=
this
.
userParamNames
[
name
];
if
(
value
&&
value
.
startsWith
(
'%'
)
&&
value
.
endsWith
(
'%'
))
{
const
key
=
value
.
substring
(
1
,
value
.
length
-
1
);
if
(
this
.
codelistModel
&&
this
.
codelistModel
.
hasOwnProperty
(
key
))
{
value
=
(
this
.
codelistModel
[
key
]
!==
null
&&
this
.
codelistModel
[
key
]
!==
undefined
)
?
this
.
codelistModel
[
key
]
:
null
;
}
else
{
value
=
null
;
}
}
Object
.
assign
(
tempData
,
{
[
name
]:
value
});
});
}
Object
.
assign
(
tempData
,{
page
:
0
,
size
:
1000
});
if
(
this
.
queryParamNames
&&
Object
.
keys
(
this
.
queryParamNames
).
length
>
0
){
Object
.
assign
(
tempData
,
this
.
queryParamNames
);
}
return
tempData
;
}
}
app_web/src/codelist/codelist-register.ts
浏览文件 @
ecf67a75
...
...
@@ -41,6 +41,7 @@ export class CodeListRegister {
protected
init
():
void
{
this
.
allCodeList
.
set
(
'CLModel'
,
()
=>
import
(
'@/codelist/clmodel'
));
this
.
allCodeList
.
set
(
'CLMetric'
,
()
=>
import
(
'@/codelist/clmetric'
));
this
.
allCodeList
.
set
(
'CLRuleGroup'
,
()
=>
import
(
'@/codelist/clrule-group'
));
}
/**
...
...
app_web/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
ecf67a75
...
...
@@ -43,21 +43,7 @@ export default {
"empty"
:
""
,
},
CLRuleGroup
:
{
"TIME"
:
"时效预警(权利保障)"
,
"FLOW"
:
"流程监控"
,
"REP"
:
"汇总分析"
,
"CHECK"
:
"评查"
,
"AI"
:
"辅助审查"
,
"TEST"
:
"测试"
,
"GJ_HFDF"
:
"高检-回复答复"
,
"GJ_WSXF"
:
"高检-网上信访"
,
"AGPC"
:
"案管-评查"
,
"AGQL"
:
"案管-权利"
,
"AGLC"
:
"案管-流程"
,
"AGPC2"
:
"案管-评查2.0"
,
"AGQL2"
:
"案管-权利2.0"
,
"AGLC2"
:
"案管-流程2.0"
,
"empty"
:
""
"empty"
:
""
,
},
AppType
:
{
"INNER"
:
"内置应用"
,
...
...
app_web/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
ecf67a75
...
...
@@ -43,20 +43,6 @@ export default {
"empty"
:
""
,
},
CLRuleGroup
:
{
"TIME"
:
"时效预警(权利保障)"
,
"FLOW"
:
"流程监控"
,
"REP"
:
"汇总分析"
,
"CHECK"
:
"评查"
,
"AI"
:
"辅助审查"
,
"TEST"
:
"测试"
,
"GJ_HFDF"
:
"高检-回复答复"
,
"GJ_WSXF"
:
"高检-网上信访"
,
"AGPC"
:
"案管-评查"
,
"AGQL"
:
"案管-权利"
,
"AGLC"
:
"案管-流程"
,
"AGPC2"
:
"案管-评查2.0"
,
"AGQL2"
:
"案管-权利2.0"
,
"AGLC2"
:
"案管-流程2.0"
,
"empty"
:
""
,
},
AppType
:
{
...
...
app_web/src/mock/codelist/codelist.ts
浏览文件 @
ecf67a75
...
...
@@ -353,167 +353,12 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"items"
:
[]
},
{
srfkey
:
"CLRuleGroup"
,
emptytext
:
""
,
"codelisttype"
:
"static"
,
items
:
[
{
id
:
"TIME"
,
label
:
"时效预警(权利保障)"
,
text
:
"时效预警(权利保障)"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Time"
,
value
:
"TIME"
,
disabled
:
false
,
},
{
id
:
"FLOW"
,
label
:
"流程监控"
,
text
:
"流程监控"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Flow"
,
value
:
"FLOW"
,
disabled
:
false
,
},
{
id
:
"REP"
,
label
:
"汇总分析"
,
text
:
"汇总分析"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Rep"
,
value
:
"REP"
,
disabled
:
false
,
},
{
id
:
"CHECK"
,
label
:
"评查"
,
text
:
"评查"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Check"
,
value
:
"CHECK"
,
disabled
:
false
,
},
{
id
:
"AI"
,
label
:
"辅助审查"
,
text
:
"辅助审查"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Ai"
,
value
:
"AI"
,
disabled
:
false
,
},
{
id
:
"TEST"
,
label
:
"测试"
,
text
:
"测试"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Test"
,
value
:
"TEST"
,
disabled
:
false
,
},
{
id
:
"GJ_HFDF"
,
label
:
"高检-回复答复"
,
text
:
"高检-回复答复"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Gj_hfdf"
,
"color"
:
"rgba(0, 98, 255, 1)"
,
value
:
"GJ_HFDF"
,
disabled
:
false
,
},
{
id
:
"GJ_WSXF"
,
label
:
"高检-网上信访"
,
text
:
"高检-网上信访"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Gj_wsxf"
,
"color"
:
"rgba(0, 98, 255, 1)"
,
value
:
"GJ_WSXF"
,
disabled
:
false
,
},
{
id
:
"AGPC"
,
label
:
"案管-评查"
,
text
:
"案管-评查"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agpc"
,
value
:
"AGPC"
,
disabled
:
false
,
},
{
id
:
"AGQL"
,
label
:
"案管-权利"
,
text
:
"案管-权利"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agql"
,
value
:
"AGQL"
,
disabled
:
false
,
},
{
id
:
"AGLC"
,
label
:
"案管-流程"
,
text
:
"案管-流程"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Aglc"
,
value
:
"AGLC"
,
disabled
:
false
,
},
{
id
:
"AGPC2"
,
label
:
"案管-评查2.0"
,
text
:
"案管-评查2.0"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agpc2"
,
value
:
"AGPC2"
,
disabled
:
false
,
},
{
id
:
"AGQL2"
,
label
:
"案管-权利2.0"
,
text
:
"案管-权利2.0"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Agql2"
,
value
:
"AGQL2"
,
disabled
:
false
,
},
{
id
:
"AGLC2"
,
label
:
"案管-流程2.0"
,
text
:
"案管-流程2.0"
,
"class"
:
""
,
"data"
:
""
,
"codename"
:
"Aglc2"
,
value
:
"AGLC2"
,
disabled
:
false
,
},
]
"srfkey"
:
"CLRuleGroup"
,
"emptytext"
:
""
,
"codelisttype"
:
"dynamic"
,
"appdataentity"
:
""
,
"appdedataset"
:
""
,
"items"
:
[]
},
{
srfkey
:
"AppType"
,
...
...
app_web/src/widgets/rule-engine/main-form/main-form-base.vue
浏览文件 @
ecf67a75
...
...
@@ -31,7 +31,7 @@
:localContext =
'
{ }'
:localParam ='{ }'
tag='CLRuleGroup'
codelistType='
STAT
IC'
codelistType='
DYNAM
IC'
valueSeparator=";"
mode="str"
name="rulegroup"
...
...
app_web/src/widgets/rule-engine/main-grid/main-grid-base.vue
浏览文件 @
ecf67a75
...
...
@@ -42,7 +42,7 @@
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.rulegroup"
tag=
'CLRuleGroup'
codelistType=
'
STAT
IC'
renderMode=
"STR"
valueSeparator=
";"
textSeparator=
"、"
></codelist>
<codelist
:value=
"row.rulegroup"
tag=
'CLRuleGroup'
codelistType=
'
DYNAM
IC'
renderMode=
"STR"
valueSeparator=
";"
textSeparator=
"、"
></codelist>
</
template
>
</template>
</el-table-column>
...
...
@@ -1168,7 +1168,7 @@ export default class MainBase extends Vue implements ControlInterface {
{
name
:
'rulegroup'
,
srfkey
:
'CLRuleGroup'
,
codelistType
:
'
STAT
IC'
,
codelistType
:
'
DYNAM
IC'
,
textSeparator
:
'、'
,
renderMode
:
'string'
,
valueSeparator
:
";"
,
...
...
app_web/src/widgets/rule-item/main-form/main-form-base.vue
浏览文件 @
ecf67a75
...
...
@@ -73,7 +73,7 @@
:localContext =
'
{ }'
:localParam ='{ }'
tag='CLRuleGroup'
codelistType='
STAT
IC'
codelistType='
DYNAM
IC'
valueSeparator=";"
mode="str"
name="rulegroup"
...
...
app_web/src/widgets/rule-item/main-grid/main-grid-base.vue
浏览文件 @
ecf67a75
...
...
@@ -54,7 +54,7 @@
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.rulegroup"
tag=
'CLRuleGroup'
codelistType=
'
STAT
IC'
renderMode=
"STR"
valueSeparator=
";"
textSeparator=
"、"
></codelist>
<codelist
:value=
"row.rulegroup"
tag=
'CLRuleGroup'
codelistType=
'
DYNAM
IC'
renderMode=
"STR"
valueSeparator=
";"
textSeparator=
"、"
></codelist>
</
template
>
</template>
</el-table-column>
...
...
@@ -1196,7 +1196,7 @@ export default class MainBase extends Vue implements ControlInterface {
{
name
:
'rulegroup'
,
srfkey
:
'CLRuleGroup'
,
codelistType
:
'
STAT
IC'
,
codelistType
:
'
DYNAM
IC'
,
textSeparator
:
'、'
,
renderMode
:
'string'
,
valueSeparator
:
";"
,
...
...
ibzdst-core/src/main/resources/sysmodel/RuntimeDict.json
0 → 100644
浏览文件 @
ecf67a75
[
{
"name"
:
"规则分组"
,
"code"
:
"CLRuleGroup"
,
"group"
:
""
,
"memo"
:
""
,
"enable"
:
""
,
"items"
:[
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Time"
,
"value"
:
"TIME"
,
"label"
:
"时效预警(权利保障)"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Flow"
,
"value"
:
"FLOW"
,
"label"
:
"流程监控"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Rep"
,
"value"
:
"REP"
,
"label"
:
"汇总分析"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Check"
,
"value"
:
"CHECK"
,
"label"
:
"评查"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Ai"
,
"value"
:
"AI"
,
"label"
:
"辅助审查"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Test"
,
"value"
:
"TEST"
,
"label"
:
"测试"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Gj_hfdf"
,
"value"
:
"GJ_HFDF"
,
"label"
:
"高检-回复答复"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Gj_wsxf"
,
"value"
:
"GJ_WSXF"
,
"label"
:
"高检-网上信访"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Agpc"
,
"value"
:
"AGPC"
,
"label"
:
"案管-评查"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Agql"
,
"value"
:
"AGQL"
,
"label"
:
"案管-权利"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Aglc"
,
"value"
:
"AGLC"
,
"label"
:
"案管-流程"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Agpc2"
,
"value"
:
"AGPC2"
,
"label"
:
"案管-评查2.0"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Agql2"
,
"value"
:
"AGQL2"
,
"label"
:
"案管-权利2.0"
,
"disabled"
:
""
,
"showorder"
:
""
},
{
"catalog_id"
:
"CLRuleGroup"
,
"catalog_name"
:
"规则分组"
,
"value_key"
:
"CLRuleGroup-Aglc2"
,
"value"
:
"AGLC2"
,
"label"
:
"案管-流程2.0"
,
"disabled"
:
""
,
"showorder"
:
""
}
]
}
]
ibzdst-util/src/main/java/cn/ibizlab/util/client/IBZDictFallback.java
0 → 100644
浏览文件 @
ecf67a75
package
cn
.
ibizlab
.
util
.
client
;
import
com.alibaba.fastjson.JSONArray
;
import
org.springframework.stereotype.Component
;
@Component
public
class
IBZDictFallback
implements
IBZDictFeignClient
{
@Override
public
Boolean
syncRuntimeDict
(
JSONArray
catalogs
)
{
return
null
;
}
}
ibzdst-util/src/main/java/cn/ibizlab/util/client/IBZDictFeignClient.java
0 → 100644
浏览文件 @
ecf67a75
package
cn
.
ibizlab
.
util
.
client
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
java.util.List
;
import
java.util.Map
;
@FeignClient
(
value
=
"${ibiz.ref.service.dict:ibzdict-api}"
,
contextId
=
"dict"
,
fallback
=
IBZDictFallback
.
class
)
public
interface
IBZDictFeignClient
{
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictionarys/catalogs/sync"
)
Boolean
syncRuntimeDict
(
@RequestBody
JSONArray
catalogs
);
}
ibzdst-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
浏览文件 @
ecf67a75
...
...
@@ -6,38 +6,6 @@ public class StaticDict {
/**
* 代码表[规则分组]
*/
@Getter
public
enum
CLRuleGroup
{
TIME
(
"TIME"
,
"时效预警(权利保障)"
),
FLOW
(
"FLOW"
,
"流程监控"
),
REP
(
"REP"
,
"汇总分析"
),
CHECK
(
"CHECK"
,
"评查"
),
AI
(
"AI"
,
"辅助审查"
),
TEST
(
"TEST"
,
"测试"
),
GJ_HFDF
(
"GJ_HFDF"
,
"高检-回复答复"
),
GJ_WSXF
(
"GJ_WSXF"
,
"高检-网上信访"
),
AGPC
(
"AGPC"
,
"案管-评查"
),
AGQL
(
"AGQL"
,
"案管-权利"
),
AGLC
(
"AGLC"
,
"案管-流程"
),
AGPC2
(
"AGPC2"
,
"案管-评查2.0"
),
AGQL2
(
"AGQL2"
,
"案管-权利2.0"
),
AGLC2
(
"AGLC2"
,
"案管-流程2.0"
);
private
String
value
;
private
String
text
;
private
String
valueSeparator
=
";"
;
private
String
textSeparator
=
"、"
;
private
String
emptyText
=
""
;
CLRuleGroup
(
String
value
,
String
text
)
{
this
.
value
=
value
;
this
.
text
=
text
;
}
}
/**
* 代码表[扩展表格单元格垂直对齐方式]
...
...
ibzdst-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
ecf67a75
...
...
@@ -41,6 +41,9 @@ public class PermissionSyncJob implements ApplicationRunner {
@Lazy
IBZLiteFeignClient
liteFeignClient
;
@Autowired
@Lazy
cn
.
ibizlab
.
util
.
client
.
IBZDictFeignClient
dictFeignClient
;
@Override
public
void
run
(
ApplicationArguments
args
)
{
...
...
@@ -78,5 +81,16 @@ public class PermissionSyncJob implements ApplicationRunner {
try
{
InputStream
runtimeDict
=
this
.
getClass
().
getResourceAsStream
(
"/sysmodel/RuntimeDict.json"
);
//获取当前系统所有实体资源能力
String
strRuntimeDict
=
IOUtils
.
toString
(
runtimeDict
,
"UTF-8"
);
if
(
dictFeignClient
.
syncRuntimeDict
(
JSONArray
.
parseArray
(
strRuntimeDict
)))
{
log
.
info
(
"推送系统预置代码表成功"
);
}
else
{
log
.
error
(
"推送系统预置代码表失败"
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"推送系统预置代码表失败"
);
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录