AI智能工牌的建表语句
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package com.rj.service.impl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.rj.mapper.ReservationMapper;
|
||||
import com.rj.pojo.Reservation;
|
||||
import com.rj.service.IReservationService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 李中华 ,spllzh
|
||||
* @since 2025-08-05
|
||||
*/
|
||||
@Service
|
||||
public class ReservationServiceImpl extends ServiceImpl<ReservationMapper, Reservation> implements IReservationService {
|
||||
|
||||
|
||||
/**
|
||||
* 保存预约信息
|
||||
* @param reservation 预约信息
|
||||
* @return 是否保存成功
|
||||
*/
|
||||
public boolean saveReservation(Reservation reservation) {
|
||||
return this.save(reservation);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据手机号查询预约信息
|
||||
* @param phone 手机号
|
||||
* @return 预约信息列表
|
||||
*/
|
||||
public List<Reservation> getReservationsByPhone(String phone) {
|
||||
return this.lambdaQuery().eq(Reservation::getPhone, phone).list();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user