fix: insertBatch

V0.5.x
jay 2023-06-12 22:01:13 +08:00
parent a40f5944b5
commit 9bfb983f81
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class SysUserRoleDataImpl implements ISysUserRoleData, IJPACommData<SysUs
@Override @Override
public long insertBatch(List<SysUserRole> list) { public long insertBatch(List<SysUserRole> list) {
return jpaQueryFactory.insert(tbSysRole).values(List.of(Objects.requireNonNull(MapstructUtils.convert(list, TbSysUserRole.class)))).execute(); return sysUserRoleRepository.saveAll(MapstructUtils.convert(list,TbSysUserRole.class)).size();
} }
@Override @Override