|
@@ -91,13 +91,11 @@ public class MusicSheetApplicationExtendController {
|
|
|
|
|
|
@PreAuthorize("@pcs.hasPermissions('musicSheetApplicationExtend/page')")
|
|
|
@PostMapping({"/page"})
|
|
|
- public R<PageInfo> musicSheetPage(@RequestBody CbsMusicSheetWrapper.MusicSheetQuery var1) {
|
|
|
+ public R<PageInfo<CbsMusicSheetWrapper.MusicSheet>> musicSheetPage(@RequestBody CbsMusicSheetWrapper.MusicSheetQuery var1) {
|
|
|
var1.setAddAppId(Long.parseLong(openFeignClientConfigProperties.getAppId()));
|
|
|
try {
|
|
|
PageInfo<CbsMusicSheetWrapper.MusicSheet> info = this.musicFeignClientService.musicSheetPage(var1).feignData();
|
|
|
- if (CollectionUtils.isEmpty(info.getRows())) {
|
|
|
- return R.from(info);
|
|
|
- }else {
|
|
|
+ if (CollectionUtils.isNotEmpty(info.getRows())) {
|
|
|
List<MusicSheetWrapper.CbsMusicSheet> result = new ArrayList<>();
|
|
|
for (CbsMusicSheetWrapper.MusicSheet row : info.getRows()) {
|
|
|
MusicSheetWrapper.CbsMusicSheet cbsMusicSheet = JSONObject.parseObject(JSONObject.toJSONString(row), MusicSheetWrapper.CbsMusicSheet.class);
|
|
@@ -111,8 +109,8 @@ public class MusicSheetApplicationExtendController {
|
|
|
result.add(cbsMusicSheet);
|
|
|
}
|
|
|
PageUtil.pageInfo(info, result);
|
|
|
- return R.from(info);
|
|
|
}
|
|
|
+ return R.from(info);
|
|
|
} catch (Exception e) {
|
|
|
log.error("查询曲目应用拓展表异常", e);
|
|
|
if (e instanceof BizException) {
|