You've already forked FrameTour-BE
feat(printer):优化用户照片添加逻辑并返回结果ID
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 修改 addUserPhoto 方法参数,使用 MemberPrintEntity 实体传参- 在 PrinterMapper.xml 中配置 insert 语句返回主键 ID- 更新 addUserPhotoFromSource 方法返回值为 List<Integer> - 添加异常处理和日志记录 - 调整 AppPrinterController 接口返回照片 ID 列表
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
<insert id="addUserPhoto">
|
||||
<insert id="addUserPhoto" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO member_print (
|
||||
member_id,
|
||||
scenic_id,
|
||||
@@ -108,8 +108,8 @@
|
||||
) VALUES (
|
||||
#{memberId},
|
||||
#{scenicId},
|
||||
#{url},
|
||||
#{url},
|
||||
#{origUrl},
|
||||
#{cropUrl},
|
||||
1,
|
||||
0,
|
||||
NOW(),
|
||||
|
||||
Reference in New Issue
Block a user