fix: insertBatch
parent
a40f5944b5
commit
9bfb983f81
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue