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

@@ -561,6 +561,8 @@ public class PrinterServiceImpl implements PrinterService {
PrintTaskEntity task = new PrintTaskEntity();
task.setPrinterId(printer.getId());
task.setMpId(item.getId());
task.setPaper(printer.getPreferPaper());
task.setStatus(0);
task.setUrl(printUrl);
task.setHeight(printer.getPreferH());