Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
80f295ec
提交
80f295ec
编写于
5月 21, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 、batch缓存清除
上级
40615c70
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
0 行删除
+22
-0
%DE%Mapper.java.ftl
...YS_PKGPATH%/core/%MOD_PKGPATH%/mapper/%DE%Mapper.java.ftl
+4
-0
I%DE%Service.java.ftl
...PKGPATH%/core/%MOD_PKGPATH%/service/I%DE%Service.java.ftl
+18
-0
未找到文件。
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/mapper/%DE%Mapper.java.ftl
浏览文件 @
80f295ec
...
@@ -44,6 +44,10 @@ public interface ${item.getCodeName()}Mapper extends BaseMapper<${item.getCodeNa
...
@@ -44,6 +44,10 @@ public interface ${item.getCodeName()}Mapper extends BaseMapper<${item.getCodeNa
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
key
=
"'row:'+#p0.${keyfieldCodeName}"
)
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
key
=
"'row:'+#p0.${keyfieldCodeName}"
)
</#
if
>
</#
if
>
int
updateById
(@
Param
(
Constants
.
ENTITY
)
${
item
.
getCodeName
()}
entity
);
int
updateById
(@
Param
(
Constants
.
ENTITY
)
${
item
.
getCodeName
()}
entity
);
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
key
=
"'row:'+#p0.${keyfieldCodeName}"
)
</#
if
>
int
update
(@
Param
(
Constants
.
ENTITY
)
${
item
.
getCodeName
()}
entity
,
@
Param
(
"ew"
)
Wrapper
<${
item
.
codeName
?
lower_case
}>
updateWrapper
);
@
Override
@
Override
<#
if
item
.
isEnableEntityCache
()==
true
>
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
key
=
"'row:'+#p0"
)
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
key
=
"'row:'+#p0"
)
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/I%DE%Service.java.ftl
浏览文件 @
80f295ec
...
@@ -97,15 +97,27 @@ public interface I${item.codeName}Service{
...
@@ -97,15 +97,27 @@ public interface I${item.codeName}Service{
${
item
.
codeName
}
get
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
;
${
item
.
codeName
}
get
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"create"
>
<#
elseif
deaction
.
codeName
?
lower_case
==
"create"
>
boolean
create
(${
item
.
codeName
}
et
)
;
boolean
create
(${
item
.
codeName
}
et
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
createBatch
(
List
<${
item
.
codeName
}>
list
)
;
void
createBatch
(
List
<${
item
.
codeName
}>
list
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"update"
>
<#
elseif
deaction
.
codeName
?
lower_case
==
"update"
>
boolean
update
(${
item
.
codeName
}
et
)
;
boolean
update
(${
item
.
codeName
}
et
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
updateBatch
(
List
<${
item
.
codeName
}>
list
)
;
void
updateBatch
(
List
<${
item
.
codeName
}>
list
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"remove"
>
<#
elseif
deaction
.
codeName
?
lower_case
==
"remove"
>
boolean
remove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
;
boolean
remove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
removeBatch
(
Collection
<${
srfjavatype
(
keyfield
.
stdDataType
)}>
idList
)
;
void
removeBatch
(
Collection
<${
srfjavatype
(
keyfield
.
stdDataType
)}>
idList
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"save"
>
<#
elseif
deaction
.
codeName
?
lower_case
==
"save"
>
boolean
save
(${
item
.
codeName
}
et
)
;
boolean
save
(${
item
.
codeName
}
et
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
saveBatch
(
List
<${
item
.
codeName
}>
list
)
;
void
saveBatch
(
List
<${
item
.
codeName
}>
list
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"getdraft"
>
<#
elseif
deaction
.
codeName
?
lower_case
==
"getdraft"
>
${
item
.
codeName
}
getDraft
(${
item
.
codeName
}
et
)
;
${
item
.
codeName
}
getDraft
(${
item
.
codeName
}
et
)
;
...
@@ -140,6 +152,9 @@ public interface I${item.codeName}Service{
...
@@ -140,6 +152,9 @@ public interface I${item.codeName}Service{
<#
assign
deDefaultDataSet
=
de
.
getDefaultPSDEDataSet
()>
<#
assign
deDefaultDataSet
=
de
.
getDefaultPSDEDataSet
()>
<#
if
deDefaultDataSet
.
getPSDEDataQueries
()??>
<#
if
deDefaultDataSet
.
getPSDEDataQueries
()??>
List
<${
item
.
getCodeName
()}>
selectBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
List
<${
item
.
getCodeName
()}>
selectBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
removeBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
void
removeBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
<#
assign
nested
=
MinorPSDER
.
isNestedRS
()>
<#
assign
nested
=
MinorPSDER
.
isNestedRS
()>
<#
if
nested
==
false
&&
MinorPSDER
.
getMinorPSDataEntity
().
getAllPSDEServiceAPIs
()??>
<#
if
nested
==
false
&&
MinorPSDER
.
getMinorPSDataEntity
().
getAllPSDEServiceAPIs
()??>
...
@@ -150,6 +165,9 @@ public interface I${item.codeName}Service{
...
@@ -150,6 +165,9 @@ public interface I${item.codeName}Service{
</#
list
>
</#
list
>
</#
if
>
</#
if
>
<#
if
nested
>
<#
if
nested
>
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
saveBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
},
List
<${
item
.
getCodeName
()}>
list
)
;
void
saveBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
},
List
<${
item
.
getCodeName
()}>
list
)
;
</#
if
>
</#
if
>
</#
if
>
</#
if
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录