|
@@ -397,7 +397,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
}
|
|
}
|
|
|
sysUserJzgInfoService.updateBatchById(sysUserJzgInfoList);
|
|
sysUserJzgInfoService.updateBatchById(sysUserJzgInfoList);
|
|
|
} else {
|
|
} else {
|
|
|
- for (String id : isEnableVo.getId()) {
|
|
|
|
|
|
|
+ for (String id : isEnableVo.getIds()) {
|
|
|
SysUserJzgInfo sysUserJzgInfo = sysUserJzgInfoService.getUserByUserId(id);
|
|
SysUserJzgInfo sysUserJzgInfo = sysUserJzgInfoService.getUserByUserId(id);
|
|
|
if (sysUserJzgInfo == null) {
|
|
if (sysUserJzgInfo == null) {
|
|
|
throw new SystemException("该用户不存在");
|
|
throw new SystemException("该用户不存在");
|
|
@@ -641,7 +641,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
|
|
|
|
|
public boolean uploadFile(String fileId,String fileType,String userId){
|
|
public boolean uploadFile(String fileId,String fileType,String userId){
|
|
|
List<SysUserJzgInfoFile> sysUserJzgInfoFiles = sysUserJzgInfoFileService.list(
|
|
List<SysUserJzgInfoFile> sysUserJzgInfoFiles = sysUserJzgInfoFileService.list(
|
|
|
- (new LambdaQueryWrapper<SysUserJzgInfoFile>().eq(SysUserJzgInfoFile::getUserJzgInfoId, userId)
|
|
|
|
|
|
|
+ (new LambdaQueryWrapper<SysUserJzgInfoFile>().eq(SysUserJzgInfoFile::getUserId, userId)
|
|
|
.eq(SysUserJzgInfoFile::getFileType, fileType)));
|
|
.eq(SysUserJzgInfoFile::getFileType, fileType)));
|
|
|
if(sysUserJzgInfoFiles.size()>0) {
|
|
if(sysUserJzgInfoFiles.size()>0) {
|
|
|
sysUserJzgInfoFileService.removeBatchByIds(sysUserJzgInfoFiles);
|
|
sysUserJzgInfoFileService.removeBatchByIds(sysUserJzgInfoFiles);
|
|
@@ -681,7 +681,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
|
|
|
|
|
public void verifyFile(SysUserVo sysUserVo,String userId){
|
|
public void verifyFile(SysUserVo sysUserVo,String userId){
|
|
|
List<SysUserJzgInfoFile> fileList = sysUserJzgInfoFileService.list(new LambdaQueryWrapper<SysUserJzgInfoFile>()
|
|
List<SysUserJzgInfoFile> fileList = sysUserJzgInfoFileService.list(new LambdaQueryWrapper<SysUserJzgInfoFile>()
|
|
|
- .eq(SysUserJzgInfoFile::getUserJzgInfoId, userId));
|
|
|
|
|
|
|
+ .eq(SysUserJzgInfoFile::getUserId, userId));
|
|
|
if(checkFileModify(fileList,"sfz1",sysUserVo.getSfz1())){
|
|
if(checkFileModify(fileList,"sfz1",sysUserVo.getSfz1())){
|
|
|
uploadFile(sysUserVo.getSfz1(),"sfz1",userId);
|
|
uploadFile(sysUserVo.getSfz1(),"sfz1",userId);
|
|
|
}
|
|
}
|