比如: R.data(NoticeWrapper.build().pageVO(pages))-> Notice,冲突NoticeVO

Blade 未结 1 539
| ⃢
| ⃢ 2024-03-24 17:57
悬赏:10

一、该问题的重现步骤是什么?

  1.  我已经看了很久,不解。头疼?

    比如:  

    最终。能吗?

  2. public R> page(@ApiIgnore @RequestParam Map notice,@ApiIgnore NoticeVO noticeVO, Query query) {
       IPage pages1 = noticeService.selectNoticePage(Condition.getPage(query), noticeVO);
       return R.data(NoticeWrapper.build().pageVO(pages));
    }

    一.NoticeWrapper->NoticeVO 我要传 ,

      二.sql ,vo


第一种。

  1. public R> page(@ApiIgnore @RequestParam Map notice,@ApiIgnore NoticeVO noticeVO, Query query) {
       IPage pages1 = noticeService.selectNoticePage(Condition.getPage(query), noticeVO);
       return R.data(pages1);--≠》R.data(NoticeWrapper.build().pageVO(pages));
    }

 但是不行pageVO(pages) ,调用pageVO(pages1)--》Notice,冲突NoticeVO.

2. 种。

public R> page(@ApiIgnore @RequestParam Map notice,@ApiIgnore NoticeVO noticeVO, Query query) {
   IPage pages = noticeService.page(Condition.getPage(query), Condition.getQueryWrapper(notice, Notice.class));
   return R.data(NoticeWrapper.build().pageVO(pages));
}

 最基本。MySQL , 还有vo,都没有。

3.有没有其他的?

1条回答
  •  zhx1994
    zhx1994 (楼主)
    2024-03-24 19:37

    类型转换你要自己写

    作者追问:2024-03-24 19:37

    已经搞定了,谢谢

    0 讨论(0)
提交回复