| | |
| | | package com.ruoyi.shop.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.shop.domain.dto.MyAppointmentListDto; |
| | | import com.ruoyi.shop.domain.vo.MyAppointmentListVo; |
| | | import com.ruoyi.shop.mapper.shop.ShopAppointableTimeMapper; |
| | | import com.ruoyi.shop.service.shop.ShopAppointableTimeService; |
| | | import com.ruoyi.system.api.domain.poji.shop.ShopAppointableTime; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2025/5/26 15:15 |
| | | */ |
| | | @Service |
| | | public class ShopAppointableTimeServiceImpl extends ServiceImpl<ShopAppointableTimeMapper, ShopAppointableTime> implements ShopAppointableTimeService { |
| | | |
| | | |
| | | /** |
| | | * 分页查询我的预约 |
| | | * |
| | | * @param page |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MyAppointmentListVo> pageMyAppointmentList(Page<MyAppointmentListVo> page, MyAppointmentListDto dto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | return this.baseMapper.pageMyAppointmentList(page, userId, dto.getStatus()); |
| | | } |
| | | } |