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 {
1717 public ${classInfo.className}  getById(Integer id);
1818
1919 @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 >")
2323 public Integer insert(${classInfo.className}  ${classInfo.className?uncap_first } );
2424
2525 @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