5 Commits

Author SHA1 Message Date
木鱼和尚
d71289344f Merge 94a3da57f3 into 6f497b142e 2025-07-02 23:38:56 +08:00
jerryjzhang
6f497b142e [fix][chat]Memory deletion should disable it first.
Some checks failed
supersonic CentOS CI / build (21) (push) Has been cancelled
supersonic mac CI / build (21) (push) Has been cancelled
supersonic ubuntu CI / build (21) (push) Has been cancelled
supersonic windows CI / build (21) (push) Has been cancelled
2025-07-02 18:59:56 +08:00
lysgithub0302
94a3da57f3 (fix)(webapp)Fix the issue where two '%%' are displayed in the percentage presentation
0 —>0%  but 0.9112->91.12%%
2025-06-16 18:14:23 +08:00
lysgithub0302
ac31870890 (fix)(headless) Metric search will retrieve the metrics of other semantic models 2025-06-16 18:05:43 +08:00
lysgithub0302
bd9bc6b40f (fix)(headless)Dimensional search will retrieve the dimensions of other semantic models 2025-06-16 18:00:56 +08:00
4 changed files with 25 additions and 10 deletions

View File

@@ -26,7 +26,6 @@ import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
@@ -110,6 +109,14 @@ public class MemoryServiceImpl implements MemoryService, CommandLineRunner {
@Override
public void batchDelete(List<Long> ids) {
QueryWrapper<ChatMemoryDO> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().in(ChatMemoryDO::getId, ids);
List<ChatMemoryDO> chatMemoryDOS = chatMemoryRepository.getMemories(queryWrapper);
chatMemoryDOS.forEach(chatMemoryDO -> {
if (MemoryStatus.ENABLED.toString().equals(chatMemoryDO.getStatus().trim())) {
disableMemory(chatMemoryDO);
}
});
chatMemoryRepository.batchDelete(ids);
}

View File

@@ -83,10 +83,13 @@ public class DimensionRepositoryImpl implements DimensionRepository {
}
if (StringUtils.isNotBlank(dimensionFilter.getKey())) {
String key = dimensionFilter.getKey();
queryWrapper.lambda().like(DimensionDO::getName, key).or()
.like(DimensionDO::getBizName, key).or().like(DimensionDO::getDescription, key)
.or().like(DimensionDO::getAlias, key).or()
.like(DimensionDO::getCreatedBy, key);
queryWrapper.lambda()
.and(wrapper -> wrapper
.like(DimensionDO::getName, key).or()
.like(DimensionDO::getBizName, key).or().like(DimensionDO::getDescription, key)
.or().like(DimensionDO::getAlias, key).or()
.like(DimensionDO::getCreatedBy, key)
);
}
return dimensionDOMapper.selectList(queryWrapper);

View File

@@ -109,9 +109,14 @@ public class MetricRepositoryImpl implements MetricRepository {
}
if (StringUtils.isNotBlank(metricFilter.getKey())) {
String key = metricFilter.getKey();
queryWrapper.lambda().like(MetricDO::getName, key).or().like(MetricDO::getBizName, key)
.or().like(MetricDO::getDescription, key).or().like(MetricDO::getAlias, key)
.or().like(MetricDO::getCreatedBy, key);
queryWrapper.lambda()
.and(wrapper -> wrapper
.like(MetricDO::getName, key)
.or().like(MetricDO::getBizName, key)
.or().like(MetricDO::getDescription, key)
.or().like(MetricDO::getAlias, key)
.or().like(MetricDO::getCreatedBy, key)
);
}
return metricDOMapper.selectList(queryWrapper);

View File

@@ -43,8 +43,8 @@ const Table: React.FC<Props> = ({ data, size, loading, question, onApplyAuth })
{`${
value
? formatByDataFormatType(value, dataFormatType, dataFormat)
: 0
}%`}
: '0%'
}`}
</div>
);
}