File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
generator-web/src/main/resources/templates/code-generator/mybatis Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ public interface ${classInfo.className}Mapper {
17
17
public ${classInfo.className} getById(Integer id);
18
18
19
19
@Options(useGeneratedKeys=true,keyProperty="${classInfo.className?uncap_first } Id")
20
- @Insert("insert into ${classInfo.tableName} "
21
- " (<#list classInfo.fieldList as fieldItem >${fieldItem.columnName} <#if fieldItem_has_next >,</#if ></#list >)"
22
- " values(<#list classInfo.fieldList as fieldItem >${fieldItem.fieldName} <#if fieldItem_has_next >,</#if >) </#list >")
20
+ @Insert("insert into ${classInfo.tableName} " +
21
+ " (<#list classInfo.fieldList as fieldItem >${fieldItem.columnName} <#if fieldItem_has_next >,</#if ></#list >)" +
22
+ " values(<#list classInfo.fieldList as fieldItem >${fieldItem.fieldName} <#if fieldItem_has_next >,<# else >)< /#if ></#list >")
23
23
public Integer insert(${classInfo.className} ${classInfo.className?uncap_first } );
24
24
25
25
@Delete(value = "delete from ${classInfo.tableName} where ${classInfo.tableName} _id=井{${classInfo.className?uncap_first } Id}")
You can’t perform that action at this time.
0 commit comments