refactor: 移除警告代码

This commit is contained in:
2026-10-09 13:37:52 +08:00
parent e5050317ec
commit aa87168437
4 changed files with 3 additions and 11 deletions
@@ -510,14 +510,6 @@ public class AgentCompanyLlmSettingsServiceImpl implements AgentCompanyLlmSettin
.orderByAsc(AgentCompanyLlmProviderPO::getId));
}
private List<AgentCompanyLlmModelPO> listModels(Long companyId) {
return modelMapper.selectList(new LambdaQueryWrapper<AgentCompanyLlmModelPO>()
.eq(AgentCompanyLlmModelPO::getCompanyId, companyId)
.orderByDesc(AgentCompanyLlmModelPO::getIsDefault)
.orderByAsc(AgentCompanyLlmModelPO::getProviderId)
.orderByAsc(AgentCompanyLlmModelPO::getId));
}
/** 聊天/runtime:仅启用中的模型 */
private List<AgentCompanyLlmModelPO> listEnabledModels(Long companyId) {
return modelMapper.selectList(new LambdaQueryWrapper<AgentCompanyLlmModelPO>()
@@ -167,7 +167,7 @@ public class CatalogLookupAdapter {
if (ids.isEmpty()) {
return Map.of();
}
return productMapper.selectBatchIds(ids).stream()
return productMapper.selectByIds(ids).stream()
.filter(p -> companyId.equals(p.getCompanyId()))
.collect(Collectors.toMap(ProductPO::getId, Function.identity(), (a, b) -> a));
}
@@ -66,7 +66,7 @@ public class PddGoodsLookupAdapter {
return new Slice<>(List.of(), false);
}
List<PddGoodsPO> goods = pddGoodsMapper.selectBatchIds(goodsRowIds).stream()
List<PddGoodsPO> goods = pddGoodsMapper.selectByIds(goodsRowIds).stream()
.filter(g -> companyId.equals(g.getCompanyId()))
.filter(g -> !Integer.valueOf(1).equals(g.getIsPlatformDeleted()))
.filter(g -> shopId == null || shopId.equals(g.getShopId()))
@@ -218,7 +218,7 @@ public class OpTeamServiceImpl extends ServiceImpl<OpTeamMapper, OpTeamPO> imple
return Collections.emptyMap();
}
Map<Long, String> names = new HashMap<>();
for (UserPO user : userMapper.selectBatchIds(userIds)) {
for (UserPO user : userMapper.selectByIds(userIds)) {
names.put(user.getId(), user.getRealName());
}
return names;