File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/main/java/com/itfsw/mybatis/generator/plugins Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Maven引用:
2121<dependency >
2222 <groupId >com.itfsw</groupId >
2323 <artifactId >mybatis-generator-plugin</artifactId >
24- <version >1.0.7 </version >
24+ <version >1.0.8 </version >
2525</dependency >
2626```
2727---------------------------------------
Original file line number Diff line number Diff line change @@ -133,12 +133,13 @@ public void initialized(IntrospectedTable introspectedTable) {
133133 public boolean clientGenerated (Interface interfaze , TopLevelClass topLevelClass , IntrospectedTable introspectedTable ) {
134134 if (this .logicalDeleteColumn != null ){
135135 // 1. 逻辑删除ByExample
136- Method mLogicalDeleteByExample = new Method (METHOD_LOGICAL_DELETE_BY_EXAMPLE );
137- // 返回值类型
138- mLogicalDeleteByExample .setReturnType (FullyQualifiedJavaType .getIntInstance ());
139- // 添加参数
140- FullyQualifiedJavaType type = new FullyQualifiedJavaType (introspectedTable .getExampleType ());
141- mLogicalDeleteByExample .addParameter (new Parameter (type , "example" ));
136+ Method mLogicalDeleteByExample = JavaElementGeneratorTools .generateMethod (
137+ METHOD_LOGICAL_DELETE_BY_EXAMPLE ,
138+ JavaVisibility .DEFAULT ,
139+ FullyQualifiedJavaType .getIntInstance (),
140+ new Parameter (new FullyQualifiedJavaType (introspectedTable .getExampleType ()), "example" , "@Param(\" example\" )" )
141+ );
142+
142143 // 添加方法说明
143144 commentGenerator .addGeneralMethodComment (mLogicalDeleteByExample , introspectedTable );
144145 // interface 增加方法
You can’t perform that action at this time.
0 commit comments