|
@@ -394,7 +394,7 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
updateWrapper.eq(SysUserSub::getUserId, userSignCertDTO.getUserId());
|
|
|
updateWrapper.eq(SysUserSub::getDeptId, sysUser.getDeptId());
|
|
|
if (userSignCertDTO.getSubjectLocation() != null) {
|
|
|
- updateWrapper.in(SysUserSub::getSubjectLocation, userSignCertDTO.getSubjectLocation());
|
|
|
+ updateWrapper.eq(SysUserSub::getSubjectLocation, userSignCertDTO.getSubjectLocation());
|
|
|
}
|
|
|
updateWrapper.set(SysUserSub::getAgreementUrl, userSignCertDTO.getAgreementUrl());
|
|
|
updateWrapper.set(SysUserSub::getUpdateUser, SecurityUtils.getUser().getId());
|
|
@@ -415,7 +415,7 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
LambdaUpdateWrapper<SysUserSub> updateWrapper = Wrappers.lambdaUpdate();
|
|
|
updateWrapper.eq(SysUserSub::getUserId, userSignCertDTO.getUserId());
|
|
|
if (userSignCertDTO.getSubjectLocation() != null) {
|
|
|
- updateWrapper.in(SysUserSub::getSubjectLocation, userSignCertDTO.getSubjectLocation());
|
|
|
+ updateWrapper.eq(SysUserSub::getSubjectLocation, userSignCertDTO.getSubjectLocation());
|
|
|
}
|
|
|
if (StrUtil.isNotBlank(userSignCertDTO.getAgreementUrl())) {
|
|
|
updateWrapper.set(SysUserSub::getAgreementUrl, userSignCertDTO.getAgreementUrl());
|
|
@@ -457,7 +457,7 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
// 查询当前用户关联的userSub
|
|
|
LambdaQueryWrapper<SysUserSub> userSubWrapper = Wrappers.lambdaQuery();
|
|
|
userSubWrapper.eq(SysUserSub::getUserId, userId);
|
|
|
- userSubWrapper.eq(SysUserSub::getDeptId, dept.getDeptId());
|
|
|
+ userSubWrapper.eq(SysUserSub::getDeptId, sysUser.getDeptId());
|
|
|
userSubWrapper.eq(SysUserSub::getSubjectLocation, userSignCertDTO.getSubjectLocation());
|
|
|
List<SysUserSub> userSubList = sysUserSubService.list(userSubWrapper);
|
|
|
|