fix:
1. fix bugs
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user