Update ServiceImpl.ftl

生成代码 deleteAll 方法 参数错误
pull/318/head
NM$L 2020-03-30 18:26:47 +08:00 committed by GitHub
parent 286a48368f
commit ea3ac2991b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ public class ${className}ServiceImpl implements ${className}Service {
@Override @Override
//@CacheEvict(allEntries = true) //@CacheEvict(allEntries = true)
public void deleteAll(${pkColumnType}[] ids) { public void deleteAll(${pkColumnType}[] ids) {
for (${pkColumnType} id : ids) { for (${pkColumnType} ${pkChangeColName} : ids) {
${changeClassName}Repository.deleteById(${pkChangeColName}); ${changeClassName}Repository.deleteById(${pkChangeColName});
} }
} }
@ -153,4 +153,4 @@ public class ${className}ServiceImpl implements ${className}Service {
} }
FileUtil.downloadExcel(list, response); FileUtil.downloadExcel(list, response);
} }
} }