|
@@ -71,7 +71,7 @@ public class VersionInfoFacade extends VersionInfoServiceImpl {
|
|
|
modifierid = versionInfos.stream().map(ac -> ac.getModifier()).collect(Collectors.toList());
|
|
|
// 根据操作人的id获取操作人信息
|
|
|
Map<String, String> userNames = new HashMap<>();
|
|
|
- if (modifierid.size() > 0) {
|
|
|
+ if (ListUtil.isNotEmpty(modifierid)) {
|
|
|
RespDTO<Map<String, String>> userNamesDTO = userServiceClient.getUserInfoByIds(modifierid);
|
|
|
if (userNamesDTO == null || !CommonErrorCode.OK.getCode().equals(userNamesDTO.code)) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "获取所有用户信息失败");
|