fix(service): 修复 themeStyle=9999 时查询逻辑缺失

This commit is contained in:
2025-12-09 16:28:47 +08:00
parent 82c5552cd8
commit 5ea763b1db
2 changed files with 7 additions and 5 deletions

View File

@@ -36,11 +36,6 @@ public class ThemesController {
@Resource
private KeyboardThemeStylesService keyboardThemeStylesService;
@GetMapping("/list")
@Operation(summary = "查询所有主题", description = "查询所有主题列表接口")
public BaseResponse<List<KeyboradThemesRespVO>> list() {
return ResultUtils.success(themesService.selectAllThemes());
}
@GetMapping("/listByStyle")
@Operation(summary = "按风格查询主题", description = "按主题风格查询主题列表接口")

View File

@@ -28,6 +28,13 @@ public class KeyboradThemesServiceImpl extends ServiceImpl<KeyboradThemesMapper,
@Override
public List<KeyboradThemesRespVO> selectThemesByStyle(Long themeStyle) {
if (themeStyle == 9999) {
List<KeyboradThemes> themesList = this.lambdaQuery()
.eq(KeyboradThemes::getDeleted, false)
.eq(KeyboradThemes::getThemeStatus, false)
.list();
return BeanUtil.copyToList(themesList, KeyboradThemesRespVO.class);
}
List<KeyboradThemes> themesList = this.lambdaQuery()
.eq(KeyboradThemes::getDeleted, false)
.eq(KeyboradThemes::getThemeStatus, false)