|
@@ -12,6 +12,7 @@ import com.microsvc.toolkit.config.jwt.utils.JwtUserInfo;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.SubjectTypeEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.service.MusicSheetService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.SysConfigService;
|
|
|
+import com.yonge.cooleshow.biz.dal.wrapper.MusicSheetWrapper;
|
|
|
import com.yonge.cooleshow.common.constant.SysConfigConstant;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -48,7 +49,7 @@ public class TenantMusicSheetApplicationExtendController {
|
|
|
|
|
|
@PreAuthorize("@pcs.hasPermissions('tenantMusicSheetApplicationExtend/pageByApplication')")
|
|
|
@PostMapping({"/pageByApplication"})
|
|
|
- public R<PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> musicSheetPageByApplication(@RequestBody CbsMusicSheetWrapper.MusicSheetApplicationQuery var1){
|
|
|
+ public R<PageInfo<MusicSheetWrapper.MusicSheetApplication>> musicSheetPageByApplication(@RequestBody CbsMusicSheetWrapper.MusicSheetApplicationQuery var1){
|
|
|
|
|
|
return R.from(musicSheetService.tenantPage(var1));
|
|
|
}
|
|
@@ -56,14 +57,16 @@ public class TenantMusicSheetApplicationExtendController {
|
|
|
|
|
|
@PreAuthorize("@pcs.hasPermissions('tenantMusicSheetApplicationExtend/page')")
|
|
|
@PostMapping({"/page"})
|
|
|
- public R<PageInfo<CbsMusicSheetWrapper.MusicSheet>> musicSheetPage(@RequestBody CbsMusicSheetWrapper.MusicSheetQuery var1){
|
|
|
+ public R<PageInfo<MusicSheetWrapper.CbsMusicSheet>> musicSheetPage(@RequestBody CbsMusicSheetWrapper.MusicSheetQuery var1){
|
|
|
|
|
|
String cbsTenantAppId = sysConfigService.findConfigValue(SysConfigConstant.CBS_TENANT_APP_ID);
|
|
|
// 更新数据
|
|
|
var1.setAddAppId(Long.parseLong(cbsTenantAppId));
|
|
|
try {
|
|
|
+ PageInfo<CbsMusicSheetWrapper.MusicSheet> musicSheetPageInfo = this.musicFeignClientService.musicSheetPage(var1).feignData();
|
|
|
+ PageInfo<MusicSheetWrapper.CbsMusicSheet> convert = musicSheetPageInfo.convert(o -> JSONObject.parseObject(JSONObject.toJSONString(o), MusicSheetWrapper.CbsMusicSheet.class));
|
|
|
|
|
|
- return R.from(this.musicFeignClientService.musicSheetPage(var1).feignData());
|
|
|
+ return R.from(convert);
|
|
|
}catch (Exception e) {
|
|
|
log.error("查询曲目应用拓展表异常", e);
|
|
|
if(e instanceof BizException) {
|