From b3e26017585761293055c7c13c03b4495318fe77 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 27 Oct 2025 09:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ycwl/basic/model/pc/printer/entity/PrinterEntity.java | 1 + src/main/resources/mapper/PrinterMapper.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/com/ycwl/basic/model/pc/printer/entity/PrinterEntity.java b/src/main/java/com/ycwl/basic/model/pc/printer/entity/PrinterEntity.java index 2a7db906..a75678c9 100644 --- a/src/main/java/com/ycwl/basic/model/pc/printer/entity/PrinterEntity.java +++ b/src/main/java/com/ycwl/basic/model/pc/printer/entity/PrinterEntity.java @@ -24,4 +24,5 @@ public class PrinterEntity { private Date updateTime; private Integer preferW; private Integer preferH; + private String preferPaper; } \ No newline at end of file diff --git a/src/main/resources/mapper/PrinterMapper.xml b/src/main/resources/mapper/PrinterMapper.xml index 567c5eb6..00513d2e 100644 --- a/src/main/resources/mapper/PrinterMapper.xml +++ b/src/main/resources/mapper/PrinterMapper.xml @@ -80,6 +80,7 @@ status, prefer_w, prefer_h, + prefer_paper, create_time, update_time ) VALUES ( @@ -91,6 +92,7 @@ #{status}, #{preferW}, #{preferH}, + #{preferPaper}, NOW(), NOW() ) @@ -145,6 +147,9 @@ prefer_h = #{preferH}, + + prefer_paper = #{preferPaper}, + update_time = NOW() WHERE id = #{id}