You've already forked FrameTour-BE
feat(pc): 添加打印机管理功能- 新增 PrinterManageController 类实现打印机管理接口
- 添加打印机列表查询、详情、创建、更新、删除等功能 - 新增打印机状态、首选尺寸、当前使用设备更新接口 - 在 PrinterMapper.xml 中添加相关 SQL 语句
This commit is contained in:
@@ -78,6 +78,8 @@
|
||||
printers,
|
||||
use_printer,
|
||||
status,
|
||||
prefer_w,
|
||||
prefer_h,
|
||||
create_time,
|
||||
update_time
|
||||
) VALUES (
|
||||
@@ -87,6 +89,8 @@
|
||||
#{printers},
|
||||
#{usePrinter},
|
||||
#{status},
|
||||
#{preferW},
|
||||
#{preferH},
|
||||
NOW(),
|
||||
NOW()
|
||||
)
|
||||
@@ -116,14 +120,33 @@
|
||||
<!-- 更新 -->
|
||||
<update id="update">
|
||||
UPDATE printer
|
||||
SET
|
||||
access_key = #{accessKey},
|
||||
name = #{name},
|
||||
scenic_id = #{scenicId},
|
||||
printers = #{printers},
|
||||
use_printer = #{usePrinter},
|
||||
status = #{status},
|
||||
<set>
|
||||
<if test="accessKey != null">
|
||||
access_key = #{accessKey},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name},
|
||||
</if>
|
||||
<if test="scenicId != null">
|
||||
scenic_id = #{scenicId},
|
||||
</if>
|
||||
<if test="printers != null">
|
||||
printers = #{printers},
|
||||
</if>
|
||||
<if test="usePrinter != null">
|
||||
use_printer = #{usePrinter},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="preferW != null">
|
||||
prefer_w = #{preferW},
|
||||
</if>
|
||||
<if test="preferH != null">
|
||||
prefer_h = #{preferH},
|
||||
</if>
|
||||
update_time = NOW()
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
<update id="updateTaskStatus">
|
||||
|
Reference in New Issue
Block a user