提交 941741f5 编写于 作者: zhouweidong's avatar zhouweidong

代码规范检查

上级 40f79c99
...@@ -106,6 +106,7 @@ public class ${item.codeName}SearchContext extends QueryWrapperContext<${item.co ...@@ -106,6 +106,7 @@ public class ${item.codeName}SearchContext extends QueryWrapperContext<${item.co
/** /**
* 启用快速搜索 * 启用快速搜索
*/ */
@Override
public void setQuery(String query) public void setQuery(String query)
{ {
this.query=query; this.query=query;
......
...@@ -430,8 +430,9 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa ...@@ -430,8 +430,9 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
<@outputTestAction deaction "save"/> <@outputTestAction deaction "save"/>
<#comment>附加数据逻辑-操作前</#comment> <#comment>附加数据逻辑-操作前</#comment>
<@addBoforeLogic deaction/> <@addBoforeLogic deaction/>
if(!saveOrUpdate(et)) if(!saveOrUpdate(et)) {
return false; return false;
}
<#comment>附加数据逻辑-操作后</#comment> <#comment>附加数据逻辑-操作后</#comment>
<@addAfterLogic deaction/> <@addAfterLogic deaction/>
return true; return true;
......
...@@ -65,6 +65,7 @@ public class ${de.codeName}${item.codeName}LogicImpl implements I${de.codeName}$ ...@@ -65,6 +65,7 @@ public class ${de.codeName}${item.codeName}LogicImpl implements I${de.codeName}$
return this.iBzSysDefaultService; return this.iBzSysDefaultService;
} }
@Override
public void execute(${de.codeName} et){ public void execute(${de.codeName} et){
KieSession kieSession = null; KieSession kieSession = null;
...@@ -111,10 +112,11 @@ public class ${de.codeName}${item.codeName}LogicImpl implements I${de.codeName}$ ...@@ -111,10 +112,11 @@ public class ${de.codeName}${item.codeName}LogicImpl implements I${de.codeName}$
throw new RuntimeException("执行[${item.getName()}]处理逻辑发生异常"+e); throw new RuntimeException("执行[${item.getName()}]处理逻辑发生异常"+e);
<#--throw new BadRequestAlertException(""+e,"","");--> <#--throw new BadRequestAlertException(""+e,"","");-->
}finally { }finally {
if(kieSession!=null) if(kieSession!=null) {
kieSession.destroy(); kieSession.destroy();
} }
} }
}
} }
</#if> </#if>
\ No newline at end of file
...@@ -677,11 +677,11 @@ public class ${itemCodeName}Resource { ...@@ -677,11 +677,11 @@ public class ${itemCodeName}Resource {
else{ else{
<#list de.getAllPSDEDataImports() as deImport> <#list de.getAllPSDEDataImports() as deImport>
<#if deImport_index==0> <#if deImport_index==0>
if(config.equals("${deImport.codeName}")){ if("${deImport.codeName}".equals(config)){
rs=${deCodeNameLC}Service.importData(${deImport.codeName?lower_case}ImpMapping.toDomain(dtos),${deImport.getBatchSize()?c},${deImport.isIgnoreError()?c}); rs=${deCodeNameLC}Service.importData(${deImport.codeName?lower_case}ImpMapping.toDomain(dtos),${deImport.getBatchSize()?c},${deImport.isIgnoreError()?c});
} }
<#else> <#else>
else if(config.equals("${deImport.codeName}")){ else if("${deImport.codeName}".equals(config)){
rs=${deCodeNameLC}Service.importData(${deImport.codeName?lower_case}ImpMapping.toDomain(dtos),${deImport.getBatchSize()?c},${deImport.isIgnoreError()?c}); rs=${deCodeNameLC}Service.importData(${deImport.codeName?lower_case}ImpMapping.toDomain(dtos),${deImport.getBatchSize()?c},${deImport.isIgnoreError()?c});
} }
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册