1. fix bugs
This commit is contained in:
2025-10-09 13:40:59 +08:00
parent bfc923742a
commit c863907310

View File

@@ -181,7 +181,7 @@ public class KioskServiceImpl implements IKioskApiService {
}).toList(); }).toList();
orderDetailPhotoAttachmentRService.saveBatch(photoRList); orderDetailPhotoAttachmentRService.saveBatch(photoRList);
if (!item.getStickers().isEmpty()) { if (CollectionUtil.isNotEmpty(item.getStickers())) {
List<StickersAttachmentREntity> stickerRList = item.getStickers().stream().map(s -> { List<StickersAttachmentREntity> stickerRList = item.getStickers().stream().map(s -> {
StickersAttachmentREntity r = new StickersAttachmentREntity(); StickersAttachmentREntity r = new StickersAttachmentREntity();
r.setStickersId(s); r.setStickersId(s);
@@ -191,7 +191,7 @@ public class KioskServiceImpl implements IKioskApiService {
stickersAttachmentRService.saveBatch(stickerRList); stickersAttachmentRService.saveBatch(stickerRList);
} }
if (!item.getText().isEmpty()) { if (CollectionUtil.isNotEmpty(item.getText())) {
List<TextAttachmentREntity> textRList = item.getText().stream().map(t -> { List<TextAttachmentREntity> textRList = item.getText().stream().map(t -> {
TextAttachmentREntity r = new TextAttachmentREntity(); TextAttachmentREntity r = new TextAttachmentREntity();
r.setDetailId(orderDetail.getId()); r.setDetailId(orderDetail.getId());