提交 b11b24ae 编写于 作者: chenxiang@lab.ibiz5.com's avatar chenxiang@lab.ibiz5.com

1

上级 9460a505
...@@ -35,11 +35,16 @@ public class ${item.getCodeName()} implements Serializable { ...@@ -35,11 +35,16 @@ public class ${item.getCodeName()} implements Serializable {
*/ */
<#comment>主键</#comment> <#comment>主键</#comment>
<#if defield.isKeyDEField()==true> <#if defield.isKeyDEField()==true>
<#if defield.getDefaultValue()?? && defield.getDefaultValue()!=''>
@DEField(isKeyField=true , defaultValue = "${defield.getDefaultValue()}")
<#else>
@DEField(isKeyField=true) @DEField(isKeyField=true)
</#if> </#if>
<#else>
<#comment>属性默认值</#comment> <#comment>属性默认值</#comment>
<#if defield.getDefaultValue()?? && defield.getDefaultValue()!=''> <#if defield.getDefaultValue()?? && defield.getDefaultValue()!=''>
<#-- @DEField(defaultValue = "${defield.getDefaultValue()}") --> @DEField(defaultValue = "${defield.getDefaultValue()}")
</#if>
</#if> </#if>
<#comment>系统预置属性</#comment> <#comment>系统预置属性</#comment>
<#if defield.getPredefinedType?? && defield.getPredefinedType()??> <#if defield.getPredefinedType?? && defield.getPredefinedType()??>
......
...@@ -3,6 +3,7 @@ TARGET=PSDATAENTITY ...@@ -3,6 +3,7 @@ TARGET=PSDATAENTITY
</#ibiztemplate> </#ibiztemplate>
package ${pub.getPKGCodeName()}.core.${item.getPSSystemModule().getCodeName()?lower_case}.service; package ${pub.getPKGCodeName()}.core.${item.getPSSystemModule().getCodeName()?lower_case}.service;
import java.io.Serializable;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
...@@ -3,6 +3,7 @@ TARGET=PSDATAENTITY ...@@ -3,6 +3,7 @@ TARGET=PSDATAENTITY
</#ibiztemplate> </#ibiztemplate>
package ${pub.getPKGCodeName()}.core.${item.getPSSystemModule().getCodeName()?lower_case}.service.impl; package ${pub.getPKGCodeName()}.core.${item.getPSSystemModule().getCodeName()?lower_case}.service.impl;
import java.io.Serializable;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -431,12 +432,12 @@ ${deaction.getRender().code} ...@@ -431,12 +432,12 @@ ${deaction.getRender().code}
</#list> </#list>
<#elseif item.isEnableAPIStorage()> <#elseif item.isEnableAPIStorage()>
<#if deaction.getPSSubSysServiceAPIDEMethod()?? > <#if deaction.getPSSubSysServiceAPIDEMethod()?? >
${item.getPSSubSysServiceAPIDE().getCodeName()?uncap_first}ClientService.${deaction.getPSSubSysServiceAPIDEMethod().getCodeName()?uncap_first}(${item.getCodeName()?lower_case}s,batchSize) ; <#--${item.getPSSubSysServiceAPIDE().getCodeName()?uncap_first}ClientService.${deaction.getPSSubSysServiceAPIDEMethod().getCodeName()?uncap_first}(${item.getCodeName()?lower_case}s,batchSize) ;-->
<#else> <#else>
</#if> </#if>
<#elseif item.isEnableNoSQLStorage() && item.getAllPSDEBDTables()??> <#elseif item.isEnableNoSQLStorage() && item.getAllPSDEBDTables()??>
<#list item.getAllPSDEBDTables() as debdtable> <#list item.getAllPSDEBDTables() as debdtable>
${de.getCodeName()?uncap_first}Repository.createBatch(${item.getCodeName()?lower_case}s,batchSize); <#--${de.getCodeName()?uncap_first}Repository.createBatch(${item.getCodeName()?lower_case}s,batchSize);-->
</#list> </#list>
</#if> </#if>
...@@ -455,12 +456,12 @@ ${deaction.getRender().code} ...@@ -455,12 +456,12 @@ ${deaction.getRender().code}
</#list> </#list>
<#elseif item.isEnableAPIStorage()> <#elseif item.isEnableAPIStorage()>
<#if deaction.getPSSubSysServiceAPIDEMethod()?? > <#if deaction.getPSSubSysServiceAPIDEMethod()?? >
${item.getPSSubSysServiceAPIDE().getCodeName()?uncap_first}ClientService.${deaction.getPSSubSysServiceAPIDEMethod().getCodeName()?uncap_first}(${item.getCodeName()?lower_case}s,batchSize) ; <#--${item.getPSSubSysServiceAPIDE().getCodeName()?uncap_first}ClientService.${deaction.getPSSubSysServiceAPIDEMethod().getCodeName()?uncap_first}(${item.getCodeName()?lower_case}s,batchSize) ;-->
<#else> <#else>
</#if> </#if>
<#elseif item.isEnableNoSQLStorage() && item.getAllPSDEBDTables()??> <#elseif item.isEnableNoSQLStorage() && item.getAllPSDEBDTables()??>
<#list item.getAllPSDEBDTables() as debdtable> <#list item.getAllPSDEBDTables() as debdtable>
${de.getCodeName()?uncap_first}Repository.updateBatch(${item.getCodeName()?lower_case}s,batchSize); <#--${de.getCodeName()?uncap_first}Repository.updateBatch(${item.getCodeName()?lower_case}s,batchSize);-->
</#list> </#list>
</#if> </#if>
...@@ -479,12 +480,12 @@ ${deaction.getRender().code} ...@@ -479,12 +480,12 @@ ${deaction.getRender().code}
</#list> </#list>
<#elseif item.isEnableAPIStorage()> <#elseif item.isEnableAPIStorage()>
<#if deaction.getPSSubSysServiceAPIDEMethod()?? > <#if deaction.getPSSubSysServiceAPIDEMethod()?? >
${item.getPSSubSysServiceAPIDE().getCodeName()?uncap_first}ClientService.${deaction.getPSSubSysServiceAPIDEMethod().getCodeName()?uncap_first}(${item.getCodeName()?lower_case}s) ; <#--${item.getPSSubSysServiceAPIDE().getCodeName()?uncap_first}ClientService.${deaction.getPSSubSysServiceAPIDEMethod().getCodeName()?uncap_first}(${item.getCodeName()?lower_case}s) ;-->
<#else> <#else>
</#if> </#if>
<#elseif item.isEnableNoSQLStorage() && item.getAllPSDEBDTables()??> <#elseif item.isEnableNoSQLStorage() && item.getAllPSDEBDTables()??>
<#list item.getAllPSDEBDTables() as debdtable> <#list item.getAllPSDEBDTables() as debdtable>
${de.getCodeName()?uncap_first}Repository.removeBatch(idList); <#--${de.getCodeName()?uncap_first}Repository.removeBatch(idList);-->
</#list> </#list>
</#if> </#if>
...@@ -579,12 +580,8 @@ ${deaction.getRender().code} ...@@ -579,12 +580,8 @@ ${deaction.getRender().code}
fieldFilter.setValue(${der.getMajorPSDataEntity().getKeyPSDEField().getCodeName()?lower_case}); fieldFilter.setValue(${der.getMajorPSDataEntity().getKeyPSDEField().getCodeName()?lower_case});
context.getCondition().add(fieldFilter); context.getCondition().add(fieldFilter);
} }
List<${de.getCodeName()}> list = new ArrayList<${de.getCodeName()}>(); Page<${de.getCodeName()}> ${item.getCodeName()?uncap_first}s = searchDefault(context) ;
Page<${pub.getPKGCodeName()}.core.repository.po.${de.getCodeName()}> ${detable.name?uncap_first}s = ${de.getCodeName()?uncap_first}Repository.searchDefault(context) ; return new PageImpl<${item.getCodeName()}>(${item.getCodeName()?uncap_first}s.getContent(), context.getPageable(), ${item.getCodeName()?uncap_first}s.getTotalElements());
for(${pub.getPKGCodeName()}.core.repository.po.${de.getCodeName()} ${detable.name?uncap_first} : ${detable.name?uncap_first}s){
list.add(${de.getCodeName()?uncap_first}Repository.convert2Domain(${detable.name?uncap_first},null));
}
return new PageImpl<${item.getCodeName()}>(list, context.getPageable(), ${detable.name?uncap_first}s.getTotalElements());
</#if> </#if>
</#list> </#list>
<#elseif item.isEnableAPIStorage()> <#elseif item.isEnableAPIStorage()>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册