提交 0159b489 编写于 作者: ibiz4j's avatar ibiz4j

runtime

上级 5fc220b7
...@@ -6,6 +6,7 @@ import net.ibizsys.model.IPSDynaInstService; ...@@ -6,6 +6,7 @@ import net.ibizsys.model.IPSDynaInstService;
import net.ibizsys.model.IPSSystemService; import net.ibizsys.model.IPSSystemService;
import net.ibizsys.model.PSModelServiceImpl; import net.ibizsys.model.PSModelServiceImpl;
import net.ibizsys.model.res.IPSSysUtil; import net.ibizsys.model.res.IPSSysUtil;
import net.ibizsys.central.sysutil.SysUtilRuntimeBase;
import net.ibizsys.runtime.res.ISysUtilRuntime; import net.ibizsys.runtime.res.ISysUtilRuntime;
import net.ibizsys.central.plugin.boot.core.runtime.BootSystemRuntime; import net.ibizsys.central.plugin.boot.core.runtime.BootSystemRuntime;
...@@ -23,9 +24,18 @@ public class SystemRuntime extends BootSystemRuntime { ...@@ -23,9 +24,18 @@ public class SystemRuntime extends BootSystemRuntime {
return psModelServiceImpl; return psModelServiceImpl;
} }
{{#if system.allPSSysUtils}}
@Override @Override
protected ISysUtilRuntime createDefaultSysUtilRuntime(IPSSysUtil iPSSysUtil) { protected ISysUtilRuntime createDefaultSysUtilRuntime(IPSSysUtil iPSSysUtil) {
{{#each system.allPSSysUtils as |sysUtil|}}
{{#if (and (eq sysUtil.utilType "USER")) (unless sysUtil.pSSysSFPlugin)}}
if(iPSSysUtil.getCodeName().equals("{{sysUtil.codeName}}"))
return new {{packageName}}.runtime.sysutil.{{sysUtil.codeName}}();
{{/if}}
{{/each}}
return super.createDefaultSysUtilRuntime(iPSSysUtil); return super.createDefaultSysUtilRuntime(iPSSysUtil);
} }
{{/if}}
} }
{{#if (and (eq sysUtil.utilType "USER")) (unless sysUtil.pSSysSFPlugin)}}
package {{packageName}}.runtime.sysutil;
import net.ibizsys.central.sysutil.ISysUtilRuntime;
import net.ibizsys.central.plugin.boot.core.domain.BaseData;
public interface I{{sysUtil.codeName}} extends ISysUtilRuntime {
BaseData getMapData(BaseData dto) throws Throwable ;
}
{{/if}}
\ No newline at end of file
{{#if (and (eq sysUtil.utilType "USER")) (unless sysUtil.pSSysSFPlugin)}}
package {{packageName}}.runtime.sysutil;
import net.ibizsys.central.sysutil.SysUtilRuntimeBase;
import net.ibizsys.central.plugin.boot.core.domain.BaseData;
import {{packageName}}.runtime.SystemRuntime;
public class {{sysUtil.codeName}} extends SysUtilRuntimeBase implements I{{sysUtil.codeName}} {
public SystemRuntime getSystemRuntime() {
return (SystemRuntime) super.getSystemRuntime();
}
public BaseData getMapData(BaseData dto) throws Throwable {
return dto;
}
}
{{/if}}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册