Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
55ca25af
提交
55ca25af
编写于
3月 25, 2021
作者:
tangyaolong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
驼峰配置代码简化
上级
1b8b4e40
变更
21
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
64 行增加
和
277 行删除
+64
-277
%DE%.java.ftl
...ava/%SYS_PKGPATH%/core/%MOD_PKGPATH%/domain/%DE%.java.ftl
+3
-13
%DE%Mapper.java.ftl
...YS_PKGPATH%/core/%MOD_PKGPATH%/mapper/%DE%Mapper.java.ftl
+3
-13
%DE%%ITEM%.java.ftl
...S_PKGPATH%/core/%MOD_PKGPATH%/mapping/%DE%%ITEM%.java.ftl
+3
-13
%DE%InheritMapping.java.ftl
...H%/core/%MOD_PKGPATH%/mapping/%DE%InheritMapping.java.ftl
+3
-13
I%DE%Service.java.ftl
...PKGPATH%/core/%MOD_PKGPATH%/service/I%DE%Service.java.ftl
+3
-13
%DE%ServiceImpl.java.ftl
.../core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
+3
-13
%DE%.java.ftl
.../src/main/java/%SYS_PKGPATH%/core/es/domain/%DE%.java.ftl
+3
-16
%DE%ESServiceImpl.java.ftl
..._PKGPATH%/core/es/service/impl/%DE%ESServiceImpl.java.ftl
+3
-13
RocketMQListenerProcessor.java.ftl
...PATH%/core/util/config/RocketMQListenerProcessor.java.ftl
+3
-13
%ITEM%JobHandler.java.ftl
...ava/%SYS_PKGPATH%/core/util/job/%ITEM%JobHandler.java.ftl
+3
-14
${de.codeName}Mapper.xml.ftl
...r/%MOD_PKGPATH%/%DE_PKGPATH%/${de.codeName}Mapper.xml.ftl
+4
-13
%DE%%ITEM%Rule.drl.ftl
...PRJ%-core/src/main/resources/rules/%DE%%ITEM%Rule.drl.ftl
+3
-13
%DE%%ITEM%RuleFlow.bpmn.ftl
...core/src/main/resources/rules/%DE%%ITEM%RuleFlow.bpmn.ftl
+3
-13
after.bpmn.ftl
...c/main/resources/rules/%DE%/%ITEM_PKGPATH%/after.bpmn.ftl
+3
-13
after.drl.ftl
...rc/main/resources/rules/%DE%/%ITEM_PKGPATH%/after.drl.ftl
+3
-13
before.bpmn.ftl
.../main/resources/rules/%DE%/%ITEM_PKGPATH%/before.bpmn.ftl
+3
-13
before.drl.ftl
...c/main/resources/rules/%DE%/%ITEM_PKGPATH%/before.drl.ftl
+3
-13
%ITEM%DTO.java.ftl
...ava/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/dto/%ITEM%DTO.java.ftl
+3
-13
%ITEM%Mapping.java.ftl
..._PKGPATH%/%SYSAPI_PKGPATH%/mapping/%ITEM%Mapping.java.ftl
+3
-13
%ITEM%Resource.java.ftl
...YS_PKGPATH%/%SYSAPI_PKGPATH%/rest/%ITEM%Resource.java.ftl
+3
-13
ValueRuleValidator.java.ftl
...va/%SYS_PKGPATH%/util/service/ValueRuleValidator.java.ftl
+3
-13
未找到文件。
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/domain/%DE%.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
assign
hasResetField
=
false
>
package
${
pub
.
getPKGCodeName
()}.
core
.${
item
.
getPSSystemModule
().
getCodeName
()?
lower_case
}.
domain
;
...
...
@@ -1012,16 +1014,4 @@ public class ${item.getCodeName()} extends EntityBase implements Serializable {
</#
list
>
<#
assign
unionKeyResult
=
"if("
+
formatValue
+
")"
>
<#
return
unionKeyResult
>
</#
function
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
function
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/mapper/%DE%Mapper.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
if
de
.
getStorageMode
()==
1
>
package
${
pub
.
getPKGCodeName
()}.
core
.${
item
.
getPSSystemModule
().
codeName
?
lower_case
}.
mapper
;
...
...
@@ -115,16 +117,4 @@ public interface ${item.getCodeName()}Mapper extends BaseMapper<${item.getCodeNa
</#
list
>
</#
if
>
}
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/mapping/%DE%%ITEM%.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDEDATAIMP
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
package
${
pub
.
getPKGCodeName
()}.
core
.${
de
.
getPSSystemModule
().
codeName
?
lower_case
}.
mapping
;
import
${
pub
.
getPKGCodeName
()}.
core
.${
de
.
getPSSystemModule
().
codeName
?
lower_case
}.
domain
.${
de
.
codeName
};
...
...
@@ -25,16 +27,4 @@ public interface ${de.codeName}${item.codeName} {
${
de
.
codeName
}
toDomain
(${
de
.
codeName
}
entity
);
List
<${
de
.
codeName
}>
toDomain
(
List
<${
de
.
codeName
}>
entities
);
}
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
}
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/mapping/%DE%InheritMapping.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
comment
>
索引从实体
</#
comment
>
<#
assign
isIndexSubDE
=
false
>
<#
if
de
.
getMinorPSDERs
()??>
...
...
@@ -89,16 +91,4 @@ public interface ${de.codeName}InheritMapping {
}
</#
if
>
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/I%DE%Service.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
assign
deCodeNameCamel
=
srfr7templcaseformat
(
de
.
codeName
)?
cap_first
>
<#
comment
>
实体是否配置预置属性
</#
comment
>
<#
assign
hasDEPrefield
=
false
>
...
...
@@ -274,16 +276,4 @@ public interface I${item.codeName}Service {
</#
if
>
</#
macro
>
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
assign
deCodeNameCamel
=
srfr7templcaseformat
(
de
.
codeName
)?
cap_first
>
<#
comment
>
实体是否配置预置属性
</#
comment
>
<#
assign
hasDEPrefield
=
false
>
...
...
@@ -3299,16 +3301,4 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
</#
if
>
</#
macro
>
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/es/domain/%DE%.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
if
de
.
getUserTag
()??
&&
de
.
getUserTag
()==
'elasticsearch'
>
package
${
pub
.
getPKGCodeName
()}.
core
.
es
.
domain
;
...
...
@@ -45,19 +47,4 @@ public class ${item.codeName} implements Serializable {
</#
list
>
</#
if
>
}
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/es/service/impl/%DE%ESServiceImpl.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDATAENTITY
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
if
de
.
getUserTag
()??
&&
de
.
getUserTag
()==
'elasticsearch'
>
package
${
pub
.
getPKGCodeName
()}.
core
.
es
.
service
.
impl
;
...
...
@@ -110,16 +112,4 @@ public class ${item.getCodeName()}ESServiceImpl implements I${de.getCodeName()}E
</#
list
>
</#
if
>
}
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/util/config/RocketMQListenerProcessor.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSSYSTEM
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
assign
hasMQConsumer
=
false
>
<#
comment
>
实体中配置输入数据同步
</#
comment
>
<#
list
sys
.
getAllPSDataEntities
()
as
dataEntity
>
...
...
@@ -119,16 +121,4 @@ public class RocketMQListenerProcessor implements MessageListenerOrderly {
return ConsumeOrderlyStatus.SUCCESS;
}
}
</#if>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'
UC2l_u
')>
<#assign result = srfcaseformat(codeName,'
l_u2lC
')>
<#else>
<#assign result = srfcaseformat(codeName,'
l_u2lC
')>
</#if>
<#return result>
</#function>
</#if>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/util/job/%ITEM%JobHandler.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSSYSBACKSERVICE
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
package
${
pub
.
getPKGCodeName
()}.
core
.
util
.
job
;
import
com
.
baomidou
.
jobs
.
api
.
JobsResponse
;
...
...
@@ -38,17 +40,4 @@ public class ${item.codeName}JobHandler implements IJobsHandler {
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
return
JobsResponse
.
ok
();
}
}
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
}
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/mapper/%MOD_PKGPATH%/%DE_PKGPATH%/${de.codeName}Mapper.xml.ftl
浏览文件 @
55ca25af
<#ibiztemplate>
TARGET=PSDATAENTITY
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#if de.getStorageMode()==1>
<#if de.getAllPSDEDataSets()??>
<#assign resultSet=de.getAllPSDEDataSets()>
...
...
@@ -306,16 +309,4 @@ TARGET=PSDATAENTITY
<#comment>输出数据集分组</#comment>
<#macro outputGroup singleSet>
<#list singleSet.getPSDEDataSetGroupParams() as groupParam><#if groupParam_index gt 0>,</#if><#if groupParam.isEnableGroup()><#if groupParam.getGroupCode()??>${groupParam.getGroupCode()}<#else>${groupParam.getName()}</#if><#else>${groupParam.getGroupCode()}</#if> as "${groupParam.getName()?lower_case}"</#list>
</#macro>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'UC2l_u')>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
<#else>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
</#if>
<#return result>
</#function>
</#macro>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/rules/%DE%%ITEM%Rule.drl.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDELOGIC
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
if
item
.
isEnableBackend
()>
package
${
pub
.
getPKGCodeName
()}.${
de
.
getPSSystemModule
().
codeName
?
lower_case
}.
logic
.${
de
.
codeName
?
lower_case
}
logic
.${
item
.
getCodeName
()?
lower_case
};
<#
comment
>
是否包含启动工作流节点
</#
comment
>
...
...
@@ -251,16 +253,4 @@ ruleflow-group "${logicName+deLogicNode.getCodeName()?lower_case}"
<#
assign
sql
=
sql
?
replace
(
"?"
,
"#"
+
"{et.param"
+
nodeParam_index
+
"}"
,
"f"
)>
</#
list
>
String
strSql
=
"${sql}"
;
</#
macro
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
macro
>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/rules/%DE%%ITEM%RuleFlow.bpmn.ftl
浏览文件 @
55ca25af
<#ibiztemplate>
TARGET=PSDELOGIC
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#if item.isEnableBackend()>
<?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">
...
...
@@ -175,16 +177,4 @@ TARGET=PSDELOGIC
<#assign expressionCond=expressionCond+condBody >
</#list>
<#return expressionCond/>
</#function>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'UC2l_u')>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
<#else>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
</#if>
<#return result>
</#function>
</#function>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/rules/%DE%/%ITEM_PKGPATH%/after.bpmn.ftl
浏览文件 @
55ca25af
<#ibiztemplate>
TARGET=PSDEACTION
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#assign hasAfterLogic =false>
<#assign hasAfterDrl=false>
<#assign de=item.getPSDataEntity()>
...
...
@@ -69,16 +71,4 @@ TARGET=PSDEACTION
</#if>
</process>
</definitions>
</#if>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'UC2l_u')>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
<#else>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
</#if>
<#return result>
</#function>
</#if>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/rules/%DE%/%ITEM_PKGPATH%/after.drl.ftl
浏览文件 @
55ca25af
<#ibiztemplate>
TARGET=PSDEACTION
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#comment>实体行为调用实体行为</#comment>
<#assign hasAfterLogic =false>
<#assign de=item.getPSDataEntity()>
...
...
@@ -94,16 +96,4 @@ global ${pub.getPKGCodeName()}.core.${de.getPSSystemModule().getCodeName()?lower
<#assign publicCodeName = privateCodeName?cap_first >
${srfr7templcaseformat(actionLogicDE.getCodeName())}Service.remove(et.get${publicCodeName}());
</#if>
</#macro>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'UC2l_u')>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
<#else>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
</#if>
<#return result>
</#function>
</#macro>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/rules/%DE%/%ITEM_PKGPATH%/before.bpmn.ftl
浏览文件 @
55ca25af
<#ibiztemplate>
TARGET=PSDEACTION
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#assign hasBeforeLogic =false>
<#assign hasBeforeDrl=false>
<#assign de=item.getPSDataEntity()>
...
...
@@ -69,16 +71,4 @@ TARGET=PSDEACTION
</#if>
</process>
</definitions>
</#if>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'UC2l_u')>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
<#else>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
</#if>
<#return result>
</#function>
</#if>
\ No newline at end of file
SLN/%PUBPRJ%-core/src/main/resources/rules/%DE%/%ITEM_PKGPATH%/before.drl.ftl
浏览文件 @
55ca25af
<#ibiztemplate>
TARGET=PSDEACTION
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#comment>实体行为调用实体行为</#comment>
<#assign hasBeforeLogic =false>
<#assign de=item.getPSDataEntity()>
...
...
@@ -94,16 +96,4 @@ global ${pub.getPKGCodeName()}.core.${de.getPSSystemModule().getCodeName()?lower
<#assign publicCodeName = privateCodeName?cap_first >
${srfr7templcaseformat(actionLogicDE.getCodeName())}Service.remove(et.get${publicCodeName}());
</#if>
</#macro>
<#comment>替换参数驼峰命名</#comment>
<#function srfr7templcaseformat codeName>
<#assign result = codeName>
<#if pub.getParam("cam") == "true">
<#assign result = srfcaseformat(codeName,'UC2l_u')>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
<#else>
<#assign result = srfcaseformat(codeName,'l_u2lC')>
</#if>
<#return result>
</#function>
</#macro>
\ No newline at end of file
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/dto/%ITEM%DTO.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDESERVICEAPI
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
comment
>
不发布子系统实体
</#
comment
>
<#
if
de
.
isSubSysDE
()==
false
>
<#
assign
pubPkgCodeName
=
pub
.
getPKGCodeName
()>
...
...
@@ -198,16 +200,4 @@ public class ${item.getCodeName()}DTO extends ${dtoBase} implements Serializable
</#
list
>
})
</#
if
>
</#
macro
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
macro
>
\ No newline at end of file
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/mapping/%ITEM%Mapping.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDESERVICEAPI
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
comment
>
不发布子系统实体
</#
comment
>
<#
if
de
.
isSubSysDE
()==
false
&&
de
.
getAllPSDEServiceAPIs
()??>
<#
assign
pubPkgCodeName
=
pub
.
getPKGCodeName
()>
...
...
@@ -43,16 +45,4 @@ public interface ${item.getCodeName()}Mapping extends MappingBase<${item.codeNam
<#--</#
if
>-->
}
</#
if
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
if
>
\ No newline at end of file
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/rest/%ITEM%Resource.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSDESERVICEAPI
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
comment
>
不发布子系统实体
</#
comment
>
<#
if
de
.
isSubSysDE
()==
false
>
<#--
SYSAPI
为
RESTFUL
,主从接口(非嵌套)
-->
...
...
@@ -1087,16 +1089,4 @@ public class ${itemCodeName}Resource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
</#
if
>
}
</#
macro
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
macro
>
\ No newline at end of file
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/service/ValueRuleValidator.java.ftl
浏览文件 @
55ca25af
<#
ibiztemplate
>
TARGET
=
PSSYSTEM
</#
ibiztemplate
>
<#
comment
>
引入驼峰配置
</#
comment
>
<#
ibizinclude
>/
SLN
/
globalfunc
.
cfg
</#
ibizinclude
>
<#
if
sys
.
codeName
==
'Sample'
>
package
${
pub
.
getPKGCodeName
()}.
util
.
service
;
...
...
@@ -152,16 +154,4 @@ public class ValueRuleValidator implements ConstraintValidator<ValueRuleCheck, D
<#
assign
fieldMessage
=
fieldRule
.
getRuleInfo
()>
</#
if
>
<#
return
fieldMessage
/>
</#
function
>
<#
comment
>
替换参数驼峰命名
</#
comment
>
<#
function
srfr7templcaseformat
codeName
>
<#
assign
result
=
codeName
>
<#
if
pub
.
getParam
(
"cam"
)
==
"true"
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'UC2l_u'
)>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
<#
else
>
<#
assign
result
=
srfcaseformat
(
codeName
,
'l_u2lC'
)>
</#
if
>
<#
return
result
>
</#
function
>
</#
function
>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录