From 0a92ccda431002d31f07a39821e48d670ffc3446 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期六, 04 一月 2025 18:02:49 +0800 Subject: [PATCH] 修改bug --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianSubscribeController.java | 26 +++++++++++--------------- 1 files changed, 11 insertions(+), 15 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianSubscribeController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianSubscribeController.java index 6f6fe87..af7a01b 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianSubscribeController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianSubscribeController.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.page.PageInfo; import com.ruoyi.common.core.web.page.TableDataInfo; import com.ruoyi.common.security.service.TokenService; import com.ruoyi.common.security.utils.SecurityUtils; @@ -39,16 +40,13 @@ @GetMapping("/shop/list") @ApiOperation(value = "预约列表", tags = {"门店-预约列表"}) - public TableDataInfo<TechnicianSubscribeVO> shoplist(@ApiParam(value = "状态") Integer status, - @ApiParam("电话")String phone, - @ApiParam("姓名")String name, - @ApiParam("服务方式:1=上门服务,2=到店服务")Integer serviceMode - ) { + public R<PageInfo<TechnicianSubscribeVO>> shoplist(@ApiParam(value = "状态") Integer status, + @ApiParam("电话")String phone, + @ApiParam("姓名")String name, + @ApiParam("服务方式:1=上门服务,2=到店服务")Integer serviceMode, Integer pageCurr, Integer pageSize) { Integer objectId = tokenService.getLoginUser().getSysUser().getObjectId(); - startPage(); - List<TechnicianSubscribeVO> list = technicianSubscribeService - .getTechnicianSubscribeByUserAndShop1(Long.valueOf(objectId),status,phone,name,serviceMode); - return getDataTable(list); + PageInfo<TechnicianSubscribeVO> pageInfo = technicianSubscribeService.getTechnicianSubscribeByUserAndShop1(Long.valueOf(objectId), status, phone, name, serviceMode, pageCurr, pageSize); + return R.ok(pageInfo); } /** @@ -56,12 +54,10 @@ */ @GetMapping("/list") @ApiOperation(value = "预约列表", notes = "预约列表", tags = {"小程序-个人中心-门店管理-预约列表"}) - public TableDataInfo<TechnicianSubscribeVO> list(@ApiParam(value = "状态") Integer status, - @ApiParam(value = "门店id") @RequestParam Long shopId) { - startPage(); - List<TechnicianSubscribeVO> list = technicianSubscribeService - .getTechnicianSubscribeByUserAndShop(shopId,status); - return getDataTable(list); + public R<PageInfo<TechnicianSubscribeVO>> list(@ApiParam(value = "状态") Integer status, + @ApiParam(value = "门店id") @RequestParam Long shopId, Integer current, Integer size) { + PageInfo<TechnicianSubscribeVO> pageInfo = technicianSubscribeService.getTechnicianSubscribeByUserAndShop(shopId, status, current, size); + return R.ok(pageInfo); } /** -- Gitblit v1.7.1