|
@@ -241,15 +241,18 @@ public class SignPfxFileController extends BladeController {
|
|
|
Iterator<SaveUserInfoByProjectDTO> iterator = contractUserList.iterator();
|
|
|
while (iterator.hasNext()){
|
|
|
SaveUserInfoByProjectDTO next = iterator.next();
|
|
|
-
|
|
|
- if(next.getRoleId().equals(childVo.getId().toString())){
|
|
|
- //角色相符
|
|
|
- SignPfxFile userSignPfx = this.signPfxFileService.getOne(Wrappers.<SignPfxFile>lambdaQuery().eq(SignPfxFile::getCertificateUserId, next.getUserId()));
|
|
|
- if(userSignPfx == null){
|
|
|
- iterator.remove();
|
|
|
- continue;
|
|
|
+ try{
|
|
|
+ if(next.getRoleId() != null && next.getRoleId().equals(childVo.getId().toString())){
|
|
|
+ //角色相符
|
|
|
+ SignPfxFile userSignPfx = this.signPfxFileService.getOne(Wrappers.<SignPfxFile>lambdaQuery().eq(SignPfxFile::getCertificateUserId, next.getUserId()));
|
|
|
+ if(userSignPfx == null){
|
|
|
+ iterator.remove();
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ childPfxUserVo.getSignPfxFileList().add(userSignPfx);
|
|
|
}
|
|
|
- childPfxUserVo.getSignPfxFileList().add(userSignPfx);
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
//设置子集
|
|
@@ -277,7 +280,7 @@ public class SignPfxFileController extends BladeController {
|
|
|
while (iterator.hasNext()){
|
|
|
SaveUserInfoByProjectDTO next = iterator.next();
|
|
|
|
|
|
- if(next.getRoleId().equals(adminVo.getRoleId().toString())){
|
|
|
+ if(next.getRoleId() != null && next.getRoleId().equals(adminVo.getRoleId().toString())){
|
|
|
//角色相符
|
|
|
SignPfxFile userSignPfx = this.signPfxFileService.getOne(Wrappers.<SignPfxFile>lambdaQuery().eq(SignPfxFile::getCertificateUserId, next.getUserId()));
|
|
|
if(userSignPfx == null){
|