Browse Source

代码生成模板主子表删除方法缺少事务

tags/v3.3.0
RuoYi 3 years ago
parent
commit
73b38b143b
  1. 3
      ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/serviceImpl.java.vm

3
ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/serviceImpl.java.vm

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

Loading…
Cancel
Save