【8.0.3】【system】新增证书设置用户id

pull/60/head
fengshuonan 2023-11-10 00:20:54 +08:00
parent 0739feb6f7
commit f0763f10c9
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ public class SysUserCertificateServiceImpl extends ServiceImpl<SysUserCertificat
return;
}
// 先设置证书的用户id
sysUserCertificateList.forEach(sysUserCertificate -> sysUserCertificate.setUserId(userId));
// 先清空当前绑定的证书信息
LambdaQueryWrapper<SysUserCertificate> deleteWrapper = new LambdaQueryWrapper<>();
deleteWrapper.eq(SysUserCertificate::getUserId, userId);