提交 55ca25af 编写于 作者: tangyaolong's avatar tangyaolong

驼峰配置代码简化

上级 1b8b4e40
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#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
<#ibiztemplate>
TARGET=PSDESERVICEAPI
</#ibiztemplate>
<#comment>引入驼峰配置</#comment>
<#ibizinclude>/SLN/globalfunc.cfg</#ibizinclude>
<#comment>不发布子系统实体</#comment>
<#if de.isSubSysDE()==false>
<#-- SYSAPIRESTFUL,主从接口(非嵌套) -->
......@@ -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
<#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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册