Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
8cf03901
提交
8cf03901
编写于
6月 30, 2022
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
129
上级
8c0967f8
变更
14
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
118 行增加
和
96 行删除
+118
-96
SystemModel.java
...e/src/main/java/cn/ibizlab/codegen/model/SystemModel.java
+1
-1
pom.xml.hbs
...rator-core/src/main/resources/templ/ibiz-boot/pom.xml.hbs
+6
-3
pom.xml.hbs
...esources/templ/ibiz-boot/{{projectName}}-core/pom.xml.hbs
+4
-1
ISystemRuntime.java.hbs
...main/java/{{packageName}}/runtime/ISystemRuntime.java.hbs
+10
-0
SystemRuntime.java.hbs
.../main/java/{{packageName}}/runtime/SystemRuntime.java.hbs
+1
-37
SystemRuntimeBase.java.hbs
...n/java/{{packageName}}/runtime/SystemRuntimeBase.java.hbs
+41
-0
package-info.java.hbs
...kageName}}/{{modules}}/service/impl/package-info.java.hbs
+0
-1
{{entities@NoSQL}}Service.java.hbs
...}}/{{modules}}/service/{{entities@NoSQL}}Service.java.hbs
+16
-12
{{entities@SQL}}Service.java.hbs
...me}}/{{modules}}/service/{{entities@SQL}}Service.java.hbs
+16
-12
{{entities@ServiceAPI}}Service.java.hbs
...modules}}/service/{{entities@ServiceAPI}}Service.java.hbs
+16
-12
bootstrap.yml
...oot/{{projectName}}-core/src/main/resources/bootstrap.yml
+0
-10
README.md.hbs
...ain/java/{{packageName}}/extensions/service/README.md.hbs
+6
-6
package-info.java.hbs
.../{{packageName}}/extensions/service/package-info.java.hbs
+1
-0
package-info.java.hbs
...kageName}}/{{modules}}/service/impl/package-info.java.hbs
+0
-1
未找到文件。
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/model/SystemModel.java
浏览文件 @
8cf03901
...
@@ -45,7 +45,7 @@ public class SystemModel extends BaseModel {
...
@@ -45,7 +45,7 @@ public class SystemModel extends BaseModel {
}
}
if
(
this
.
pub
!=
null
)
{
if
(
this
.
pub
!=
null
)
{
this
.
setCodeName
(
this
.
pub
.
getCodeName
());
this
.
setCodeName
(
this
.
pub
.
getCodeName
());
this
.
setName
(
this
.
pub
.
getName
());
this
.
setName
(
system
.
getName
());
this
.
setProjectName
(
this
.
pub
.
getCodeName
().
toLowerCase
());
this
.
setProjectName
(
this
.
pub
.
getCodeName
().
toLowerCase
());
this
.
setProjectDesc
(
this
.
pub
.
getName
());
this
.
setProjectDesc
(
this
.
pub
.
getName
());
this
.
setPackageName
(
this
.
pub
.
getPKGCodeName
());
this
.
setPackageName
(
this
.
pub
.
getPKGCodeName
());
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/pom.xml.hbs
浏览文件 @
8cf03901
...
@@ -11,10 +11,13 @@
...
@@ -11,10 +11,13 @@
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<artifactId>
spring
-boot-starter-parent
</artifactId>
<artifactId>
ibiz
-boot-starter-parent
</artifactId>
<version>
2.4.0
</version>
<version>
2.4.0
-SNAPSHOT
</version>
</parent>
</parent>
<properties>
<ibiz
.
cloud
.
version
>
8.1.0.133
</ibiz
.cloud.version
>
</properties>
<modules>
<modules>
<module>
{{
projectName
}}
-core
</module>
<module>
{{
projectName
}}
-core
</module>
<!-- boot -->
<!-- boot -->
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/pom.xml.hbs
浏览文件 @
8cf03901
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
<dependency>
<dependency>
<groupId>
net.ibizsys.plugin
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<artifactId>
ibiz-boot-starter
</artifactId>
<artifactId>
ibiz-boot-starter
</artifactId>
<version>
2.4.0.132
</version>
</dependency>
</dependency>
<!-- Liquibase -->
<!-- Liquibase -->
...
@@ -35,6 +34,10 @@
...
@@ -35,6 +34,10 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<properties>
<maven
.
build
.
timestamp
.
format
>
yyyyMMddHHmmss
</maven
.build.timestamp.format
>
</properties>
<profiles>
<profiles>
<profile>
<profile>
<id>
diff
</id>
<id>
diff
</id>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/runtime/ISystemRuntime.java.hbs
0 → 100644
浏览文件 @
8cf03901
package
{{
packageName
}}
.runtime;
import net.ibizsys.central.plugin.boot.core.runtime.IBootSystemRuntime;
public interface ISystemRuntime extends IBootSystemRuntime {
}
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/runtime/SystemRuntime.java.hbs
浏览文件 @
8cf03901
package
{{
packageName
}}
.runtime;
package
{{
packageName
}}
.runtime;
import net.ibizsys.central.dataentity.IDataEntityRuntime;
public class SystemRuntime extends SystemRuntimeBase {
import net.ibizsys.central.dataentity.service.IDEService;
import net.ibizsys.model.IPSDynaInstService;
import net.ibizsys.model.IPSSystemService;
import net.ibizsys.model.PSModelServiceImpl;
import net.ibizsys.model.res.IPSSysUtil;
import net.ibizsys.central.sysutil.SysUtilRuntimeBase;
import net.ibizsys.runtime.res.ISysUtilRuntime;
import net.ibizsys.central.plugin.boot.core.runtime.BootSystemRuntime;
public class SystemRuntime extends BootSystemRuntime {
@Override
public String getName() {
return "
{{
system
.
name
}}
";
}
@Override
protected IPSSystemService createPSSystemService() throws Exception {
PSModelServiceImpl psModelServiceImpl = new PSModelServiceImpl();
psModelServiceImpl.setPSModelFolderPath("/model/
{{
replace
packageName
"."
"/"
}}
", true);
return psModelServiceImpl;
}
{{#if
system
.
allPSSysUtils
}}
@Override
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);
}
{{/if}}
}
}
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/runtime/SystemRuntimeBase.java.hbs
0 → 100644
浏览文件 @
8cf03901
package
{{
packageName
}}
.runtime;
import net.ibizsys.central.dataentity.IDataEntityRuntime;
import net.ibizsys.central.dataentity.service.IDEService;
import net.ibizsys.model.IPSDynaInstService;
import net.ibizsys.model.IPSSystemService;
import net.ibizsys.model.PSModelServiceImpl;
import net.ibizsys.model.res.IPSSysUtil;
import net.ibizsys.central.sysutil.SysUtilRuntimeBase;
import net.ibizsys.runtime.res.ISysUtilRuntime;
import net.ibizsys.central.plugin.boot.core.runtime.BootSystemRuntime;
public class SystemRuntimeBase extends BootSystemRuntime implements ISystemRuntime{
@Override
public String getName() {
return "
{{
system
.
name
}}
";
}
@Override
protected IPSSystemService createPSSystemService() throws Exception {
PSModelServiceImpl psModelServiceImpl = new PSModelServiceImpl();
psModelServiceImpl.setPSModelFolderPath("/model/
{{
replace
packageName
"."
"/"
}}
", true);
return psModelServiceImpl;
}
{{#if
system
.
allPSSysUtils
}}
@Override
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);
}
{{/if}}
}
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/{{modules}}/service/impl/package-info.java.hbs
已删除
100644 → 0
浏览文件 @
8c0967f8
package
{{
packageName
}}
.
{{
modules
}}
.service.impl;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/{{modules}}/service/{{entities@NoSQL}}Service.java.hbs
浏览文件 @
8cf03901
...
@@ -135,8 +135,23 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
...
@@ -135,8 +135,23 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
}
}
{{#
each
entity
.
extActions
}}
{{#
each
entity
.
extActions
}}
{{#if
action
}}
default
{{
entity
.
codeName
}}
{{
camelCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{key}, true);
if(dto!=null)
afterAction("
{{
codeName
}}
",dto);
return dto;
}
default
{{
entity
.
codeName
}}
on
{{
pascalCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
return this.getDataEntityRuntimeContext().executeActionReal("
{{
name
}}
", null, new Object[]{key}, null);;
}
{{else}}
default boolean
{{
camelCase
codeName
}}
(
{{
entity
.
codeName
}}
dto) throws Throwable {
default boolean
{{
camelCase
codeName
}}
(
{{
entity
.
codeName
}}
dto) throws Throwable {
IBaseService.super.beforeAction("
{{
codeName
}}
",dto);
this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{dto}, true);
this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{dto}, true);
IBaseService.super.afterAction("
{{
codeName
}}
",dto);
return true;
return true;
}
}
...
@@ -145,24 +160,13 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
...
@@ -145,24 +160,13 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
return true;
return true;
}
}
{{#if
action
}}
default
{{
entity
.
codeName
}}
{{
camelCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = new
{{
entity
.
codeName
}}
();
dto.set
{{
pascalCase
entity
.
keyField
.
codeName
}}
(key);
return
{{
camelCase
codeName
}}
(dto);
}
default
{{
entity
.
codeName
}}
on
{{
pascalCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = new
{{
entity
.
codeName
}}
();
dto.set
{{
pascalCase
entity
.
keyField
.
codeName
}}
(key);
return on
{{
pascalCase
codeName
}}
(dto);
}
{{/if}}
{{/if}}
{{/
each
}}
{{/
each
}}
{{#
entity
.
dataSets
}}
{{#
entity
.
dataSets
}}
default Page
<
{{
entity
.
codeName
}}
>
fetch
{{
pascalCase
codeName
}}
(
{{
entity
.
codeName
}}
SearchContext dto) throws Throwable {
default Page
<
{{
entity
.
codeName
}}
>
fetch
{{
pascalCase
codeName
}}
(
{{
entity
.
codeName
}}
SearchContext dto) throws Throwable {
IBaseService.super.beforeFetch("
{{
codeName
}}
",dto);
return (Page) this.getRuntimeService().getDataEntityRuntime().fetchDataSet("
{{
name
}}
", dto.getDataSet(), new Object[]{dto}, true);
return (Page) this.getRuntimeService().getDataEntityRuntime().fetchDataSet("
{{
name
}}
", dto.getDataSet(), new Object[]{dto}, true);
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/{{modules}}/service/{{entities@SQL}}Service.java.hbs
浏览文件 @
8cf03901
...
@@ -136,8 +136,23 @@ public interface {{entity.codeName}}Service extends IMPService<{{entity.codeName
...
@@ -136,8 +136,23 @@ public interface {{entity.codeName}}Service extends IMPService<{{entity.codeName
}
}
{{#
each
entity
.
extActions
}}
{{#
each
entity
.
extActions
}}
{{#if
action
}}
default
{{
entity
.
codeName
}}
{{
camelCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{key}, true);
if(dto!=null)
afterAction("
{{
codeName
}}
",dto);
return dto;
}
default
{{
entity
.
codeName
}}
on
{{
pascalCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
return this.getDataEntityRuntimeContext().executeActionReal("
{{
name
}}
", null, new Object[]{key}, null);;
}
{{else}}
default boolean
{{
camelCase
codeName
}}
(
{{
entity
.
codeName
}}
dto) throws Throwable {
default boolean
{{
camelCase
codeName
}}
(
{{
entity
.
codeName
}}
dto) throws Throwable {
IMPService.super.beforeAction("
{{
codeName
}}
",dto);
this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{dto}, true);
this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{dto}, true);
IMPService.super.afterAction("
{{
codeName
}}
",dto);
return true;
return true;
}
}
...
@@ -146,24 +161,13 @@ public interface {{entity.codeName}}Service extends IMPService<{{entity.codeName
...
@@ -146,24 +161,13 @@ public interface {{entity.codeName}}Service extends IMPService<{{entity.codeName
return true;
return true;
}
}
{{#if
action
}}
default
{{
entity
.
codeName
}}
{{
camelCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = new
{{
entity
.
codeName
}}
();
dto.set
{{
pascalCase
entity
.
keyField
.
codeName
}}
(key);
return
{{
camelCase
codeName
}}
(dto);
}
default
{{
entity
.
codeName
}}
on
{{
pascalCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = new
{{
entity
.
codeName
}}
();
dto.set
{{
pascalCase
entity
.
keyField
.
codeName
}}
(key);
return on
{{
pascalCase
codeName
}}
(dto);
}
{{/if}}
{{/if}}
{{/
each
}}
{{/
each
}}
{{#
entity
.
dataSets
}}
{{#
entity
.
dataSets
}}
default Page
<
{{
entity
.
codeName
}}
>
fetch
{{
pascalCase
codeName
}}
(
{{
entity
.
codeName
}}
SearchContext dto) throws Throwable {
default Page
<
{{
entity
.
codeName
}}
>
fetch
{{
pascalCase
codeName
}}
(
{{
entity
.
codeName
}}
SearchContext dto) throws Throwable {
IMPService.super.beforeFetch("
{{
codeName
}}
",dto);
return (Page) this.getRuntimeService().getDataEntityRuntime().fetchDataSet("
{{
name
}}
", dto.getDataSet(), new Object[]{dto}, true);
return (Page) this.getRuntimeService().getDataEntityRuntime().fetchDataSet("
{{
name
}}
", dto.getDataSet(), new Object[]{dto}, true);
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/java/{{packageName}}/{{modules}}/service/{{entities@ServiceAPI}}Service.java.hbs
浏览文件 @
8cf03901
...
@@ -135,8 +135,23 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
...
@@ -135,8 +135,23 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
}
}
{{#
each
entity
.
extActions
}}
{{#
each
entity
.
extActions
}}
{{#if
action
}}
default
{{
entity
.
codeName
}}
{{
camelCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{key}, true);
if(dto!=null)
afterAction("
{{
codeName
}}
",dto);
return dto;
}
default
{{
entity
.
codeName
}}
on
{{
pascalCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
return this.getDataEntityRuntimeContext().executeActionReal("
{{
name
}}
", null, new Object[]{key}, null);;
}
{{else}}
default boolean
{{
camelCase
codeName
}}
(
{{
entity
.
codeName
}}
dto) throws Throwable {
default boolean
{{
camelCase
codeName
}}
(
{{
entity
.
codeName
}}
dto) throws Throwable {
IBaseService.super.beforeAction("
{{
codeName
}}
",dto);
this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{dto}, true);
this.getRuntimeService().getDataEntityRuntime().executeAction("
{{
name
}}
", null, new Object[]{dto}, true);
IBaseService.super.afterAction("
{{
codeName
}}
",dto);
return true;
return true;
}
}
...
@@ -145,24 +160,13 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
...
@@ -145,24 +160,13 @@ public interface {{entity.codeName}}Service extends IBaseService<{{entity.codeNa
return true;
return true;
}
}
{{#if
action
}}
default
{{
entity
.
codeName
}}
{{
camelCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = new
{{
entity
.
codeName
}}
();
dto.set
{{
pascalCase
entity
.
keyField
.
codeName
}}
(key);
return
{{
camelCase
codeName
}}
(dto);
}
default
{{
entity
.
codeName
}}
on
{{
pascalCase
codeName
}}
(
{{
entity
.
keyField
.
type
.
java
}}
key) {
{{
entity
.
codeName
}}
dto = new
{{
entity
.
codeName
}}
();
dto.set
{{
pascalCase
entity
.
keyField
.
codeName
}}
(key);
return on
{{
pascalCase
codeName
}}
(dto);
}
{{/if}}
{{/if}}
{{/
each
}}
{{/
each
}}
{{#
entity
.
dataSets
}}
{{#
entity
.
dataSets
}}
default Page
<
{{
entity
.
codeName
}}
>
fetch
{{
pascalCase
codeName
}}
(
{{
entity
.
codeName
}}
SearchContext dto) throws Throwable {
default Page
<
{{
entity
.
codeName
}}
>
fetch
{{
pascalCase
codeName
}}
(
{{
entity
.
codeName
}}
SearchContext dto) throws Throwable {
IBaseService.super.beforeFetch("
{{
codeName
}}
",dto);
return (Page) this.getRuntimeService().getDataEntityRuntime().fetchDataSet("
{{
name
}}
", dto.getDataSet(), new Object[]{dto}, true);
return (Page) this.getRuntimeService().getDataEntityRuntime().fetchDataSet("
{{
name
}}
", dto.getDataSet(), new Object[]{dto}, true);
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-core/src/main/resources/bootstrap.yml
已删除
100644 → 0
浏览文件 @
8c0967f8
spring
:
cloud
:
nacos
:
discovery
:
server-addr
:
nacos.ibizcloud.cn:8848
group
:
ibiz_config_group
config
:
server-addr
:
nacos.ibizcloud.cn:8848
group
:
ibiz_config_group
file-extension
:
yaml
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-provider/src/main/java/{{packageName}}/README.md.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-provider/src/main/java/{{packageName}}/
extensions/service/
README.md.hbs
浏览文件 @
8cf03901
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
public class XXXServiceImpl extends MPServiceImpl
<XXX
,
XXXSearchContext
,
XXXMapper
>
implements XXXService {
public class XXXServiceImpl extends MPServiceImpl
<XXX
,
XXXSearchContext
,
XXXMapper
>
implements XXXService {
//示例1:整体重写create方法
//示例1:整体重写create方法
public boolean create(XXX et) {
public boolean create(XXX et)
throws Throwable
{
if(!XXXService.sup
p
er.create(et))
if(!XXXService.super.create(et))
return false;
return false;
return true;
return true;
}
}
...
@@ -27,8 +27,8 @@ public class XXXServiceImpl extends MPServiceImpl<XXX,XXXSearchContext,XXXMapper
...
@@ -27,8 +27,8 @@ public class XXXServiceImpl extends MPServiceImpl<XXX,XXXSearchContext,XXXMapper
public void beforeUpdate(XXX et) {
public void beforeUpdate(XXX et) {
et.setMemo("示例");
et.setMemo("示例");
}
}
public boolean onUpdate(XXX et) {
public boolean onUpdate(XXX et)
throws Throwable
{
if(!XXXService.sup
p
er.onUpdate(et))
if(!XXXService.super.onUpdate(et))
return false;
return false;
return true;
return true;
}
}
...
@@ -41,8 +41,8 @@ public class XXXServiceImpl extends MPServiceImpl<XXX,XXXSearchContext,XXXMapper
...
@@ -41,8 +41,8 @@ public class XXXServiceImpl extends MPServiceImpl<XXX,XXXSearchContext,XXXMapper
public void beforeFetchDefault(XXXSearchContext dto) {
public void beforeFetchDefault(XXXSearchContext dto) {
dto.eq("field1","条件值");
dto.eq("field1","条件值");
}
}
public Page
<XXX>
onFetchDefault(XXXSearchContext dto) {
public Page
<XXX>
onFetchDefault(XXXSearchContext dto)
throws Throwable
{
return XXXService.sup
p
er.onFetchDefault(dto);
return XXXService.super.onFetchDefault(dto);
}
}
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-provider/src/main/java/{{packageName}}/extensions/service/package-info.java.hbs
0 → 100644
浏览文件 @
8cf03901
package
{{
packageName
}}
.extensions.service;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/ibiz-boot/{{projectName}}-provider/src/main/java/{{packageName}}/{{modules}}/service/impl/package-info.java.hbs
已删除
100644 → 0
浏览文件 @
8c0967f8
package
{{
packageName
}}
.
{{
modules
}}
.service.impl;
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录