Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
94ba9171
提交
94ba9171
编写于
7月 28, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
事务注解
上级
0808af40
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
28 行删除
+26
-28
%DE%ServiceImpl.java.ftl
.../core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
+26
-28
未找到文件。
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
浏览文件 @
94ba9171
...
...
@@ -183,7 +183,7 @@ ${deaction.getRender().code}
<#
else
>
<#
if
(
deaction
.
getActionType
()==
'USERCUSTOM'
)>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"usercustom"
/>
...
...
@@ -197,7 +197,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getActionType
()==
'DELOGIC'
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"delogic"
/>
...
...
@@ -211,7 +211,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
'get'
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
get
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"get"
/>
...
...
@@ -334,7 +334,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"update"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
update
(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"update"
/>
...
...
@@ -403,7 +403,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"save"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
save
(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"save"
/>
...
...
@@ -417,9 +417,7 @@ ${deaction.getRender().code}
}
@
Override
@
Transactional
(
rollbackFor
=
{
Exception
.
class
}
)
<@
transactionalAnno
deaction
/>
public
boolean
saveOrUpdate
(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"saveOrUpdate"
/>
...
...
@@ -453,7 +451,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"remove"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
remove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"remove"
/>
...
...
@@ -524,7 +522,7 @@ ${deaction.getRender().code}
<#
comment
>
用户扩展新建、更新
</#
comment
>
<#
elseif
deaction
.
getActionType
()==
"USERCREATE"
||
deaction
.
getActionType
()==
"USERUPDATE"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"userex"
/>
...
...
@@ -538,7 +536,7 @@ ${deaction.getRender().code}
}
<#
else
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<#
comment
>
输出测试行为
</#
comment
>
<@
outputTestAction
deaction
"other"
/>
...
...
@@ -836,7 +834,7 @@ ${deaction.getRender().code}
}
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
...
...
@@ -941,7 +939,7 @@ ${deaction.getRender().code}
<#
else
>
<#
if
(
deaction
.
getActionType
()==
'USERCUSTOM'
)>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"usercustom"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -954,7 +952,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getActionType
()==
'DELOGIC'
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"delogic"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -967,7 +965,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
'get'
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
get
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
{
<@
outputTestAction
deaction
"get"
/>
<@
buildEntityParam
deaction
/>
...
...
@@ -1016,7 +1014,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"savebatch"
>
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"create"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
create
(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"create"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1066,7 +1064,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"update"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
update
(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"update"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1115,7 +1113,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"save"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
save
(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"save"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1165,7 +1163,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"remove"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
remove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
{
<@
outputTestAction
deaction
"remove"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1212,7 +1210,7 @@ ${deaction.getRender().code}
<#
else
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"other"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1408,7 +1406,7 @@ ${deaction.getRender().code}
<#
else
>
<#
if
(
deaction
.
getActionType
()==
'USERCUSTOM'
)>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"usercustom"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1421,7 +1419,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getActionType
()==
'DELOGIC'
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"delogic"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1602,7 +1600,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"save"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
save
(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"save"
/>
<#
if
item
.
isEnableAPIStorage
()>
...
...
@@ -1924,7 +1922,7 @@ ${deaction.getRender().code}
<#
else
>
<#
if
(
deaction
.
getActionType
()==
'USERCUSTOM'
)>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"usercustom"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -1937,7 +1935,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getActionType
()==
'DELOGIC'
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"delogic"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -2000,7 +1998,7 @@ ${deaction.getRender().code}
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"save"
>
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
boolean
save
(${
item
.
getCodeName
()}
et
)
{
<@
outputTestAction
deaction
"save"
/>
<#
comment
>
附加数据逻辑
-
操作前
</#
comment
>
...
...
@@ -2538,7 +2536,7 @@ ${deaction.getRender().code}
*
@
return
*/
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
JSONObject
importData
(
List
<${
de
.
codeName
}>
entities
,
int
batchSize
,
boolean
isIgnoreError
)
{
JSONObject
rs
=
testImportData
(
entities
,
isIgnoreError
);
...
...
@@ -2571,7 +2569,7 @@ ${deaction.getRender().code}
*
@
param
entities
数据
*
@
param
ids
要提交数据的
id
*/
@
Transactional
<@
transactionalAnno
deaction
/>
public
void
commit
(
List
<${
de
.
codeName
}>
entities
,
Set
ids
){
String
keyField
=
DEFieldCacheMap
.
getDEKeyField
(${
de
.
codeName
}.
class
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录