台桌列表返回订单id
打印订单接口
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.czg.account.dto.print;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Data
|
||||
public class PrinterOrderDTO {
|
||||
@NotNull(message = "订单id不为空")
|
||||
private Long orderId;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
package com.czg.account.dto.table;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 台桌配置 实体类。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-02-13
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ShopTableClearDTO implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
@NotNull
|
||||
private Integer id;
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.print.PrinterAddDTO;
|
||||
import com.czg.account.dto.print.PrinterEditDTO;
|
||||
import com.czg.account.dto.print.PrinterOrderDTO;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.account.entity.PrintMachine;
|
||||
@@ -18,4 +19,6 @@ public interface PrintMachineService extends IService<PrintMachine> {
|
||||
|
||||
Boolean edit(Long shopId, PrinterEditDTO printerEditDTO);
|
||||
|
||||
Boolean printOrder(Long shopId, PrinterOrderDTO printerOrderDTO);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,11 @@ package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.table.ShopTableAddDTO;
|
||||
import com.czg.account.dto.table.ShopTableBindDTO;
|
||||
import com.czg.account.dto.table.ShopTableClearDTO;
|
||||
import com.czg.account.dto.table.ShopTableDTO;
|
||||
import com.czg.account.entity.ShopTable;
|
||||
import com.czg.account.vo.ShopTableVO;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
@@ -27,4 +31,9 @@ public interface ShopTableService extends IService<ShopTable> {
|
||||
|
||||
Boolean bind(Long shopId, ShopTableBindDTO shopTableBindDTO);
|
||||
|
||||
Boolean updateInfo(long shopId, ShopTableDTO shopTableDTO);
|
||||
|
||||
Boolean clear(long shopId, ShopTableClearDTO shopTableClearDTO);
|
||||
|
||||
Page<ShopTableVO> pageInfo(Long shopId, Integer areaId, String tableCode, String status, String name);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
package com.czg.account.vo;
|
||||
|
||||
import com.czg.account.entity.ShopTable;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.*;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 台桌配置 实体类。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-02-13
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class ShopTableVO extends ShopTable {
|
||||
private Long orderId;
|
||||
private Long userId;
|
||||
}
|
||||
Reference in New Issue
Block a user