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