扫码排队增删改查接口

This commit is contained in:
2024-09-13 11:49:20 +08:00
parent b1e5ae969b
commit 62c28fe2f6
16 changed files with 865 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
package cn.ysk.cashier.mybatis.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.time.Instant;
@Getter
@Setter
@Entity
@Table(name = "tb_call_queue")
public class TbCallQueue {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
private Integer id;
@Column(name = "call_table_id")
private Integer callTableId;
@Size(max = 255)
@Column(name = "phone")
private String phone;
@Size(max = 255)
@Column(name = "name")
private String name;
@Size(max = 255)
@Column(name = "shop_name")
private String shopName;
@Column(name = "shop_id")
private Integer shopId;
@Column(name = "state")
private Byte state;
@Column(name = "create_time")
private Instant createTime;
@Column(name = "call_time")
private Instant callTime;
@Column(name = "call_count")
private Integer callCount;
@Column(name = "pass_time")
private Instant passTime;
@Column(name = "cancel_time")
private Instant cancelTime;
@Column(name = "confirm_time")
private Instant confirmTime;
@Size(max = 255)
@Column(name = "note")
private String note;
@Column(name = "user_id")
private Integer userId;
@Size(max = 255)
@Column(name = "open_id")
private String openId;
@Column(name = "sub_state")
private Integer subState;
}

View File

@@ -0,0 +1,57 @@
package cn.ysk.cashier.mybatis.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.time.Instant;
@Getter
@Setter
@Entity
@Table(name = "tb_call_table")
public class TbCallTable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
private Integer id;
@Size(max = 255)
@Column(name = "name")
private String name;
@Size(max = 255)
@Column(name = "note")
private String note;
@Column(name = "wait_time")
private Integer waitTime;
@Size(max = 255)
@Column(name = "prefix")
private String prefix;
@Column(name = "start")
private Integer start;
@Column(name = "near_num")
private Integer nearNum;
@Column(name = "state")
private Byte state;
@Column(name = "shop_id")
private Integer shopId;
@Size(max = 255)
@Column(name = "qrcode")
private String qrcode;
@Column(name = "create_time")
private Instant createTime;
@Column(name = "update_time")
private Instant updateTime;
}

View File

@@ -0,0 +1,18 @@
package cn.ysk.cashier.mybatis.mapper;
import cn.ysk.cashier.mybatis.entity.TbCallQueue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description 针对表【tb_call_queue】的数据库操作Mapper
* @createDate 2024-09-12 15:34:30
* @Entity cn.ysk.cashier.mybatis.entity.TbCallQueue
*/
public interface TbCallQueueMapper extends BaseMapper<TbCallQueue> {
}

View File

@@ -0,0 +1,18 @@
package cn.ysk.cashier.mybatis.mapper;
import cn.ysk.cashier.mybatis.entity.TbCallTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description 针对表【tb_call_table】的数据库操作Mapper
* @createDate 2024-09-12 15:07:15
* @Entity cn.ysk.cashier.mybatis.entity.TbCallTable
*/
public interface TbCallTableMapper extends BaseMapper<TbCallTable> {
}

View File

@@ -0,0 +1,13 @@
package cn.ysk.cashier.mybatis.service;
import cn.ysk.cashier.mybatis.entity.TbCallQueue;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description 针对表【tb_call_queue】的数据库操作Service
* @createDate 2024-09-12 15:34:30
*/
public interface TbCallQueueService extends IService<TbCallQueue> {
}

View File

@@ -0,0 +1,13 @@
package cn.ysk.cashier.mybatis.service;
import cn.ysk.cashier.mybatis.entity.TbCallTable;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description 针对表【tb_call_table】的数据库操作Service
* @createDate 2024-09-12 15:07:15
*/
public interface TbCallTableService extends IService<TbCallTable> {
}

View File

@@ -0,0 +1,22 @@
package cn.ysk.cashier.mybatis.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ysk.cashier.mybatis.entity.TbCallQueue;
import cn.ysk.cashier.mybatis.service.TbCallQueueService;
import cn.ysk.cashier.mybatis.mapper.TbCallQueueMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description 针对表【tb_call_queue】的数据库操作Service实现
* @createDate 2024-09-12 15:34:30
*/
@Service
public class TbCallQueueServiceImpl extends ServiceImpl<TbCallQueueMapper, TbCallQueue>
implements TbCallQueueService{
}

View File

@@ -0,0 +1,22 @@
package cn.ysk.cashier.mybatis.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ysk.cashier.mybatis.entity.TbCallTable;
import cn.ysk.cashier.mybatis.service.TbCallTableService;
import cn.ysk.cashier.mybatis.mapper.TbCallTableMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description 针对表【tb_call_table】的数据库操作Service实现
* @createDate 2024-09-12 15:07:15
*/
@Service
public class TbCallTableServiceImpl extends ServiceImpl<TbCallTableMapper, TbCallTable>
implements TbCallTableService{
}