Update ServiceImpl.ftl (#318)

生成代码 deleteAll 方法 参数错误
pull/343/head
NM$L 2020-04-23 12:09:10 +08:00 committed by GitHub
parent 66f5704913
commit c847209536
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
//@CacheEvict(allEntries = true)
public void deleteAll(${pkColumnType}[] ids) {
for (${pkColumnType} id : ids) {
for (${pkColumnType} ${pkChangeColName} : ids) {
${changeClassName}Repository.deleteById(${pkChangeColName});
}
}
@ -153,4 +153,4 @@ public class ${className}ServiceImpl implements ${className}Service {
}
FileUtil.downloadExcel(list, response);
}
}
}