feat(printer): 添加打印任务分页查询和重新打印功能- 引入 PageHelper 和 PageInfo 实现分页查询
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

- 新增 PrintTaskMapper 接口方法 queryByCondition 和 updateStatus
- 扩展 PrintTaskEntity 实体类,新增 mpId 和 paper 字段- 在 PrinterController 中新增 /task/page 和 /task/reprint/{id} 接口- 更新 PrintTaskMapper.xml,添加查询和更新状态的 SQL语句- 优化打印任务插入逻辑,补充 mpId 和 paper 字段赋值
This commit is contained in:
2025-10-27 13:58:59 +08:00
parent e805fdac9a
commit 2a662ae86d
6 changed files with 75 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ public class PrintTaskEntity {
@TableField("height")
private Integer height;
private Integer mpId;
private String paper;
@TableField("create_time")
private Date createTime;

View File

@@ -0,0 +1,19 @@
package com.ycwl.basic.model.pc.printer.req;
import com.ycwl.basic.model.common.BaseQueryParameterReq;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class PrintTaskReqQuery extends BaseQueryParameterReq {
/**
* 打印机ID
*/
private Integer printerId;
/**
* 状态:0未开始,1已完成,2正在处理,3已失败
*/
private Integer status;
}