fix(service): 修复 themeStyle=9999 时查询逻辑缺失
This commit is contained in:
@@ -36,11 +36,6 @@ public class ThemesController {
|
|||||||
@Resource
|
@Resource
|
||||||
private KeyboardThemeStylesService keyboardThemeStylesService;
|
private KeyboardThemeStylesService keyboardThemeStylesService;
|
||||||
|
|
||||||
@GetMapping("/list")
|
|
||||||
@Operation(summary = "查询所有主题", description = "查询所有主题列表接口")
|
|
||||||
public BaseResponse<List<KeyboradThemesRespVO>> list() {
|
|
||||||
return ResultUtils.success(themesService.selectAllThemes());
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/listByStyle")
|
@GetMapping("/listByStyle")
|
||||||
@Operation(summary = "按风格查询主题", description = "按主题风格查询主题列表接口")
|
@Operation(summary = "按风格查询主题", description = "按主题风格查询主题列表接口")
|
||||||
|
|||||||
@@ -28,6 +28,13 @@ public class KeyboradThemesServiceImpl extends ServiceImpl<KeyboradThemesMapper,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<KeyboradThemesRespVO> selectThemesByStyle(Long themeStyle) {
|
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()
|
List<KeyboradThemes> themesList = this.lambdaQuery()
|
||||||
.eq(KeyboradThemes::getDeleted, false)
|
.eq(KeyboradThemes::getDeleted, false)
|
||||||
.eq(KeyboradThemes::getThemeStatus, false)
|
.eq(KeyboradThemes::getThemeStatus, false)
|
||||||
|
|||||||
Reference in New Issue
Block a user