Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
aabe39cd
提交
aabe39cd
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
721260ee
变更
15
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
311 行增加
和
97 行删除
+311
-97
web-site-service-base.ts
app_WebSite/src/service/web-site/web-site-service-base.ts
+50
-50
Dockerfile
...al-app/businesscentral-app-crm/src/main/docker/Dockerfile
+1
-1
businesscentral-app-crm.yaml
...tral-app-crm/src/main/docker/businesscentral-app-crm.yaml
+1
-15
Dockerfile
...pp/businesscentral-app-website/src/main/docker/Dockerfile
+1
-1
businesscentral-app-website.yaml
...-website/src/main/docker/businesscentral-app-website.yaml
+1
-15
IAccountActiveLogic.java
...scentral/core/base/service/logic/IAccountActiveLogic.java
+18
-0
IAccountInactiveLogic.java
...entral/core/base/service/logic/IAccountInactiveLogic.java
+18
-0
AccountActiveLogicImpl.java
.../core/base/service/logic/impl/AccountActiveLogicImpl.java
+56
-0
AccountInactiveLogicImpl.java
...ore/base/service/logic/impl/AccountInactiveLogicImpl.java
+64
-0
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+10
-10
AccountActiveRule.drl
...ntral-core/src/main/resources/rules/AccountActiveRule.drl
+18
-0
AccountActiveRuleFlow.bpmn
...-core/src/main/resources/rules/AccountActiveRuleFlow.bpmn
+15
-0
AccountInactiveRule.drl
...ral-core/src/main/resources/rules/AccountInactiveRule.drl
+37
-0
AccountInactiveRuleFlow.bpmn
...ore/src/main/resources/rules/AccountInactiveRuleFlow.bpmn
+21
-0
config.xml
config.xml
+0
-5
未找到文件。
app_WebSite/src/service/web-site/web-site-service-base.ts
浏览文件 @
aabe39cd
...
@@ -62,6 +62,21 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -62,6 +62,21 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
let
websitechannelsData
:
any
=
[];
let
websitechannelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
...
@@ -92,21 +107,6 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -92,21 +107,6 @@ export default class WebSiteServiceBase extends EntityService {
}
}
}
}
masterData
.
websiteresources
=
websiteresourcesData
;
masterData
.
websiteresources
=
websiteresourcesData
;
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -116,9 +116,9 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -116,9 +116,9 @@ export default class WebSiteServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -133,6 +133,21 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -133,6 +133,21 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
let
websitechannelsData
:
any
=
[];
let
websitechannelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
...
@@ -163,26 +178,11 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -163,26 +178,11 @@ export default class WebSiteServiceBase extends EntityService {
}
}
}
}
masterData
.
websiteresources
=
websiteresourcesData
;
masterData
.
websiteresources
=
websiteresourcesData
;
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/websites/
${
context
.
website
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/websites/
${
context
.
website
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -210,9 +210,9 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -210,9 +210,9 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/
${
context
.
website
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/
${
context
.
website
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -228,9 +228,9 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -228,9 +228,9 @@ export default class WebSiteServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/getdraft`
,
isloading
);
res
.
data
.
website
=
data
.
website
;
res
.
data
.
website
=
data
.
website
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -258,6 +258,21 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -258,6 +258,21 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
let
websitechannelsData
:
any
=
[];
let
websitechannelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
...
@@ -288,26 +303,11 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -288,26 +303,11 @@ export default class WebSiteServiceBase extends EntityService {
}
}
}
}
masterData
.
websiteresources
=
websiteresourcesData
;
masterData
.
websiteresources
=
websiteresourcesData
;
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites/
${
context
.
website
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites/
${
context
.
website
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
...
This diff is collapsed.
Click to expand it.
businesscentral-app/businesscentral-app-crm/src/main/docker/Dockerfile
浏览文件 @
aabe39cd
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-crm.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-crm.jar
EXPOSE
10324
EXPOSE
8080
ADD
businesscentral-app-crm.jar /businesscentral-app-crm.jar
ADD
businesscentral-app-crm.jar /businesscentral-app-crm.jar
This diff is collapsed.
Click to expand it.
businesscentral-app/businesscentral-app-crm/src/main/docker/businesscentral-app-crm.yaml
浏览文件 @
aabe39cd
...
@@ -3,23 +3,9 @@ services:
...
@@ -3,23 +3,9 @@ services:
businesscentral-app-crm
:
businesscentral-app-crm
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-crm:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-crm:latest
ports
:
ports
:
-
"
10324:10324
"
-
"
8080:8080
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10324
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
This diff is collapsed.
Click to expand it.
businesscentral-app/businesscentral-app-website/src/main/docker/Dockerfile
浏览文件 @
aabe39cd
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-website.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-website.jar
EXPOSE
10324
EXPOSE
8080
ADD
businesscentral-app-website.jar /businesscentral-app-website.jar
ADD
businesscentral-app-website.jar /businesscentral-app-website.jar
This diff is collapsed.
Click to expand it.
businesscentral-app/businesscentral-app-website/src/main/docker/businesscentral-app-website.yaml
浏览文件 @
aabe39cd
...
@@ -3,23 +3,9 @@ services:
...
@@ -3,23 +3,9 @@ services:
businesscentral-app-website
:
businesscentral-app-website
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-website:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-website:latest
ports
:
ports
:
-
"
10324:10324
"
-
"
8080:8080
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10324
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/service/logic/IAccountActiveLogic.java
0 → 100644
浏览文件 @
aabe39cd
package
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
logic
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.businesscentral.core.base.domain.Account
;
/**
* 关系型数据实体[Active] 对象
*/
public
interface
IAccountActiveLogic
{
void
execute
(
Account
account
)
;
}
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/service/logic/IAccountInactiveLogic.java
0 → 100644
浏览文件 @
aabe39cd
package
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
logic
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.businesscentral.core.base.domain.Account
;
/**
* 关系型数据实体[Inactive] 对象
*/
public
interface
IAccountInactiveLogic
{
void
execute
(
Account
account
)
;
}
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/service/logic/impl/AccountActiveLogicImpl.java
0 → 100644
浏览文件 @
aabe39cd
package
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
logic
.
impl
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.businesscentral.core.base.service.logic.IAccountActiveLogic
;
import
cn.ibizlab.businesscentral.core.base.domain.Account
;
/**
* 关系型数据实体[Active] 对象
*/
@Slf4j
@Service
public
class
AccountActiveLogicImpl
implements
IAccountActiveLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
public
void
execute
(
Account
et
){
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"accountactivedefault"
,
et
);
kieSession
.
setGlobal
(
"iBzSysAccountDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.businesscentral.core.base.service.logic.accountactive"
);
}
catch
(
Exception
e
){
throw
new
RuntimeException
(
"执行[激活]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
kieSession
.
destroy
();
}
}
}
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/service/logic/impl/AccountInactiveLogicImpl.java
0 → 100644
浏览文件 @
aabe39cd
package
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
logic
.
impl
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.businesscentral.core.base.service.logic.IAccountInactiveLogic
;
import
cn.ibizlab.businesscentral.core.base.domain.Account
;
/**
* 关系型数据实体[Inactive] 对象
*/
@Slf4j
@Service
public
class
AccountInactiveLogicImpl
implements
IAccountInactiveLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
accountservice
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
getAccountService
()
{
return
this
.
accountservice
;
}
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
public
void
execute
(
Account
et
){
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"accountinactivedefault"
,
et
);
kieSession
.
setGlobal
(
"accountservice"
,
accountservice
);
kieSession
.
setGlobal
(
"iBzSysAccountDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.businesscentral.core.base.service.logic.accountinactive"
);
}
catch
(
Exception
e
){
throw
new
RuntimeException
(
"执行[停用]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
kieSession
.
destroy
();
}
}
}
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
aabe39cd
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!--输出实体[ACCOUNT]数据结构 -->
<!--输出实体[ACCOUNT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-account-4
03
-1"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-account-4
22
-1"
>
<createTable
tableName=
"ACCOUNT"
>
<createTable
tableName=
"ACCOUNT"
>
<column
name=
"ADDRESS1_PRIMARYCONTACTNAME"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"ADDRESS1_PRIMARYCONTACTNAME"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</column>
...
@@ -10978,31 +10978,31 @@
...
@@ -10978,31 +10978,31 @@
</changeSet>
</changeSet>
<!--输出实体[ACCOUNT]外键关系 -->
<!--输出实体[ACCOUNT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-132"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-132"
>
<addForeignKeyConstraint
baseColumnNames=
"PARENTACCOUNTID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__ACCOUNT__PARENT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ACCOUNTID"
referencedTableName=
"ACCOUNT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PARENTACCOUNTID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__ACCOUNT__PARENT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ACCOUNTID"
referencedTableName=
"ACCOUNT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-133"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-133"
>
<addForeignKeyConstraint
baseColumnNames=
"PRIMARYCONTACTID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__CONTACT__PRIMAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CONTACTID"
referencedTableName=
"CONTACT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PRIMARYCONTACTID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__CONTACT__PRIMAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CONTACTID"
referencedTableName=
"CONTACT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-134"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-134"
>
<addForeignKeyConstraint
baseColumnNames=
"PREFERREDEQUIPMENTID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__EQUIPMENT__PREF"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EQUIPMENTID"
referencedTableName=
"EQUIPMENT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PREFERREDEQUIPMENTID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__EQUIPMENT__PREF"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EQUIPMENTID"
referencedTableName=
"EQUIPMENT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-135"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-135"
>
<addForeignKeyConstraint
baseColumnNames=
"ORIGINATINGLEADID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__LEAD__ORIGINATI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"LEADID"
referencedTableName=
"LEAD"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"ORIGINATINGLEADID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__LEAD__ORIGINATI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"LEADID"
referencedTableName=
"LEAD"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-136"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-136"
>
<addForeignKeyConstraint
baseColumnNames=
"DEFAULTPRICELEVELID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__PRICELEVEL__DEF"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRICELEVELID"
referencedTableName=
"PRICELEVEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"DEFAULTPRICELEVELID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__PRICELEVEL__DEF"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRICELEVELID"
referencedTableName=
"PRICELEVEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-137"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-137"
>
<addForeignKeyConstraint
baseColumnNames=
"PREFERREDSERVICEID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__SERVICE__PREFER"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SERVICEID"
referencedTableName=
"SERVICE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PREFERREDSERVICEID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__SERVICE__PREFER"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SERVICEID"
referencedTableName=
"SERVICE"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-138"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-138"
>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-139"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-139"
>
<addForeignKeyConstraint
baseColumnNames=
"TERRITORYID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__TERRITORY__TERR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TERRITORYID"
referencedTableName=
"TERRITORY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TERRITORYID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__TERRITORY__TERR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TERRITORYID"
referencedTableName=
"TERRITORY"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
03
-140"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-account-4
22
-140"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__TRANSACTIONCURR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"ACCOUNT"
constraintName=
"DER1N_ACCOUNT__TRANSACTIONCURR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[ACTIVITYMIMEATTACHMENT]外键关系 -->
<!--输出实体[ACTIVITYMIMEATTACHMENT]外键关系 -->
...
...
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/resources/rules/AccountActiveRule.drl
0 → 100644
浏览文件 @
aabe39cd
package
cn
.
ibizlab
.
businesscentral
.
base
.
logic
.
accountlogic
.
active
;
import
java
.
util
.
Map
;
import
java
.
util
.
HashMap
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
domain
.
Account
accountactivedefault
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
iBzSysAccountDefaultService
;
global
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
curuser
;
no
-
loop
//
逻辑处理节点
[
开始
]
rule
"begin"
ruleflow
-
group
"accountactivebegin"
when
then
end
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/resources/rules/AccountActiveRuleFlow.bpmn
0 → 100644
浏览文件 @
aabe39cd
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.businesscentral.core.base.service.logic.accountactive"
isClosed=
"false"
isExecutable=
"true"
name=
"ScoreRule"
processType=
"Private"
tns:packageName=
"cn.ibizlab.businesscentral.core.base.service.logic.accountactive"
>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.businesscentral.util.helper.RuleUtils"
/>
<tns:global
identifier=
"accountactivedefault"
type=
"cn.ibizlab.businesscentral.core.base.domain.Account"
/>
</extensionElements>
<startEvent
id=
"BEBE0B69-F45C-4F13-94CF-B99C8EBC1958"
isInterrupting=
"true"
/>
<endEvent
id=
"BEBE0B69-F45C-4F13-94CF-B99C8EBC1958_End"
name=
"End"
/>
<sequenceFlow
id=
"BEBE0B69-F45C-4F13-94CF-B99C8EBC1958_End_Line"
sourceRef=
"BEBE0B69-F45C-4F13-94CF-B99C8EBC1958"
targetRef=
"BEBE0B69-F45C-4F13-94CF-B99C8EBC1958_End"
/>
</process>
</definitions>
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/resources/rules/AccountInactiveRule.drl
0 → 100644
浏览文件 @
aabe39cd
package
cn
.
ibizlab
.
businesscentral
.
base
.
logic
.
accountlogic
.
inactive
;
import
java
.
util
.
Map
;
import
java
.
util
.
HashMap
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
domain
.
Account
accountinactivedefault
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
accountservice
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
base
.
service
.
IAccountService
iBzSysAccountDefaultService
;
global
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
curuser
;
no
-
loop
//
逻辑处理节点
[
开始
]
rule
"begin"
ruleflow
-
group
"accountinactivebegin"
when
then
end
//
逻辑处理节点
[
准备参数
]
rule
"prepareparam1"
ruleflow
-
group
"accountinactiveprepareparam1"
when
then
accountinactivedefault
.
set
(
"statuscode"
,
"2"
);
update
(
accountinactivedefault
);//
更新
fact
中变量值
end
//
逻辑处理节点
[
更新客户状态
]
rule
"deaction1"
ruleflow
-
group
"accountinactivedeaction1"
when
then
accountservice
.
update
(
accountinactivedefault
);
update
(
accountinactivedefault
);//
更新
fact
中变量值
end
This diff is collapsed.
Click to expand it.
businesscentral-core/src/main/resources/rules/AccountInactiveRuleFlow.bpmn
0 → 100644
浏览文件 @
aabe39cd
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.businesscentral.core.base.service.logic.accountinactive"
isClosed=
"false"
isExecutable=
"true"
name=
"ScoreRule"
processType=
"Private"
tns:packageName=
"cn.ibizlab.businesscentral.core.base.service.logic.accountinactive"
>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.businesscentral.util.helper.RuleUtils"
/>
<tns:global
identifier=
"accountinactivedefault"
type=
"cn.ibizlab.businesscentral.core.base.domain.Account"
/>
</extensionElements>
<startEvent
id=
"63D03E37-0794-4554-BBF9-6C0A60307A78"
isInterrupting=
"true"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"accountinactiveprepareparam1"
id=
"79BFB90E-EBE5-4C91-98CE-F07CE05CADD2"
implementation=
"http://www.jboss.org/drools/rule"
name=
"准备参数"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"accountinactivedeaction1"
id=
"470E9D72-5DAF-42C7-B0BD-0E48BB6D0801"
implementation=
"http://www.jboss.org/drools/rule"
name=
"更新客户状态"
/>
<endEvent
id=
"470E9D72-5DAF-42C7-B0BD-0E48BB6D0801_End"
name=
"End"
/>
<sequenceFlow
id=
"470E9D72-5DAF-42C7-B0BD-0E48BB6D0801_End_Line"
sourceRef=
"470E9D72-5DAF-42C7-B0BD-0E48BB6D0801"
targetRef=
"470E9D72-5DAF-42C7-B0BD-0E48BB6D0801_End"
/>
<sequenceFlow
id=
"B7F973AD-9B45-4B02-96E9-208F1F62BA87"
sourceRef=
"63D03E37-0794-4554-BBF9-6C0A60307A78"
targetRef=
"79BFB90E-EBE5-4C91-98CE-F07CE05CADD2"
>
</sequenceFlow>
<sequenceFlow
id=
"F5EEBA12-E0B4-4D57-A3FA-C4FE306F24F4"
sourceRef=
"79BFB90E-EBE5-4C91-98CE-F07CE05CADD2"
targetRef=
"470E9D72-5DAF-42C7-B0BD-0E48BB6D0801"
>
</sequenceFlow>
</process>
</definitions>
This diff is collapsed.
Click to expand it.
config.xml
浏览文件 @
aabe39cd
...
@@ -37,11 +37,6 @@
...
@@ -37,11 +37,6 @@
git clone -b master $para2 ibizbusinesscentral/
git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/
cd ibizbusinesscentral/
mvn clean package -Pwebsite
cd businesscentral-app/businesscentral-app-website
mvn -Pwebsite docker:build
mvn -Pwebsite docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-app-website.yaml iBizEE --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录