Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
60d9c078
提交
60d9c078
编写于
2月 23, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MoneyQ 发布系统代码 [后台服务,演示应用]
上级
8f8175e6
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
121 行增加
和
121 行删除
+121
-121
count-money-logic-base.ts
...eb/src/service/ibizorder-detail/count-money-logic-base.ts
+8
-8
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+4
-4
usr2-dataview-base.vue
...src/widgets/ibizbook/usr2-dataview/usr2-dataview-base.vue
+2
-2
main-grid-base.vue
...src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
+6
-6
IBIZOrderDetail.json
...odel/PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail.json
+25
-25
CountMoney.json
...PSDATAENTITIES/IBIZOrderDetail/PSDELOGICS/CountMoney.json
+25
-25
CountMoney.json.bpmn
...AENTITIES/IBIZOrderDetail/PSDELOGICS/CountMoney.json.bpmn
+3
-3
CountMoney.json.drl
...TAENTITIES/IBIZOrderDetail/PSDELOGICS/CountMoney.json.drl
+19
-19
IBIZOrderDetail.json
...odel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrderDetail.json
+25
-25
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+1
-1
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
未找到文件。
app_Web/src/service/ibizorder-detail/count-money-logic-base.ts
浏览文件 @
60d9c078
...
...
@@ -91,26 +91,26 @@ export default class CountMoneyLogicBase {
}
/**
*
直接SQL并循环调用
*
统计金额
*
* @param context 应用上下文
* @param params 传入参数
*/
private
async
executeR
AWSQLANDLOOPCALL
1
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
// RAWSQL
ANDLOOP
CALL暂未支持
console
.
log
(
"RAWSQL
ANDLOOP
CALL暂未支持"
);
private
async
executeR
awsqlcall
1
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
// RAWSQLCALL暂未支持
console
.
log
(
"RAWSQLCALL暂未支持"
);
return
this
.
paramsMap
.
get
(
this
.
defaultParamName
).
data
;
}
/**
*
统计金额
*
直接SQL并循环调用
*
* @param context 应用上下文
* @param params 传入参数
*/
private
async
executeR
awsqlcall
1
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
// RAWSQLCALL暂未支持
console
.
log
(
"RAWSQLCALL暂未支持"
);
private
async
executeR
AWSQLANDLOOPCALL
1
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
// RAWSQL
ANDLOOP
CALL暂未支持
console
.
log
(
"RAWSQL
ANDLOOP
CALL暂未支持"
);
return
this
.
paramsMap
.
get
(
this
.
defaultParamName
).
data
;
}
...
...
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
60d9c078
...
...
@@ -719,7 +719,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -755,7 +755,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
60d9c078
<
template
>
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'searchform'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'
quick
searchform'
style=
""
>
<input
style=
"display:none;"
/>
<row>
<i-col
span=
"20"
class=
"form-content"
>
...
...
@@ -519,7 +519,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
* @memberof QUICKSEARCHFORMBase
*/
public
formValidateStatus
():
boolean
{
const
form
:
any
=
this
.
$refs
.
searchform
;
const
form
:
any
=
this
.
$refs
.
quick
searchform
;
let
validatestate
:
boolean
=
true
;
form
.
validate
((
valid
:
boolean
)
=>
{
validatestate
=
valid
?
true
:
false
;
...
...
@@ -673,7 +673,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
UsrListView_plugin
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
ListView
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -709,7 +709,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
UsrListView_plugin
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
ListView
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/usr2-dataview/usr2-dataview-base.vue
浏览文件 @
60d9c078
...
...
@@ -851,7 +851,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
if
(
this
.
sortField
!==
field
){
this
.
sortField
=
field
;
this
.
sortDir
=
'asc'
;
}
else
if
(
this
.
sortDir
===
'asc'
){
}
else
if
(
this
.
sortDir
===
'asc'
){
this
.
sortDir
=
'desc'
;
}
else
if
(
this
.
sortDir
===
'desc'
){
this
.
sortDir
=
''
;
...
...
@@ -1308,7 +1308,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
public
handleClick
(
args
:
any
)
{
args
.
isselected
=
!
args
.
isselected
;
if
(
this
.
isSingleSelect
)
{
j
this
.
items
.
forEach
((
item
:
any
)
=>
{
this
.
items
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srfkey
!==
args
.
srfkey
){
item
.
isselected
=
false
;
}
...
...
app_Web/src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
浏览文件 @
60d9c078
...
...
@@ -1011,7 +1011,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
fetchAction
)
{
this
.
$Notice
.
error
({
title
:
this
.
$t
(
"app.commonWords.wrong"
)
as
string
,
desc
:
"IBIZOrderDetail
SGridView
"
+
(
this
.
$t
(
"app.gridpage.notConfig.fetchAction"
)
as
string
),
desc
:
"IBIZOrderDetail
GridView9
"
+
(
this
.
$t
(
"app.gridpage.notConfig.fetchAction"
)
as
string
),
});
return
;
}
...
...
@@ -1140,7 +1140,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
removeAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
...
...
@@ -1254,7 +1254,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
!
arg
){
...
...
@@ -2151,7 +2151,7 @@ export default class MainBase extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
))
{
if
(
!
this
.
createAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
...
...
@@ -2160,7 +2160,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
...
...
@@ -2236,7 +2236,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
...
...
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail.json
浏览文件 @
60d9c078
...
...
@@ -3799,31 +3799,6 @@
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/Begin"
,
"topPos"
:
110
,
"parallelOutput"
:
true
},
{
"codeName"
:
"RAWSQLANDLOOPCALL1"
,
"getDstPSDEAction"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos"
:
230
,
"logicNodeType"
:
"RAWSQLANDLOOPCALL"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"name"
:
"直接SQL并循环调用"
,
"getPSSysDBScheme"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"sql"
:
"select 1 as AMOUNT from dual"
,
"getSrcPSDELogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
},
"topPos"
:
524
},
{
"codeName"
:
"Rawsqlcall1"
,
"getDstPSDELogicParam"
:
{
...
...
@@ -3861,6 +3836,31 @@
"sql"
:
"select (?*?) as AMOUNT from dual"
,
"topPos"
:
312
,
"fillDstLogicParam"
:
true
},
{
"codeName"
:
"RAWSQLANDLOOPCALL1"
,
"getDstPSDEAction"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos"
:
230
,
"logicNodeType"
:
"RAWSQLANDLOOPCALL"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"name"
:
"直接SQL并循环调用"
,
"getPSSysDBScheme"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"sql"
:
"select 1 as AMOUNT from dual"
,
"getSrcPSDELogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
},
"topPos"
:
524
},
{
"code"
:
"_default.amount = _default.quantity * _default.unitprice"
,
"codeName"
:
"RAWSFCODE1"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail/PSDELOGICS/CountMoney.json
浏览文件 @
60d9c078
...
...
@@ -25,31 +25,6 @@
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/Begin"
,
"topPos"
:
110
,
"parallelOutput"
:
true
},
{
"codeName"
:
"RAWSQLANDLOOPCALL1"
,
"getDstPSDEAction"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos"
:
230
,
"logicNodeType"
:
"RAWSQLANDLOOPCALL"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"name"
:
"直接SQL并循环调用"
,
"getPSSysDBScheme"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"sql"
:
"select 1 as AMOUNT from dual"
,
"getSrcPSDELogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
},
"topPos"
:
524
},
{
"codeName"
:
"Rawsqlcall1"
,
"getDstPSDELogicParam"
:
{
...
...
@@ -87,6 +62,31 @@
"sql"
:
"select (?*?) as AMOUNT from dual"
,
"topPos"
:
312
,
"fillDstLogicParam"
:
true
},
{
"codeName"
:
"RAWSQLANDLOOPCALL1"
,
"getDstPSDEAction"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos"
:
230
,
"logicNodeType"
:
"RAWSQLANDLOOPCALL"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"name"
:
"直接SQL并循环调用"
,
"getPSSysDBScheme"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1"
,
"sql"
:
"select 1 as AMOUNT from dual"
,
"getSrcPSDELogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
},
"topPos"
:
524
},
{
"code"
:
"_default.amount = _default.quantity * _default.unitprice"
,
"codeName"
:
"RAWSFCODE1"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail/PSDELOGICS/CountMoney.json.bpmn
浏览文件 @
60d9c078
...
...
@@ -12,12 +12,12 @@
<tns:global
identifier=
"ibizorderdetailcountmoneydefault"
type=
"cn.ibizlab.core.sample.domain.IBIZOrderDetail"
/>
</extensionElements>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ibizorderdetailcountmoneyrawsqlandloopcall1"
id=
"rawsqlandloopcall1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"直接SQL并循环调用"
/>
<endEvent
id=
"rawsqlandloopcall1_end"
name=
"end"
/>
<sequenceFlow
id=
"rawsqlandloopcall1_end_line"
sourceRef=
"rawsqlandloopcall1"
targetRef=
"rawsqlandloopcall1_end"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ibizorderdetailcountmoneyrawsqlcall1"
id=
"rawsqlcall1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"统计金额"
/>
<endEvent
id=
"rawsqlcall1_end"
name=
"end"
/>
<sequenceFlow
id=
"rawsqlcall1_end_line"
sourceRef=
"rawsqlcall1"
targetRef=
"rawsqlcall1_end"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ibizorderdetailcountmoneyrawsqlandloopcall1"
id=
"rawsqlandloopcall1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"直接SQL并循环调用"
/>
<endEvent
id=
"rawsqlandloopcall1_end"
name=
"end"
/>
<sequenceFlow
id=
"rawsqlandloopcall1_end_line"
sourceRef=
"rawsqlandloopcall1"
targetRef=
"rawsqlandloopcall1_end"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ibizorderdetailcountmoneyrawsfcode1"
id=
"rawsfcode1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"统计金额(脚本)"
/>
<endEvent
id=
"rawsfcode1_end"
name=
"end"
/>
<sequenceFlow
id=
"rawsfcode1_end_line"
sourceRef=
"rawsfcode1"
targetRef=
"rawsfcode1_end"
/>
...
...
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail/PSDELOGICS/CountMoney.json.drl
浏览文件 @
60d9c078
...
...
@@ -20,6 +20,25 @@ package cn.ibizlab.sample.logic.ibizorderdetaillogic.countmoney;
then
end
//
逻辑处理节点
[
统计金额
]
rule
"rawsqlcall1"
ruleflow
-
group
"ibizorderdetailcountmoneyrawsqlcall1"
when
then
Map
param
=
new
HashMap
();
param
.
put
(
"param0"
,
ibizorderdetailcountmoneydefault
.
get
(
"quantity"
));
param
.
put
(
"param1"
,
ibizorderdetailcountmoneydefault
.
get
(
"unitprice"
));
String
strSql
=
"select (#{et.param0}*#{et.param1}) as AMOUNT from dual"
;
java
.
util
.
List
<
JSONObject
>
entities
=
iBzSysIbizorderdetailDefaultService
.
select
(
strSql
,
param
);//
SQL
调用
if
(
entities
.
size
()>
0
){
JSONObject
entity
=
entities
.
get
(
0
);
for
(
Map
.
Entry
entry
:
entity
.
entrySet
())
{
ibizorderdetailcountmoneydefault
.
set
(
String
.
valueOf
(
entry
.
getKey
()),
entry
.
getValue
());
}
}
update
(
ibizorderdetailcountmoneydefault
);//
更新
fact
中变量值
end
//
逻辑处理节点
[
直接
sql
并循环调用
]
rule
"rawsqlandloopcall1"
ruleflow
-
group
"ibizorderdetailcountmoneyrawsqlandloopcall1"
...
...
@@ -40,25 +59,6 @@ package cn.ibizlab.sample.logic.ibizorderdetaillogic.countmoney;
update
(
ibizorderdetailcountmoneydefault
);//
更新
fact
中变量值
end
//
逻辑处理节点
[
统计金额
]
rule
"rawsqlcall1"
ruleflow
-
group
"ibizorderdetailcountmoneyrawsqlcall1"
when
then
Map
param
=
new
HashMap
();
param
.
put
(
"param0"
,
ibizorderdetailcountmoneydefault
.
get
(
"quantity"
));
param
.
put
(
"param1"
,
ibizorderdetailcountmoneydefault
.
get
(
"unitprice"
));
String
strSql
=
"select (#{et.param0}*#{et.param1}) as AMOUNT from dual"
;
java
.
util
.
List
<
JSONObject
>
entities
=
iBzSysIbizorderdetailDefaultService
.
select
(
strSql
,
param
);//
SQL
调用
if
(
entities
.
size
()>
0
){
JSONObject
entity
=
entities
.
get
(
0
);
for
(
Map
.
Entry
entry
:
entity
.
entrySet
())
{
ibizorderdetailcountmoneydefault
.
set
(
String
.
valueOf
(
entry
.
getKey
()),
entry
.
getValue
());
}
}
update
(
ibizorderdetailcountmoneydefault
);//
更新
fact
中变量值
end
//
逻辑处理节点
[
统计金额(脚本)
]
rule
"rawsfcode1"
ruleflow
-
group
"ibizorderdetailcountmoneyrawsfcode1"
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrderDetail.json
浏览文件 @
60d9c078
...
...
@@ -2652,31 +2652,6 @@
"rTMOSFilePath"
:
"pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/Begin"
,
"topPos"
:
110
,
"parallelOutput"
:
true
},
{
"codeName"
:
"RAWSQLANDLOOPCALL1"
,
"getDstPSDEAction"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos"
:
230
,
"logicNodeType"
:
"RAWSQLANDLOOPCALL"
,
"mOSFilePath"
:
"pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1"
,
"name"
:
"直接SQL并循环调用"
,
"getPSSysDBScheme"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1"
,
"sql"
:
"select 1 as AMOUNT from dual"
,
"getSrcPSDELogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
},
"topPos"
:
524
},
{
"codeName"
:
"Rawsqlcall1"
,
"getDstPSDELogicParam"
:
{
...
...
@@ -2714,6 +2689,31 @@
"sql"
:
"select (?*?) as AMOUNT from dual"
,
"topPos"
:
312
,
"fillDstLogicParam"
:
true
},
{
"codeName"
:
"RAWSQLANDLOOPCALL1"
,
"getDstPSDEAction"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos"
:
230
,
"logicNodeType"
:
"RAWSQLANDLOOPCALL"
,
"mOSFilePath"
:
"pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1"
,
"name"
:
"直接SQL并循环调用"
,
"getPSSysDBScheme"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1"
,
"sql"
:
"select 1 as AMOUNT from dual"
,
"getSrcPSDELogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
},
"topPos"
:
524
},
{
"code"
:
"_default.amount = _default.quantity * _default.unitprice"
,
"codeName"
:
"RAWSFCODE1"
,
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
60d9c078
...
...
@@ -393,7 +393,7 @@
<!--输出实体[IBIZORDERDETAIL]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorderdetail-1
78
-14"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorderdetail-1
80
-14"
>
<createTable
tableName=
"T_IBIZORDERDETAIL"
>
<column
name=
"IBIZORDERDETAILNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
60d9c078
...
...
@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDERDETAIL]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorderdetail-1
78
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorderdetail-1
80
-8"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDERDETAIL"
>
<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID ]]>
</createView>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录