|
@@ -124,7 +124,7 @@ public class RetrievalFacade extends RetrievalServiceImpl {
|
|
|
|
|
|
List<RetrievalMapping> addOrUpdateRetrievalMappings = new ArrayList<>();
|
|
|
retrievalMappings.stream().filter(i->retrievalIds.contains(i.getRetrievalId())).forEach(i->{
|
|
|
- i.setIsDeleted("Y");
|
|
|
+ i.setIsDeleted(IsDeleteEnum.Y.getKey());
|
|
|
i.setGmtModified(now);
|
|
|
i.setModifier(userId);
|
|
|
addOrUpdateRetrievalMappings.add(i);
|
|
@@ -168,7 +168,7 @@ public class RetrievalFacade extends RetrievalServiceImpl {
|
|
|
IPage<RetrievalListDTO> ipage = this.getRetrievalList(retrievalListVO);
|
|
|
List<String> ids = ipage.getRecords().stream().map(i->i.getOperatorName()).collect(Collectors.toList());
|
|
|
RespDTO<Map<String, String>> respDTO = userServiceClient.getUserInfoByIds(ids);
|
|
|
- if (respDTO == null || !"0".equals(respDTO.code)) {
|
|
|
+ if (respDTO == null || !CommonErrorCode.OK.getCode().equals(respDTO.code)) {
|
|
|
throw new CommonException(CommonErrorCode.RPC_ERROR,
|
|
|
"获取用户信息失败");
|
|
|
}
|