Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
86c02326
提交
86c02326
编写于
9月 17, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
补充附加行为
上级
24f48a5c
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
40 行增加
和
8 行删除
+40
-8
%DE%ServiceImpl.java.ftl
.../core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
+40
-8
未找到文件。
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
浏览文件 @
86c02326
...
@@ -1990,9 +1990,13 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
...
@@ -1990,9 +1990,13 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#
comment
>
实体行为附加逻辑
</#
comment
>
<#
comment
>
实体行为附加逻辑
</#
comment
>
<#
if
deAction
.
getPSDEActionLogics
()??>
<#
if
deAction
.
getPSDEActionLogics
()??>
<#
list
deAction
.
getPSDEActionLogics
()
as
deActionLogic
>
<#
list
deAction
.
getPSDEActionLogics
()
as
deActionLogic
>
<#
if
deActionLogic
.
isValid
()==
true
>
<#
if
deActionLogic
.
isInternalLogic
()>
<#
if
deActionLogic
.
isInternalLogic
()>
<#
assign
deLogic
=
deActionLogic
.
getPSDELogic
()>
<#
assign
deLogic
=
deActionLogic
.
getPSDELogic
()>
<@
importDELogic
deLogic
/>
<@
importDELogic
deLogic
/>
<#
elseif
(
deActionLogic
.
getDstPSDE
()
!'')!='' && (deActionLogic.getDstPSDEAction()!'')!=''>
<@
importDEAction
deActionLogic
/>
</#
if
>
</#
if
>
</#
if
>
</#
list
>
</#
list
>
</#
if
>
</#
if
>
...
@@ -2297,24 +2301,41 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
...
@@ -2297,24 +2301,41 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#
comment
>
附加逻辑
-
操作前
</#
comment
>
<#
comment
>
附加逻辑
-
操作前
</#
comment
>
<#
macro
addBoforeLogic
deaction
>
<#
macro
addBoforeLogic
deaction
>
<#
if
deaction
.
getPSDEActionLogics
()??>
<#
if
deaction
.
get
Before
PSDEActionLogics
()??>
<#
list
deaction
.
getPSDEActionLogics
()
as
actionlogic
>
<#
list
deaction
.
get
Before
PSDEActionLogics
()
as
actionlogic
>
<#
if
actionlogic
.
getAttachMode
()==
'BEFORE'
&&
actionlogic
.
isValid
()==
true
>
<#
if
actionlogic
.
isValid
()==
true
>
<#
if
actionlogic
.
isInternalLogic
()
&&
actionlogic
.
getPSDELogic
().
isEnableBackend
()>
<#
if
actionlogic
.
isInternalLogic
()
&&
actionlogic
.
getPSDELogic
().
isEnableBackend
()>
${
actionlogic
.
getPSDELogic
().
getCodeName
()?
lower_case
}
Logic
.
execute
(
et
);
${
actionlogic
.
getPSDELogic
().
getCodeName
()?
lower_case
}
Logic
.
execute
(
et
);
<#
elseif
(
actionlogic
.
getDstPSDE
()
!'')!='' && (actionlogic.getDstPSDEAction()!'')!=''>
<@
addActionLogic
actionlogic
/>
</#
if
>
</#
if
>
</#
if
>
</#
if
>
</#
list
>
</#
list
>
</#
if
>
</#
if
>
</#
macro
>
</#
macro
>
<#
comment
>
附加实体行为
</#
comment
>
<#
macro
addActionLogic
actionlogic
>
<#
assign
actionLogicDE
=
actionlogic
.
getDstPSDE
()>
<#
assign
actionLogicDEAction
=
actionlogic
.
getDstPSDEAction
()>
<#
assign
logicActionType
=
actionLogicDEAction
.
getActionType
()>
<#
assign
logicCodeName
=
actionLogicDEAction
.
getCodeName
()?
lower_case
>
<#
if
(
logicActionType
==
'USERCUSTOM'
)||
logicActionType
==
'DELOGIC'
||
logicCodeName
==
"create"
||
logicCodeName
==
"update"
||
logicCodeName
==
"save"
||
logicCodeName
==
"getdraft"
||
logicCodeName
==
"checkkey"
>
${
pub
.
getPKGCodeName
()}.
core
.${
actionLogicDE
.
getPSSystemModule
().
getCodeName
()?
lower_case
}.
domain
.${
actionLogicDE
.
getCodeName
()}
actionLogicDE
=
new
${
pub
.
getPKGCodeName
()}.
core
.${
actionLogicDE
.
getPSSystemModule
().
getCodeName
()?
lower_case
}.
domain
.${
actionLogicDE
.
getCodeName
()}();
et
.
copyTo
(
actionLogicDE
,
true
);
${
srfcaseformat
(
actionLogicDE
.
getCodeName
(),
'l_u2lC'
)}
Service
.${
srfmethodname
(
actionLogicDEAction
.
getCodeName
())}(
actionLogicDE
);
</#
if
>
</#
macro
>
<#
comment
>
附加逻辑
-
操作后
</#
comment
>
<#
comment
>
附加逻辑
-
操作后
</#
comment
>
<#
macro
addAfterLogic
deaction
>
<#
macro
addAfterLogic
deaction
>
<#
if
deaction
.
getPSDEActionLogics
()??>
<#
if
deaction
.
get
After
PSDEActionLogics
()??>
<#
list
deaction
.
getPSDEActionLogics
()
as
actionlogic
>
<#
list
deaction
.
get
After
PSDEActionLogics
()
as
actionlogic
>
<#
if
actionlogic
.
getAttachMode
()==
'AFTER'
&&
actionlogic
.
isValid
()==
true
>
<#
if
actionlogic
.
isValid
()==
true
>
<#
if
actionlogic
.
isInternalLogic
()
&&
actionlogic
.
getPSDELogic
().
isEnableBackend
()>
<#
if
actionlogic
.
isInternalLogic
()
&&
actionlogic
.
getPSDELogic
().
isEnableBackend
()>
${
actionlogic
.
getPSDELogic
().
getCodeName
()?
lower_case
}
Logic
.
execute
(
et
);
${
actionlogic
.
getPSDELogic
().
getCodeName
()?
lower_case
}
Logic
.
execute
(
et
);
<#
elseif
(
actionlogic
.
getDstPSDE
()
!'')!='' && (actionlogic.getDstPSDEAction()!'')!=''>
<@
addActionLogic
actionlogic
/>
</#
if
>
</#
if
>
</#
if
>
</#
if
>
</#
list
>
</#
list
>
...
@@ -2329,6 +2350,17 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
...
@@ -2329,6 +2350,17 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
</#
if
>
</#
if
>
</#
macro
>
</#
macro
>
<#
macro
importDEAction
actionLogic
>
<#
assign
actionLogicDE
=
actionLogic
.
getDstPSDE
()>
<#
assign
actionLogicDEAction
=
actionLogic
.
getDstPSDEAction
()>
<#
if
!P.exists('DER1N',actionLogicDE.getCodeName())>
@
Autowired
@
Lazy
protected
${
pub
.
getPKGCodeName
()}.
core
.${
actionLogicDE
.
getPSSystemModule
().
getCodeName
()?
lower_case
}.
service
.
I
${
actionLogicDE
.
getCodeName
()}
Service
${
srfcaseformat
(
actionLogicDE
.
getCodeName
(),
'l_u2lC'
)}
Service
;
</#
if
>
</#
macro
>
<#
comment
>
实体行为参数
</#
comment
>
<#
comment
>
实体行为参数
</#
comment
>
<#
macro
addDEActionParam
deaction
>
<#
macro
addDEActionParam
deaction
>
<#
if
deaction
.
getParamMode
??
&&
deaction
.
getParamMode
()??
&&
deaction
.
getPSDEActionParams
()??>
<#
if
deaction
.
getParamMode
??
&&
deaction
.
getParamMode
()??
&&
deaction
.
getPSDEActionParams
()??>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录