mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
refactor: 移除警告代码
This commit is contained in:
-8
@@ -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>()
|
||||
|
||||
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
+1
-1
@@ -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()))
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user