[update] 应用中心获取大模型分页列表、模型推理展示校验
This commit is contained in:
parent
8f5b9cc895
commit
1880e5aa4a
@ -230,7 +230,11 @@ public class ApplicationServiceImpl implements ApplicationService {
|
||||
return result;
|
||||
}
|
||||
for (ApplicationRespVO applicationRespVO : list) {
|
||||
applicationRespVO.setCreatorName(userMap.get(Long.parseLong(applicationRespVO.getCreator())).getNickname());
|
||||
String creator = applicationRespVO.getCreator();
|
||||
AdminUserRespDTO userRespDTO = userMap.get(Long.parseLong(creator));
|
||||
if (userRespDTO != null){
|
||||
applicationRespVO.setCreatorName(userRespDTO.getNickname());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@ -264,7 +268,11 @@ public class ApplicationServiceImpl implements ApplicationService {
|
||||
List<Long> ids = applicationDOPageResult.stream().map(applicationDO -> Long.parseLong(applicationDO.getCreator())).collect(Collectors.toList());
|
||||
Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMapApplication(ids);
|
||||
for (ApplicationRespVO applicationRespVO : result) {
|
||||
applicationRespVO.setCreatorName(userMap.get(Long.parseLong(applicationRespVO.getCreator())).getNickname());
|
||||
String creator = applicationRespVO.getCreator();
|
||||
AdminUserRespDTO userRespDTO = userMap.get(Long.parseLong(creator));
|
||||
if (userRespDTO != null){
|
||||
applicationRespVO.setCreatorName(userRespDTO.getNickname());
|
||||
}
|
||||
if (applicationRespVO.getAppLabel() != null && !applicationRespVO.getAppLabel().equals("")) {
|
||||
String[] split = applicationRespVO.getAppLabel().split(",");
|
||||
LambdaQueryWrapper<LabelDO> wrapper = new LambdaQueryWrapper<LabelDO>()
|
||||
|
@ -383,6 +383,9 @@ public class PromptTemplatesServiceImpl implements PromptTemplatesService {
|
||||
PageResult<PromptTemplatesRespVO> pageRespList = BeanUtils.toBean(pageDoList, PromptTemplatesRespVO.class);
|
||||
List<PromptTemplatesRespVO> templatesRespList = pageRespList.getList();
|
||||
|
||||
if (CollectionUtils.isEmpty(templatesRespList)){
|
||||
return pageRespList;
|
||||
}
|
||||
for (PromptTemplatesRespVO respVO : templatesRespList) {
|
||||
try {
|
||||
// 标签
|
||||
|
Loading…
x
Reference in New Issue
Block a user