|
@@ -49,7 +49,18 @@ public class TenantMusicSheetApplicationExtendController {
|
|
|
|
|
|
@PreAuthorize("@pcs.hasPermissions('tenantMusicSheetApplicationExtend/pageByApplication')")
|
|
|
@PostMapping({"/pageByApplication"})
|
|
|
- public R<PageInfo<MusicSheetWrapper.MusicSheetApplication>> musicSheetPageByApplication(@RequestBody CbsMusicSheetWrapper.MusicSheetApplicationQuery var1){
|
|
|
+ public R<PageInfo<MusicSheetWrapper.MusicSheetApplication>> musicSheetPageByApplication(@RequestBody MusicSheetWrapper.MusicSheetApplicationQuery var1){
|
|
|
+ if (StringUtils.isNotBlank(var1.getSubjectType())) {
|
|
|
+ Long categoryId = null;
|
|
|
+ if (SubjectTypeEnum.SUBJECT.name().equals(var1.getSubjectType())) {
|
|
|
+ categoryId= Long.parseLong(sysConfigService.findConfigValue(SysConfigConstant.TENANT_ALBUM_SUBJECT_TYPE_CATEGORY));
|
|
|
+ } else if (SubjectTypeEnum.ENSEMBLE.name().equals(var1.getSubjectType())) {
|
|
|
+ categoryId= Long.parseLong(sysConfigService.findConfigValue(SysConfigConstant.TENANT_ALBUM_ENSEMBLE_TYPE_CATEGORY));
|
|
|
+ } if (SubjectTypeEnum.MUSIC.name().equals(var1.getSubjectType())) {
|
|
|
+ categoryId = Long.parseLong(sysConfigService.findConfigValue(SysConfigConstant.TENANT_ALBUM_MUSIC_TYPE_CATEGORY));
|
|
|
+ }
|
|
|
+ var1.setMusicCategoryId(categoryId);
|
|
|
+ }
|
|
|
|
|
|
return R.from(musicSheetService.tenantPage(var1));
|
|
|
}
|