!369 代码生成模板缺少事务

Merge pull request !369 from lihy2021/N/A
This commit is contained in:
若依 2021-11-18 09:47:35 +00:00 committed by Gitee
commit 084907eeca
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
* @param ${pkColumn.javaField} ${functionName}主键
* @return 结果
*/
#if($table.sub)
@Transactional
#end
@Override
public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField})
{