feat(printer): 添加图片裁剪信息字段并实现裁剪功能

- 在 MemberPrintEntity 中新增 crop 字段用于存储裁剪信息
- 创建 Crop 类并添加 Lombok 注解以支持构造函数和 getter/setter
- 在 PrinterServiceImpl 中调用 smartCropAndFill 方法进行图片裁剪
- 设置默认旋转角度为 270 并将裁剪信息序列化后保存到数据库
- 更新 PrinterMapper.xml 配置文件以支持新字段的插入和查询
This commit is contained in:
2025-12-06 14:41:06 +08:00
parent fe3bda28b4
commit c42b055d5f
4 changed files with 9 additions and 0 deletions

View File

@@ -116,6 +116,7 @@
source_id,
orig_url,
crop_url,
crop,
quantity,
status,
create_time,
@@ -127,6 +128,7 @@
#{sourceId},
#{origUrl},
#{cropUrl},
#{crop},
1,
0,
NOW(),